Conditional Formatting on two columns to ignore *

jessybg

New Member
Joined
Oct 28, 2011
Messages
3
Hi I'd like to compare two columns of data and highlight where a value doesn't occurr in both columns. The problem I have is that one of the columns uses * around the text to ensure it catches all variations of the value.

I have the following formula which would work if the data was exactly the same.

=COUNTIF(lst2,value)=0

However, these *'s are meaning it never works.

Is there a way to make it so that if the values with the *'s are not found in the 1st column of data, conditional formatting is activated?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Welcome to MrExcel.

Do you mean you don't want to use the * as a wildcard?

=COUNTIF(lst2,SUBSTITUTE(value,"*","~*"))=0
 
Upvote 0
Hmm I don't think I have explained properly.

As you can see below we have two lists. The first list is the result of a sales report, and the second list is designed to analysis the amount of a type of service bought in one month so that we can analyse sales by category. The second list is followed by two columns, a COUNTIF and a SUMIF to calculate quantity and total sales. We have starred * the descriptions in List B to allow for variations in site, and products details.

However, we're finding that every month quite a few items in List A pop up that need adding to List B to balance the two out...which takes forever, trawling through. I hoped to use conditional formatting on List A to highlight any items which have not been caught by the values in List B so that this process is easier. Do you think this is possible?

Thank you J


tables.gif
 
Upvote 0
Try the conditional formatting formula in A2 copied down:

=SUMPRODUCT(--(ISNUMBER(SEARCH(SUBSTITUTE(B$2:B$4,"*",""),A2))))=0
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,855
Members
449,096
Latest member
Erald

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