Find last 'non-blank' cell??!!

slym34

Board Regular
Joined
Jul 20, 2005
Messages
61
hey all.. I have a list of #'s starting from 1, and the next cell down adds 1 to that.. based on some other info, it will either add 1 or come out blank.. i want to be able to have cell A1 point out which is the last cell that has a number and is not blank.. does this make sense???

Here is the formula in this column..
In this sheet cell L284 has the same formula in it as cell L283, however because R283 is blank it also comes out blank...

Here is a copy of the sheet.. I want cell A1 to equal 282 in this example...
 

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,881
Hi slym34

Not sure I understan correctly but it seems you want the biggest value in column L:

=MAX(L:L)

Hope this helps
PGC
 

Dylan

Board Regular
Joined
Jul 27, 2007
Messages
150
Hi, you can use MAX to show the largest number in column A.
In cell A1 = Max(L:L).
 

slym34

Board Regular
Joined
Jul 20, 2005
Messages
61

ADVERTISEMENT

Hi, you can use MAX to show the largest number in column A.
In cell A1 = Max(L:L).

PERFECT!!! Thanks!

John
 

Gates Is Antichrist

Well-known Member
Joined
Aug 15, 2002
Messages
1,961
MAX works for the column L you showed. For completeness, to answer your stated quest of getting the last numeric cell in a range, a thorough discussion is here . Note that the comments are as important as the article itself.

The upshot: either use a simple UDF (tushar's recommendation), or longstanding quirk of VLOOKUP(...TRUE).
 

slym34

Board Regular
Joined
Jul 20, 2005
Messages
61

ADVERTISEMENT

great info.. thanks!
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
BTW, you really should use "" to return blank in a cell, rather than a space " "
 

Watch MrExcel Video

Forum statistics

Threads
1,122,721
Messages
5,597,752
Members
414,171
Latest member
12Rev79

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