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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,266
Messages
6,177,545
Members
452,783
Latest member
back1ply

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