How to call the first active cell under a header? VBA

Amanda10

New Member
Joined
Feb 29, 2016
Messages
2
Hello everyone,

I am trying to call the first available or active cell under a column and start the calculation from there.

c072632.jpg


so for example, in this picture:
the first active cell under column y is 48.5 and from there i can start my calculation for column Z ( taking into account that the first active cell in column y does not have to be row 5, it could be in row 6, 8, 1 or whatever row) I would like to know how to call the active cell on vba when calculating for a new value?

Thanks,
 

Some videos you may like

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
Welcome to the Board!

Why not just use =SUM(E$3:E4) and copy down? Excel's not going to do anything with blank cells, so what's it matter?

Otherwise, you'll need to give some clarification as to what you're trying to accomplish and why you need a VBA solution.

HTH,
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,122,961
Messages
5,599,061
Members
414,281
Latest member
Engjamal2021

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top