Formula to find last non blank cell value in a range

G00DNESS

Board Regular
Joined
Aug 6, 2014
Messages
60
I need help finding the value of the last non blank cell in the range (CO40:DB40). These cells do have formulas in them. Some cells may have zero (0) values. If cells (CO40:DB40) are all blank, than I'd like the answer to be zero (0). Thanks!
 
Works OK for me. Are you sure the cells are all empty?

Matty

It works in the range given above. I tried to use the same formula in a different range--formula driven (all cells having formulas in them), and it shows zeroes. I used: =IF(COUNT(CO49:DA49),LOOKUP(9.99999999999999E+307,CO49:DA49),0)
 
Last edited:
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
It works in the range given above. I tried to use the same formula in a different range--formula driven (all cells having formulas in them), and it shows zeroes. I used: =IF(COUNT(CO49:DA49),LOOKUP(9.99999999999999E+307,CO49:DA49),0)

What are the formulas in those cells?

Matty
 
Upvote 0
I need help finding the value of the last non blank cell in the range (CO40:DB40). These cells do have formulas in them. Some cells may have zero (0) values. If cells (CO40:DB40) are all blank, than I'd like the answer to be zero (0). Thanks!

You actually want the last numeric value of CO:DB40, right. If so:

=LOOKUP(9.99999999999999E+307,CO:DB40)

If you want the last non-zero numeric value:

=LOOKUP(9.99999999999999E+307,1/CO:DB40,CO:DB40)
 
Upvote 0

Forum statistics

Threads
1,215,241
Messages
6,123,823
Members
449,127
Latest member
Cyko

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