3 Tips for Writing Formulas with VBA Macros in Excel

3 Tips for Writing Formulas with VBA Macros in Excel

Excel Campus - Jon

6 лет назад

214,772 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@yosef-yosef9414
@yosef-yosef9414 - 05.08.2024 22:12

Very helpful and useful for me Excel Master

Ответить
@TheArifbmc
@TheArifbmc - 22.02.2024 11:43

my formula is only to find cell position using match formula. then i can use it to define where i will paste a value from B7 to H*
Range("B7").Select
Application.CutCopyMode = False
Selection.Copy
cell= .formula = "=MATCH(A7;$G:$G;0)"
Range("H" & cell).Select
ActiveSheet.Paste
but this not working.
please advise

Ответить
@ChollyMc
@ChollyMc - 02.05.2023 17:42

Well done! Thank you!!!

Ответить
@divinorodriguesdasilva5048
@divinorodriguesdasilva5048 - 29.10.2022 06:02

Excellent video!

Ответить
@prashant_karna
@prashant_karna - 20.10.2022 17:41

Activecell.formular1c1="=sum(a18:r[-1]c)"

Sir please check what is wrong with this formula

Ответить
@kickilicoff
@kickilicoff - 11.08.2022 23:56

I have been searching around internet the whole day, and this video explains it all! Thank you!

Ответить
@frankcornfield5915
@frankcornfield5915 - 15.06.2022 15:31

Does anyone know how to insert a formula into a vertical range? As the example from above with the range B10 to B30

Ответить
@shavkatpulatov5203
@shavkatpulatov5203 - 14.06.2022 03:35

it was great! full desription to clear, thanks a lot, but I'd like also to kwon how to replace the "spread sheetname " with variables
thanks in advance

Ответить
@gokul8370
@gokul8370 - 09.05.2022 14:37

SO GOOD! Helped me lot! Thumbs up and Subbed as well.

Ответить
@fundip43
@fundip43 - 28.04.2022 20:32

I was trying over and over to find a re-record function of marcos . Specially when I don’t know how to write formulas in excel well let alone vba. so to use a second writing macro to record the steps to copy into a macros vba is really straight forward .

Ответить
@smrenterprises589
@smrenterprises589 - 01.04.2022 21:27

Thanks a lot . It's perfect

Ответить
@masonharper4610
@masonharper4610 - 22.01.2022 00:50

Excel adds "@" in front of the formula and it does not work. A different version of excel?

Ответить
@kopobinang6928
@kopobinang6928 - 16.09.2021 17:42

Thank You!

Ответить
@PhilipHubbe
@PhilipHubbe - 01.09.2021 18:06

Hey Jon, I am trying to insert a formula that is giving me a compile error. (expected end of statement)
formula = "=CONCATENATE( "BILL OF MATERIAL:" , Mid(CELL( "Filename", A1), Find( "]", CELL( "Filename", A1)) + 1, 255))"
Any Ideas?

Ответить
@rajeevdixit7019
@rajeevdixit7019 - 12.06.2021 11:34

You are amazing tracher of vba

Ответить
@dottied5596
@dottied5596 - 31.05.2021 09:40

This helped so much! Thank u!!

Ответить
@augustodemelo915
@augustodemelo915 - 22.04.2021 01:36

Excellent!!!
It is exactly what I was looking for!!!
Thank you so much!!!

Ответить
@randomCADstuff
@randomCADstuff - 03.04.2021 06:55

The last time was exactly what I was looking for and very well explained! Thank-you!!

Ответить
@suavesergio
@suavesergio - 02.03.2021 19:22

Thank you John, for sharing this kind of tips with us. They´re very useful!

Ответить
@nadermounir8228
@nadermounir8228 - 27.02.2021 17:53

Thank you John for the VBA tips. I wonder how to write a formula using VBA where a sheet name is used and this sheet can change at anytime. So say Range("A1").Formula = "='Product DataBase'!D2". Product database is the sheet name but what if someone changes the sheet name? How can this be made dynamic ? Any idea ?

Ответить
@jlpayne052710
@jlpayne052710 - 31.01.2021 16:43

Jon, I really appreciate your videos they are amazing. Too many times I find that excel videos are all just veiled sales pitches. I also appreciate that they are easy to follow and not too fast Thanks

Ответить
@strosa2406
@strosa2406 - 27.11.2020 08:14

too useful .. thanks jon

Ответить
@karmusinghsiddhu190
@karmusinghsiddhu190 - 24.11.2020 09:56

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'Sub Myautofill()

If Range("A1") <> "" Then

Range("A1").Select
Selection.AutoFill _
Destination:=Range("A1:A5"), Type:=xlFillDefault
'End With
'Range("A1").Formula = "=IF(AND(F5="",G5="",H5=""),"",(I4+F5-G5-H5))"
End If
'End With
End Sub
pls help me on this

Ответить
@paultc16
@paultc16 - 19.11.2020 14:25

