Search across rows for "inches symbol" extract up to 2 digits to left

smorice

New Member
Joined
Feb 11, 2016
Messages
8
Hi all! I've been searching all over for a solution and I'm stuck, so I'm turning to the experts.

I have a large spreadsheet with data scattered across multiple rows. Example '2" yellow webbing' might be in cell C4 or it could be in T4 or anywhere in between. I want to search cells between C4:T4 to find 2" and put it in the cell my formula is in. 2" is just one of many that is why I'm using a wildcard and searching only the row which is based on the part number.

This is what I have so far and I get #value error.
"=LEFT(CHAR(34),SEARCH("*"&CHAR(34),$C4:$T4,-2))"

Thanks in advance for any and all help!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
How about
=TRIM(LEFT(SUBSTITUTE(INDEX(C4:T4,MATCH("*""*",C4:T4,0)),"""",REPT(" ",100)),100))
 
Upvote 0
How about
=TRIM(LEFT(SUBSTITUTE(INDEX(C4:T4,MATCH("*""*",C4:T4,0)),"""",REPT(" ",100)),100))

Wow, you rock Fluff!!!! How could I take it a step further if I wanted to find a cell in that same range with 2" and the word webbing or hook?
 
Upvote 0
There's probably a simpler way, but how about
=TRIM(LEFT(SUBSTITUTE(IFERROR(INDEX(C4:T4,MATCH("*""*webbing*",C4:T4,0)),INDEX(C4:T4,MATCH("*""*hook*",C4:T4,0))),"""",REPT(" ",100)),100))
 
Upvote 0
There's probably a simpler way, but how about
=TRIM(LEFT(SUBSTITUTE(IFERROR(INDEX(C4:T4,MATCH("*""*webbing*",C4:T4,0)),INDEX(C4:T4,MATCH("*""*hook*",C4:T4,0))),"""",REPT(" ",100)),100))

Thanks again Fluff! I don't think I explained this part correctly. This doesn't do what I had in mind, but I am working with what you did and trying to make it do what I want it to do. I'm getting close.

Thanks so much for your time and expertise!
 
Upvote 0

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

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