Last non-empty cell

Sagor

New Member
Joined
Dec 27, 2016
Messages
13
Hello
I need a formula to find a cell value with respect to another cell, like
ABCDEF
16/57/58/59/510/511/5
2143345
310508715

<tbody>
</tbody>
I need output 10/5 for row 2 as 45 is last non-empty cell
& 11/5 for row 3 as 15 is last non-empty cell.

Thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Like this:


Excel 2016 (Windows) 32 bit
ABCDEFGH
106-May07-May08-May09-May10-May11-May
214334545
31050871515
Sheet1
Cell Formulas
RangeFormula
H2=LOOKUP(2,1/(A2:F2<>0),A2:F2)
 
Upvote 0
On reflection, maybe you mean this:


Excel 2016 (Windows) 32 bit
ABCDEFG
106-May07-May08-May09-May10-May11-May
214334510-May
31050871511-May
Sheet1
Cell Formulas
RangeFormula
G2=LOOKUP(2,1/(A2:F2=LOOKUP(2,1/(A2:F2<>0),A2:F2)),$A$1:$F$1)
 
Upvote 0
Try this,

=INDEX($A$1:$G$1,,MATCH(9.99E+307,A2:G2,1))

OR
=LOOKUP(2,1/(A2:G2<>0),$A$1:$G$1)
 
Upvote 0
Hello
I need a formula to find a cell value with respect to another cell, like
ABCDEF
16/57/58/59/510/511/5
2143345
310508715

<tbody>
</tbody>
I need output 10/5 for row 2 as 45 is last non-empty cell
& 11/5 for row 3 as 15 is last non-empty cell.





Thanks

In H2 enter and copy down:

=LOOKUP(9.99999999999999E+307,A2:F2,$A$1:$F$1)

This is (a) fast and (b) numeric.
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,213
Members
448,554
Latest member
Gleisner2

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