Siimple Match/Index/Vlookup (not sure which one?) formula...

mlarson

Well-known Member
Joined
Aug 25, 2011
Messages
509
Office Version
  1. 2010
Platform
  1. Windows
Note: having problems making the data look like an Excel chart... hopefully it's clearer than mud :-)

Thanks in advance for your help! I'm not sure if this is a match, index, vlookup? But I'm guessing it's pretty simple to do.

I'm looking for a formula that will do the following:

Match the text in cells in Column C with the text in cells in Column Q. When there's a match, take the value in Column P that is in the same row of the matched Column Q cell, and copy/paste that Column P value in Column B of the same row as the matched Column C cell. Column B can be left blank if there's no match.

Column B is output
B C P Q
71 green 72 white
88 blue 65 violet
34 yellow 71 green
(blank) orange 88 blue
72 white 92 pink
(blank) black 34 yellow

Thank you!
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
For the sake of my general knowledge, how would the original formula be altered to allow approximate match instead of exact match? Thanks.
 
Upvote 0
You could try this:

Code:
[COLOR=#333333]=IFERROR(INDEX($P$8:$Q$13,MATCH("*"&C8&"*",$Q$8:$Q$13,0),1),"")[/COLOR]

Or in your case for the trailing space you could do this:

Code:
[COLOR=#333333]=IFERROR(INDEX($P$8:$Q$13,MATCH(C8&"*",$Q$8:$Q$13,0),1),"")[/COLOR]
 
Last edited:
Upvote 0
philwojo, you're a stud! Thank you, works very well!
 
Upvote 0
Glad to help, but just passing along things I've learned on here from those much much smarter than I am.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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