Matching numbers

Stclements1

Board Regular
Joined
Sep 15, 2018
Messages
120
Office Version
  1. 365
Platform
  1. Windows
122345667899
550800800140016001600180020002550280036004000

<colgroup><col width="64" span="12" style="width:48pt"> </colgroup><tbody>
</tbody>

I want to write some syntax that allows the numbers on line 1 from 1-9 to match the numbers on line 2 from 550-4000
thus if cell a1 has 4 cell a2 would read 1600
 

Some videos you may like

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

joeu2004

Well-known Member
Joined
Mar 2, 2014
Messages
2,813
Office Version
  1. 2010
Platform
  1. Windows
I presume you have some typos in the example, to wit: the combination of 2 and 800 appears twice; and 9 is associated with two different values, namey 3600 and 4000.

Assuming the correct pairs are unique and they are in B1:M2, you might try the following in A2:

=HLOOKUP(A1, $B$1:$M$2, 2, 0)
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
46,578
Office Version
  1. 365
Platform
  1. Windows
Cross posted https://www.excelguru.ca/forums/showthread.php?9412-cell-match

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 

Watch MrExcel Video

Forum statistics

Threads
1,109,451
Messages
5,528,834
Members
409,839
Latest member
akashsadhu
Top