Finding the last cell: An old question with a new twist

Mhowells

New Member
Joined
Aug 24, 2006
Messages
29
Hello all,

Finding the last populated cell in a column seems to be a fairly popular old post, but all of the solutions proposed have tended to rely on VB, which I am hesitant to use because I do not know (a) how to implement VB Script and (b) because this spreadsheet will be populated to hundreds of computers across the world which have highly variable configurations… However, my problem is slightly different, so I thought it worth posting.

I have a statistics table at the bottom of a large dataset. This dataset will vary in size, with users adding and subtracting data as they use it. In order for my formulae to work properly, I need to know where the last row of data is. So what I need is this: I need a method for Excel to ‘count back’ from the top of the statistics, up through the two or three blank rows and return how many rows above the last line of data sits. If it makes any difference, there will never be more than, say, 1000 rows in this given spreadsheet and the statistics table will always remain the same shape/size. I just want to be able to account for the user’s tendency to leave between 1 and 3 empty rows at the end of the dataset.

In the same vein, I would be quite happy to have a system that would count down through a column and return the first empty cell… That would do the trick to..

Grateful for any suggestions.

Best,
Max
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
You haven't said what type of formulae you're using.

If you've used formulae that can't refer to entire columns (e.g. SUMPRODUCT), you could set up dynamic named ranges picking up the relevant cells in the dataset.
 
Upvote 0

Forum statistics

Threads
1,224,895
Messages
6,181,620
Members
453,057
Latest member
LE102024

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