using wildcards for text in index/match multiple criteria in Excel

Tony Tony

New Member
Joined
Jun 10, 2014
Messages
3
I'm having trouble using wildcards for text in index/match multiple criteria; I need to find the nearest site along a river (x) below a certain point (distance =21), each stretch of the river is labelled with the streches downstream (so stretch abc is upstream of ab).
My problem arises when the nearest point downstream is on the downtsream stretch of river.
How do I use wild card to search for ab&"*" that will exclude abd.
Any help would be greatly appreciated.

Tony

SiteRiverDistanceStretch
S1x10a
S2x15ab
S3x20ab
S4x22abd
S5x25abc
S6x30abc
S7y10a
S8y15ab
S9y20ab
S10y22abd
RivDistStretchExpectedCalculated
x21abcS3#N/A
x27abcS5S5

<tbody>
</tbody>

'formula in cell E14 ={INDEX(A2:C11,MATCH(1,(A14=B2:B11)*(C2:C11<b14)*(c14=d2:d11),0),1)}< html=""></b14)*(c14=d2:d11),0),1)}<><B14)*(C14=D2:D11),0),1)}
tried: INDEX(A2:C11,MATCH(1,(A14=B2:B11)*(C2:C11<B14)*(IF(COUNTIF($D2:$D11,C14&"*")>0,1,0)),0),1)
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
<b14)*(c14=d2:d11),0),1)}
<b14)*(if(countif($d2:$d11,c14&"*")
</b14)*(if(countif($d2:$d11,c14&"*")
</b14)*(c14=d2:d11),0),1)}>'formula in cell E14 ={INDEX(A2:C11,MATCH(1,(A14=B2:B11)*(C2:C11<B14)*(C14=D2:D11),0),1)}
 
Last edited:
Upvote 0
<b14)*(c14=d2:d11),0),1)}< html="">
formula in cell E14 ={INDEX(A2:C11,MATCH(1,(A14=B2:B11)*(C2:C11 is less than B14)*(C14=D2:D11),0),1)}</b14)*(c14=d2:d11),0),1)}<>

'also tried something along these lines to no avail =INDEX(A2:C11,MATCH(1,(A14=B2:B11)*(C2:C11 is less than B14)*(IF(COUNTIF($D2:$D11,C14&"*")>0,1,0)),0),1)
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,186
Members
449,071
Latest member
cdnMech

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