VLOOKUP and ?

BradleyS

Active Member
Joined
Oct 28, 2006
Messages
351
Office Version
  1. 2010
Platform
  1. Windows
Hi

I'm a little stuck knowing how to get this to work. I have played with VLOOKUP, Match and Index and I can't seem to combine them to get the result I need.

Here is my spreadsheet:
excel2.png


I want the results in the green table, which looks up data in the yellow table.
PLEASE IGNORE THE COLOURS IN THE CODE COLUMN, I have only done this to help explain my issue.

BLUE COLUMN formula:
It needs to vlookup the ID in the yellow table
Match the text in the CODE column and if equal to "C10*"
Then display the text description shown in column DESC

The blue cells in the CODE column, show that they all start with C10, therefore they are all classed as the same and should appear in the blue column

ORANGE COLUMN formula:
The orange CODE is specific, i.e. MATCH if equal to 2126300

RED COLUMN formula:
The red should be treated the same as blue, but using a different text description, i.e. MATCH if equal to "9h4*"

Could someone help me put the code together to achieve this?
Thank you
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,224,518
Messages
6,179,261
Members
452,901
Latest member
LisaGo

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