If cell in range contains ANY text, return value of that cell

ajoshi87

New Member
Joined
Apr 13, 2011
Messages
12
Hello everyone,

I have a range of cells A2:A15 and I would like to write a formula that says, if there is a cell from A2:A15 that has ANY text, return the value of that cell.

As a caveat, that range of will never have 2 cells that have text.

Any help writing this formula would be appreciated :)
 
This is awesome. Exactly what I was looking for. Quick question, how can I turn this into an array to automatically apply it to every row. I've tried with a standard arrayformula but it isn't outputting anything.

=IFERROR(INDEX(L22:U22,MATCH($X$1&"*",L22:U22,0)),"") - this formula works perfectly if dragged down.

=ArrayFormula(IFERROR(INDEX(L2:U,MATCH($X$1&"*",L2:U,0)),"")) - produces no result.
 
Upvote 0
This is awesome. Exactly what I was looking for. Quick question, how can I turn this into an array to automatically apply it to every row. I've tried with a standard arrayformula but it isn't outputting anything.

=IFERROR(INDEX(L22:U22,MATCH($X$1&"*",L22:U22,0)),"")- this formula works perfectly if dragged down.

=ArrayFormula(IFERROR(INDEX(L2:U,MATCH($X$1&"*",L2:U,0)),"")) - produces no result.
Sorry, I have no experience with Google spreadsheets.
 
Upvote 0

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