Look up a value

Hasse

New Member
Joined
Jan 5, 2018
Messages
8
Hallo, I am trying to find a formula so when I i.e enter a value from column A or C I want the vaule from column B or D to be shown

/Hasse

<tbody>
</tbody>




A B C D
30001228553020122998
30002228563020222999
30003228573020323000
30004228583020423001
30005228593020523002
30006228603020623003
30007228613020723004
30008228623020823005
30009228633020923006
30010228643021023007
30011228653021123008
30012228663021223009
30013228673021323010
30014228683021423011
30015228693021523012
30016228703021623013
30017228713021723014

<tbody>
</tbody>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
In this example, I'm putting the number to look up in G1

=IFERROR(VLOOKUP(G1,$A$1:$B$17,2,0),VLOOKUP(G1,$C$1:$D$17,2,0))


Excel 2010
ABCDEFGH
1300012285530201229983020423001
230002228563020222999
330003228573020323000
430004228583020423001
530005228593020523002
630006228603020623003
730007228613020723004
830008228623020823005
930009228633020923006
1030010228643021023007
1130011228653021123008
1230012228663021223009
1330013228673021323010
1430014228683021423011
1530015228693021523012
1630016228703021623013
1730017228713021723014
Sheet1
Cell Formulas
RangeFormula
H1=IFERROR(VLOOKUP(G1,$A$1:$B$17,2,0),VLOOKUP(G1,$C$1:$D$17,2,0))
 
Upvote 0
Thanks for quick replay. So if I want to extend the table I need to add a vlookup for every extra columns?

/Hasse
 
Upvote 0
Hi,

Responded here: https://www.mrexcel.com/forum/excel-questions/1037888-formula-search-big-table.html

See if this works for you:


Book1
ABCDEF
1300012285530201229983020423001
230002228563020222999
330003228573020323000
430004228583020423001
530005228593020523002
630006228603020623003
730007228613020723004
830008228623020823005
930009228633020923006
1030010228643021023007
1130011228653021123008
1230012228663021223009
1330013228673021323010
1430014228683021423011
1530015228693021523012
1630016228703021623013
Sheet3
Cell Formulas
RangeFormula
F1=SUMIF($A$1:$C$16,E1,$B$1:$D$16)


Adjust Column/Cell references to cover your entire Table.
 
Last edited:
Upvote 0
Hallo,
Thanks for helping me with this. Now it works. And yes, I realized when I looked at the other thread that it became confusing

Once again, Big thanks for this:). I have worked with it long now and was almost giving up

/Hasse
 
Upvote 0

Forum statistics

Threads
1,214,572
Messages
6,120,306
Members
448,955
Latest member
Dreamz high

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