Return closest non blank value

BumbleBee31

New Member
Joined
Oct 26, 2018
Messages
3
HI Everyone,

Need help with formula which can return the closest non blank value. Providing sample data table below. Column C shows the results i am expecting. Thanks [TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C Expected result[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]A[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]C[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]D[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]E[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]F[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]G[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]30[/TD]
[TD]H[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]I[/TD]
[TD]H[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Not if your sample data is representative you dont. If what you are saying is true then cell A2 is blank.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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