If number in cell matches any in a column then show value from adjacent cell

PuntingJawa

Board Regular
Joined
Feb 25, 2021
Messages
158
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I am trying to automate a filter based on a numbered dropdown menu.
Example:
If I have the number "1" in cell A3, I want to search column B for that number and return with the value from the adjacent in column C to column D without skipping spaces. (Minisheet below of what I am trying to make it look like).

Shipping PSI verify prints - serial label print.xlsx
ABCD
2NumberDATAVALUERETURN
311AA
42BD
53C
61D
72E
83F
Sheet14
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Try:

Mr Excel Questions 71.xlsm
ABCD
1NumberDATAVALUERETURN
211AA
32BD
43C
51D
62E
73F
PuntingJawa
Cell Formulas
RangeFormula
D2:D3D2=DROP(FILTER(B2:C7,A2=B2:B7),,1)
Dynamic array formulas.
 
Upvote 1
Solution
Try:

Mr Excel Questions 71.xlsm
ABCD
1NumberDATAVALUERETURN
211AA
32BD
43C
51D
62E
73F
PuntingJawa
Cell Formulas
RangeFormula
D2:D3D2=DROP(FILTER(B2:C7,A2=B2:B7),,1)
Dynamic array formulas.
I've tried expanding this. I get the #CALC! error. What I posted was an example but I need to go up to cell 122.
 
Upvote 0
what do you mean by expanding?

The formula is a spilled array, you cannot put anything in cells below the formula until the SPILL is complete.
The ranges in the formula a relative, and if you didn't have the #SPILL concern you can eliminate the #CALC by making the references absolute.

Excel Formula:
=DROP(FILTER($B$2:$C$7,A2=$B$2:$B$7),,1)

you can make the array spill to the side by using the TRANSPOSE Function:

Excel Formula:
=TRANSPOSE(DROP(FILTER($B$2:$C$7,A2=$B$2:$B$7),,1))


Mr Excel Questions 71.xlsm
ABCDE
1NumberDATAVALUERETURN
211AAD
322BBE
433CCF
51D
62E
73F
PuntingJawa
Cell Formulas
RangeFormula
D2:E4D2=TRANSPOSE(DROP(FILTER($B$2:$C$7,A2=$B$2:$B$7),,1))
Dynamic array formulas.
 
Upvote 0
what do you mean by expanding?

The formula is a spilled array, you cannot put anything in cells below the formula until the SPILL is complete.
The ranges in the formula a relative, and if you didn't have the #SPILL concern you can eliminate the #CALC by making the references absolute.

Excel Formula:
=DROP(FILTER($B$2:$C$7,A2=$B$2:$B$7),,1)

you can make the array spill to the side by using the TRANSPOSE Function:

Excel Formula:
=TRANSPOSE(DROP(FILTER($B$2:$C$7,A2=$B$2:$B$7),,1))


Mr Excel Questions 71.xlsm
ABCDE
1NumberDATAVALUERETURN
211AAD
322BBE
433CCF
51D
62E
73F
PuntingJawa
Cell Formulas
RangeFormula
D2:E4D2=TRANSPOSE(DROP(FILTER($B$2:$C$7,A2=$B$2:$B$7),,1))
Dynamic array formulas.
I'm sorry, I am very tired and not explaining well. I figured out the way the drop works with what you provided. Thank you very much for your help!
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,595
Members
452,657
Latest member
giadungthienduyen

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