Forum Discussion

Doom4242's avatar
Doom4242
Copper Contributor
Dec 30, 2023

Pull cells by inputting numbers

Hello, i am not to experienced with excel and am trying to find a formula to pull a cells information into another cell by inputting a number into a 3rd cell. ill give a small example.

 

so if i input a number into column 1 it will find that number in column 2 and output the number from column 3 into column 4.

 

column 1 row 1 i input 12 so it will find the 12 in column 2 row 2 then output the number next to it in column 3 row 2 into column 4 row 1 output box.

 

Column 1Column 2Column 3Column 4
12114output
16125output
13136output
11147output
15158output
18169output
191710output
121811output
151912output

 

Im not sure if this is possible as I am new to excel but this would help me tremendously if someone could give me a way to do this.

  • Doom4242 

    Using columns A to D, enter the following formula in D2:

     

    =IFERROR(VLOOKUP(A2, B:C, 2, FALSE), "")

     

    or

     

    =XLOOKUP(A2, B:B, C:C. "")

     

    Fill or copy down from D2.

    • Doom4242's avatar
      Doom4242
      Copper Contributor
      Thank you so much this will help me out and make this so much easier for me. I really appreciate the quick reply.

Resources