getting cell data help

red95

Board Regular
Joined
Jan 4, 2009
Messages
141
i have data in a column
now i have a row number say 67
now i need to get the data totals of a67 thur a61
i am taking the cell a67 up to a61
how would i do this

any help thanks red 85
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Is this in VBA? If so what is the name of the variable that holds the row number? Let's say it's RowNum:

Code:
    Const RowNum As Long = 67
    MsgBox WorksheetFunction.Sum(Range("A61:A" & RowNum))
 
Upvote 0
i have a cell with a data validation list of dates i pick a day
then i have a lookup and finds the day and row number
my data is in a2:a5000
now i take my row number from my lookup say row 67 and i need the data from
row a67 up 6 cells so the total is a67 up to a61 for the total
 
Upvote 0
i got it it was trying to go up 6 cell but was on row 6 so could not any way to prevent this
 
Upvote 0

Forum statistics

Threads
1,224,612
Messages
6,179,887
Members
452,948
Latest member
Dupuhini

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
Back
Top