Populate 1st non-blank in a row

emack1230

New Member
Joined
Jul 9, 2022
Messages
34
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
We are extracted from a path to get a plant name. I have a row range k4:as4 that has a isnumber search formula in every cell to populate one of our plants name. =IF(ISNUMBER(SEARCH(Q$1,$G4)),Q$1,"") We want to pull the plant names from each row into one single column using =INDEX(K4:P4,MATCH(TRUE,INDEX((K4:P4<>0),0),0)). This index fromula works, only if I remove the isnumber search formula from the cells. The index isn't seeing the blank cells a "truly blank" with the formula. We don't think this is to hard but are coming up empty handed on how to pull the first non blank to a single column. Any help would be greatly appreciated.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try

Excel Formula:
=INDEX(K4:P4,MATCH(TRUE,INDEX((K4:P4<>""),0),0))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

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