Search Range of Cells, return cell contents when match

longtail18

New Member
Joined
Oct 23, 2018
Messages
5
Hi,

I am trying to figure out a way to search a range of cells, and then return the cell contents of the cell that does not contain a certain word.

I am referring to a formula for Column U
2qcp4ph.png


Please let me know if any more clarification is required.

Thank you,
Chris
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hello,

In cell V5 for example ... you can test following Array Formula

Code:
 =INDEX(R5:T5,MATCH(0,--(LEFT(R5:T5,3)="Not"),0))

Hope this will help
 
Upvote 0
Hi James, that worked! I have a follow-up question to get to the final answer I need.

2qnaxkp.png


The portion on the right is what we figured out (which vendor provides which product ID in each specific city). I now need to figure out a way to take that information and input in the portion to the left. What I am having issues with is how on a typical index match I do not know how to return based off the two criteria (city and ID). Please let me know if you can figure this out.

Thank you!
 
Upvote 0
Hi,

If I understand your request ... a simple Index/Match should do the job ...

With your input data in range A1:D4 ... and a potential output in F1:H4

you can test in cell H2 : =INDEX($A$1:$D$4,MATCH(G2,$A$1:$A$4,0),MATCH(F2,$A$1:$D$1,0))

Hope this will help
 
Upvote 0

Forum statistics

Threads
1,224,927
Messages
6,181,799
Members
453,067
Latest member
cernytomas

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