Nice Video

Ответить
@flying_horse
@flying_horse - 18.11.2020 21:29

Hi , I am trying to write a formula that uses a range ( it's a countif formula )
Thing is I don't want to define the range myself .
But even if I have it defined by a variable set as a range , it wont work
Any tips ?

Ответить
@stuartmuscroft3753
@stuartmuscroft3753 - 07.10.2020 11:52

wow...GENIOUS!!! I am truly grateful, thank you

Ответить
@BOWENSblog
@BOWENSblog - 06.09.2020 18:02

learning how to do some VBA is actually a good way to climb the corporate ladder in non-technology roles. Thanks for coaching people online and supporting productive talent. Technology is getting better these days. Good thing VBA will never be replaced in the next 20 years. It can assist in administrative work, repetitive work, improve critical thinking skills(like academic, and application) and saves time

Ответить
@OttawaRocks
@OttawaRocks - 18.05.2020 07:06

Excellent video. I was absolutely hunting for a formula creator within a VBA environment and this does the trick!

Ответить
@Revlemmon
@Revlemmon - 26.04.2020 12:20

Thank you for this video, it was a godsend!! I have huge formulas that I needed to write with VBA and had no idea how to do it until I watched this video.

Ответить
@kumarrohit8538
@kumarrohit8538 - 31.03.2020 20:44

Superb

Ответить
@Bebicsek
@Bebicsek - 15.03.2020 03:44

This video with the R1C1 formula setting just saved my night :-) Thanks!

Ответить
@Pankaj-Verma-
@Pankaj-Verma- - 14.03.2020 21:24

Thanks for the kind help.

Ответить
@abdulsafwan711
@abdulsafwan711 - 28.02.2020 21:45

How can I hide the formula and show only values

Ответить
@olibolivar7223
@olibolivar7223 - 21.01.2020 01:16

Just what I needed.Thank you sir! :D

Ответить
@jgg518
@jgg518 - 16.01.2020 06:33

Very Helpful Video

Ответить
@ElGordoFreeman
@ElGordoFreeman - 12.09.2019 07:26

There is a third condition of the formula property, the formula name must be in English with commas as list separators. If you have a spanish Excel and you want to use the local name, SUMA instead of SUM, you have to use the FormulaLocal property. Obviously, if you want a more versatil code, use the Formula property.

Ответить
@debbie6085
@debbie6085 - 06.08.2019 00:52

Hi Jon, Thank you for another one of your great videos. I've just tried to sign up to the 7 Steps to Getting Started with Macros and VBA, but when I entered the time zone of Perth Australia, it prompted for a date but didn't allow one to be entered. Can you please help me with this as I'm keen to view the video? Thank you.

Ответить
@aakashkumarverma281
@aakashkumarverma281 - 11.06.2019 19:36

Sir pls giv me ur number

Ответить
@Dopeboyz789
@Dopeboyz789 - 12.04.2019 19:35

What if i dont wanna see the formula

Ответить
@mithiladas2481
@mithiladas2481 - 23.03.2019 12:03

my sheet1 B10 value is 298263 after adding formula"=sum(B4:B9)" i want to add a formula in B10 with existing value "298263" Example: Range("B10").Formula = "=SUM(B4:B9)+298263" Every time this formula change the existing value which is exist in B10 Cell. How can i do that?

Ответить
@samsammito168
@samsammito168 - 22.03.2019 15:08

Hi Jon,
I'm trying to use variables with the formula property can you share an example?

Ответить
@microsecure2612
@microsecure2612 - 16.03.2019 12:14

thank you very much for this video very helpful ....
i have a question please:
1- i have this formula: =IF(Sheet1!$B$15=Sheet4!B8,Sheet1!$B$14,"£0.00") and it works fine with your video tutorial
but the cell does not show the sign (£)
2- how to tell Macro to move to the next cell with the same formula
Many thanks

Ответить
@sasavienne
@sasavienne - 17.02.2019 19:27

Nice. Thanks...

Ответить
@its_me_ishanvi
@its_me_ishanvi - 10.02.2019 12:35

PLS GIVE MI CODE FOE
333-333-333
DAS IN EVERY 3 WORD IN COLUM

Ответить
@Juanksv09
@Juanksv09 - 08.12.2018 03:09

Excellent, clear explanations and pristine video and audio. Thanks!

Ответить
@avb6programminguser776
@avb6programminguser776 - 06.12.2018 20:55

Good for VBA programming and VB6 programming

Ответить
@mobr.
@mobr. - 01.06.2018 01:01

Very clear and informative video. Thank you.

Ответить
@FRANKWHITE1996
@FRANKWHITE1996 - 03.05.2018 12:37

thx

Ответить
@magibis7519
@magibis7519 - 28.04.2018 05:34

this is really wonderful video. i have question. everyday data are not same how to do vlookup in vba dynamically.

Ответить