Vlookup formula

Mux99

Board Regular
Joined
Apr 15, 2019
Messages
57
I'm currently using the following formula in conditional formatting:

=VLOOKUP($A1,$1:$1048576,COLUMN(),0)="MATCH"

The formula is only working if the word "MATCH" is in the row where the name in Column A is listed first. All six cells with data in the example below would need to be highlighted, but with the current formula only C2 & C4 are highlighted.

ABCD
1Name1HIGHLIGHTHIGHLIGHT
2Name2MATCH
3Name1MATCHMATCH
4Name2HIGHLIGHT

Thanks
 
Conditional formatting is volatile, so running it on that amount of cells is not a good idea.
You would probably be better off with a macro, although that would not update automatically.

Thanks anyway but I need it to update automatically so a macro wouldn't really help. I thought there would be another workaround as I'm using the formula in the original post multiple times to collect data from another worksheet without delays.
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
You can try limiting the formula to
=COUNTIFS($A$1:$A$1900,$A1,B$1:B$1900,"MATCH")>0

Not sure if it will make any difference.
 
Upvote 0
You can try limiting the formula to
=COUNTIFS($A$1:$A$1900,$A1,B$1:B$1900,"MATCH")>0

Not sure if it will make any difference.

Loading time went down to around half a second after new data is inputted so it's usable now and I have applied the formula three times for different matches. Thanks a lot.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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