SOLVED

Functions to look at data in table and put it in cell

Copper Contributor

Operating System: Windows 10 Version 20H2, 64-bit operating system

Excel Product: Microsoft Office Professional Plus 2016

Hello. I'm new to Excel and don't know how to use function well.

Here. I need to put Code in column E by look at data table on right side.
2021-04-07 12_27_33-Book2 - Excel.png

3 Replies
best response confirmed by Neimis (Copper Contributor)
Solution

@Neimis 

 

I would suggest re-structuring the lookup table to look like this (I used a structured table, but you could change it back to a regular range if you wish (table tools/convert to range):

JMB17_0-1617775340290.png

 

Then, enter this in E2 and hit Ctrl+Shift+Enter (instead of just enter):

=INDEX(Table1[Code],MATCH(1,(Table1[Type]=C2)*(Table1[Color]=D2),0))

 

 

 

 

Thank you !
Your table is easier to understand. It's clean and don't use much space.
You are welcome.
1 best response

Accepted Solutions
best response confirmed by Neimis (Copper Contributor)
Solution

@Neimis 

 

I would suggest re-structuring the lookup table to look like this (I used a structured table, but you could change it back to a regular range if you wish (table tools/convert to range):

JMB17_0-1617775340290.png

 

Then, enter this in E2 and hit Ctrl+Shift+Enter (instead of just enter):

=INDEX(Table1[Code],MATCH(1,(Table1[Type]=C2)*(Table1[Color]=D2),0))

 

 

 

 

View solution in original post