referencing the last non-blank cell in a row...

pearce_dan

New Member
Joined
Jan 13, 2006
Messages
36
:eek: PLEASE help. I can't find this answer anywhere...

I have a row that is filled out one day at a time. Each time it's updated, I need a cell in a different row to reference whatever was the last cell that was filled in in that row.

If I can just reference it (sorry if my lingo is bad, when I say reference, I mean copy the value), I'll be able to plug that into an equation in another cell.

Does anybody have any idea? I've searched high and low for the answer to this. thanks, Dan :LOL:
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

SydneyGeek

MrExcel MVP
Joined
Aug 5, 2003
Messages
12,251
Say, for example, you want the last value in row 1. Try this:
=LOOKUP(9.9999999E+308,1:1)

Denis
 

btadams

Well-known Member
Joined
Jan 6, 2003
Messages
1,942
In the cell where you want to reference the last non-empty cell try something like:

=OFFSET(A3,0,COUNTA(A3:IV3)-1)
 

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
Denis has a typo as 308 should be 307 and btadam's will not handle empty cells in the range.
 

Forum statistics

Threads
1,140,913
Messages
5,703,134
Members
421,277
Latest member
abudgen

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