Determining Last Non-Blank Cell in Column?

The doomed

Active Member
Joined
Feb 13, 2008
Messages
263
I have a sheet set up as follows:

Cell I1 = Publication Date (Manually entered - always a Wednesday)

Col.A - Date - the Wednesday of each week for the foreseeable future
Col.F - Number of items
Col.G - Running total of the numbers entered in F
Col.H - Week number (incremental from 1)
Col.I - Average number to date

Col.I rows have the following formula (basically, if no figure in ColF show blank...
=IF(F7>=1,G7/H7,"")

Data entry starts on Row 3.

That all works fine in a nice simple way to give me what I want. However, I want to pull the latest average figure on to another sheet to present in a weekly report.

Can I use the publication date in I1 to determine what row to pull the average from? Or can I do something that will look to the last no-blank cell in Col.I?

Being honest - if there is something simple to look to the last non-blank cell in the colum that would be best going forward but I'm not fussed.
Any help greatly appreciated, as ever.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I just tested this and it seems to do the job

=INDEX(A:I, MATCH(I1,A:A, 0),9)

9 refers to column so this is a simple count from left to right ;)

If it's last used row you need then

=INDEX(A:I, MATCH(9.9E+255,A:A),9)

assuming the column is numerical change the 9.9E+255 to "zzz" if it's text
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,244
Members
448,879
Latest member
VanGirl

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