Vba vlookup

alpha1200

New Member
Joined
Feb 29, 2024
Messages
1
Office Version
  1. 2021
  2. 2019
  3. 2016
What code can i use to
1. Filter column B to "red"
2. Vlookup column C to column E
( So that it only vlookup those filtered red in column B )
3. Delete those #N/A that didn't match ( for red only)
And loop this until cell A and B are blank

Thanks in advance :)
 

Attachments

  • 1000007735.jpg
    1000007735.jpg
    39.6 KB · Views: 8

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Welcome to the Board!

I am afraid that your question is not quite clear.
So, I take it that column E is what you want to return (your expected output) from columns A and B?
Is that correct?

If so, why aren't "ultramarine" and "cyan" included?
They have "red" in column B.
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,970
Members
449,095
Latest member
Mr Hughes

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