Return values from multiple columns based on a list

Apples52

New Member
Joined
Sep 25, 2023
Messages
23
Office Version
  1. 365
Platform
  1. Windows
I have a criteria list in column H. I am trying to return the values in columns A,B,C,F if a value in column H appears in column F.

I've tried a vlookup to do this, but I don't think that's the right tool and I apparently have it set up wrong.

I'm also ok returning one column at a time if returning all columns adds too much complexity.

Screenshot of where I'm at attached.
 

Attachments

  • Screenshot .png
    Screenshot .png
    77.3 KB · Views: 6

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Sorry, just re-read your post and saw you only wanted columns A, B, C, and F to be returned. Try this instead:

Excel Formula:
=CHOOSECOLS(FILTER(A2:F22,ISNUMBER(MATCH(F2:F22,H1:H4,0))),{1,2,3,6})
 
Upvote 0
Solution
@LegendaryAxe please take more note of what version the OP is using, as 2019 does not have some of those functions.

@Apples52 what version of Excel are you using, as the image shows what looks to be a spill range, which is not in 2019
 
Upvote 0
@LegendaryAxe please take more note of what version the OP is using, as 2019 does not have some of those functions.

@Apples52 what version of Excel are you using, as the image shows what looks to be a spill range, which is not in 2019
Ah, yes should have included that with my question. Using a 365 subscription. Worked, thank you!
 
Upvote 0
Sorry, just re-read your post and saw you only wanted columns A, B, C, and F to be returned. Try this instead:

Excel Formula:
=CHOOSECOLS(FILTER(A2:F22,ISNUMBER(MATCH(F2:F22,H1:H4,0))),{1,2,3,6})
This worked, thank you so much! I'm always amazed and thankful at how helpful and quick everyone is on here.
 
Upvote 0
This worked, thank you so much! I'm always amazed and thankful at how helpful and quick everyone is on here.
You're welcome!

@Fluff oof, second time I made that mistake. I'll be extra careful to check the Office Version of the poster I'm replying to from now on.
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,126
Members
453,021
Latest member
Justyna P

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