Pulling data from the first non-blank cell

Memi876

New Member
Joined
May 9, 2022
Messages
2
Office Version
  1. 2019
Platform
  1. MacOS
Hi all,

I've been trying to return a date value from the first non blank cell in a row, but for some reason the formula keeps returning the value from the last cell in the range rather than the first non-blank cell. I've been using the following formula:

=INDEX(range,MATCH(FALSE,ISBLANK(range),0))

Any ideas or suggestions on how to solve this would be greatly appreciated!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Book1 (version 1).xlsb
BCD
205/9/2022
21
22
23
245/9/2022
25
265/10/2022
27
285/11/2022
29
Sheet1
Cell Formulas
RangeFormula
D20D20=INDEX(B20:B29,MATCH(1,1/(B20:B29<>""),0))
 
Upvote 0
Book1 (version 1).xlsb
BCD
205/9/2022
21
22
23
245/9/2022
25
265/10/2022
27
285/11/2022
29
Sheet1
Cell Formulas
RangeFormula
D20D20=INDEX(B20:B29,MATCH(1,1/(B20:B29<>""),0))
Thanks for the suggestion! Unfortunately this gives me a VALUE error, I've tried it a few times.
 
Upvote 0
Are the values in the range produced by formulas, so the 'blanks' actually contain a zero-length string ""?

If so, you could try this (Might need Ctrl+Shift+Enter confirmation in your version)
Excel Formula:
=INDEX(range,MATCH(TRUE,LEN(range)>0,0))
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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