Find value in table and return value from other table.

Otchoo

New Member
Joined
Jun 24, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am looking for a way to find a value in a table but get the value of another table.

Like the example: i'm searching for number 7. But i need the result: Letter G

I hope somebody can help me.

Greetz Johan
 

Attachments

  • Knipsel.PNG
    Knipsel.PNG
    6.2 KB · Views: 3

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Try:

Book1
ABC
1
2Lookup7
3ReturnG
4
5
61611
72712
83813
94914
1051015
11
12AFK
13BGL
14CHM
15DIN
16EJO
Sheet8
Cell Formulas
RangeFormula
B3B3=CONCAT(IF(B2=A6:C10,A12:C16,""))
 
Upvote 1
Solution
Try:

Book1
ABC
1
2Lookup7
3ReturnG
4
5
61611
72712
83813
94914
1051015
11
12AFK
13BGL
14CHM
15DIN
16EJO
Sheet8
Cell Formulas
RangeFormula
B3B3=CONCAT(IF(B2=A6:C10,A12:C16,""))
Not OP, but super interested in knowing how this formula is working!
 
Upvote 0
Try:

Book1
ABC
1
2Lookup7
3ReturnG
4
5
61611
72712
83813
94914
1051015
11
12AFK
13BGL
14CHM
15DIN
16EJO
Sheet8
Cell Formulas
RangeFormula
B3B3=CONCAT(IF(B2=A6:C10,A12:C16,""))
Hi,

Thx for the reply and help. But it is not what i am looking for. It gives me the right answer, but it places it in some kind of window. So when i change the lookup value the answer jumps to another place in the windows.

It needs to stay in the same cell.
 

Attachments

  • Knipsel2.PNG
    Knipsel2.PNG
    5.5 KB · Views: 3
Upvote 0
Hi,

Thx for the reply and help. But it is not what i am looking for. It gives me the right answer, but it places it in some kind of window. So when i change the lookup value the answer jumps to another place in the windows.

It needs to stay in the same cell.
Oddly enough, I'm not getting that on my end.

Did your formula include the "Concat" portion as well? That should prevent the additional window from showing up.

1704391331206.png
 
Upvote 0
Coyotex3, I think you figured it out by now. The IF compares B2 with each value in the first table, and if it matches, returns the corresponding value in the second table, otherwise a "". Then the CONCAT puts them all together, and only the desired value will be left. Thanks for the assist.

Otchoo, looks like you got it figured out. Glad we could help.
 
Upvote 1
@Otchoo please mark Eric W’s answer as the solution. He is the one which provided you with the solution! I just added a question and some input!!
 
Upvote 0
Coyotex3, I think you figured it out by now. The IF compares B2 with each value in the first table, and if it matches, returns the corresponding value in the second table, otherwise a "". Then the CONCAT puts them all together, and only the desired value will be left. Thanks for the assist.

Otchoo, looks like you got it figured out. Glad we could help.
Thx for your help.
 
Upvote 0

Forum statistics

Threads
1,215,254
Messages
6,123,894
Members
449,132
Latest member
Rosie14

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