Last non-blank cell in reverse

Serpher

New Member
Joined
Jun 21, 2017
Messages
5
Office Version
  1. 2010
Platform
  1. Windows
A​
B​
06-01-2023 22:33​
07-01-2023 21:00​
=A4-[last non blank cell]

Objective is to find last non-blank cell value looking from current row in reverse. Amount of blank cells from current row can vary.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Do you mean row or column? Can you give a more specific example? Last non-blank cell in column A (to the Down) or last non-blank cell in Row 4 (to the Right)?
 
Upvote 0
That doesn't really work for me, but I did find this post on this forum Search backward (UP in column) till first non-empty cell
And it works for date values (which are always rising) but not for various decimal values.

MN
1HEADER
229,8
329,8
4
514,5
614,9 [should find this one]
7
814,9=LOOKUP(2^1023,$M$2:INDEX($M$2:M13,MATCH(MAX($M$2:M13),$M$2:M13,0)-1),$M$2:M13)

I assume that the problem is with MATCH MAX formula?
 
Upvote 0
Nah, I tried that already. It only shows previous filled cell, but it could be few empty cells between filled cells. Apparently XLOOKUP would be the best as it has a flag to search backwards, but I'm on 2010.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,189
Members
452,616
Latest member
intern444

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