Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Hello everybody.
I'm running on empty with the following matter.
Writing this in a cell it works fine:
Now, in my VBA code:
lastcol + 1 = column in which you can find the values to sum
lastcol + 2 = column in which you can find the criteria
criteria = "black"
row = from 19 (fix) to lr2
How can I build the calculation?
Thank's.
I'm running on empty with the following matter.
Writing this in a cell it works fine:
Code:
=SUMIF(H19:H1891,"black",G19:G1891)
Now, in my VBA code:
lastcol + 1 = column in which you can find the values to sum
lastcol + 2 = column in which you can find the criteria
criteria = "black"
row = from 19 (fix) to lr2
How can I build the calculation?
Thank's.
Last edited: