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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,224,814
Messages
6,181,124
Members
453,021
Latest member
Justyna P

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