Lookup formula to find first non-blank value in a dynamic range

chrisjwhite90

New Member
Joined
Jan 17, 2013
Messages
48
I need help for a lookup formula to find non-blank values in a dynamic range.

Here’s a sample of the spreadsheet below. The # of rows between each variable in column A can vary, so I’m having trouble devising a way to find these non-blank values.

ABCDEFGHIJKLMNOPQR
1Store1YesYesYesYes1453.3223
2Apples22
3Oranges9
4Bananas5
584.00%425084.0% at 2017-09-11 17:03:03 -0400
655100%
7Store2YesYesYesYes1453.3223
8Apples22
9Oranges9
10Bananas5
1180.00%405080.0% at 2017-09-11 17:03:03 -0400
1200100%
13Store3YesYesYesYes1453.3223
14Apples22
15Oranges9
16Bananas5
17Peaches3
1888.00%445088.0% at 2017-09-11 17:03:03 -0400
1933100%

<tbody>
</tbody>


For example: Find “Store2”’s row in column A, and return the first non-blank cell in column L below this row (it looks below L7 to return the first non-blank cell). The formula should find cell L11 and return 80%.

Likewise, the same formula in a different cell should find “Store3”’s row in column A, and return the first non-blank cell in column L below this row. The formula should find cell L18 and return 88%.

Any help would be appreciated, thanks.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Let A1:R19 of Sheet1 house the data you posted.

let A2:A3 of Sheet2 house Store2 and Store3.

In B2 of Sheet2 control+shift+enter, not just enter, and copy down:

=INDEX(Sheet1!$L$1:$L$19,MIN(IF(ISNUMBER(Sheet1!$L$1:$L$19),IF(ROW(Sheet1!$L$1:$L$19)-ROW(Sheet1!$L$1)+1>MATCH(A2,Sheet1!$A$1:$A$19,0),ROW(Sheet1!$L$1:$L$19)-ROW(Sheet1!$L$1)+1))))
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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