HELP - Formula to highlight row if cell contains specific text

simi_uk

Board Regular
Joined
Oct 16, 2009
Messages
138
Hi All,

looking for some help here as i'm going mad trying to get CF to do it for me properly.

I have a single sheet of batch controlled warehouse items & their locations. This sheet is used to track when the main location holding the stock (for example 025E0013A - Rack 23, Shelf E, Bin 13A) becomes empty, when this happens A is removed from the sheet, however I am then left having to search for the secondary bin location (025E0013B) to see if stock is available here.

Can anybody suggest anything that might help? The location column contains all values from 025A0001A thru 025E0065B and 026A0001A thru 026E0065B. What i need it to do is pick out all the bin locations ending with 'B' if the primary 'A' bin is not present - make sense?

Thanks all in advance.

Simi
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Let's be clear.
Do you want to highlight 026E0065B only if 026E0065A is NOT found ?

correct - the 'B' Location should only be highlighted if the 'A' Location is NOT found...

example:
if 025A0012A and 025A0012B are found, nothing is highlighted.
if only 025A0012B is found, then the entire row is highlighted.
 
Upvote 0
One solution ( of many, I'm sure ) should be something similar to this as a condition in the CF:

=AND(RIGHT(A2,1)="B",ISNA(MATCH(LEFT(A2,8)&"A",$A$2:$A$44,0)))

... adjust the column references to suit.
 
Upvote 0
One solution ( of many, I'm sure ) should be something similar to this as a condition in the CF:

=AND(RIGHT(A2,1)="B",ISNA(MATCH(LEFT(A2,8)&"A",$A$2:$A$44,0)))

... adjust the column references to suit.

This sort of works, however it's highlighting all the 'A' values when a 'B' value is present....this should be the oppossite, i.e. ONLY 'B' values should be highlighted when 'A' values are NOT present, is this possible?
 
Upvote 0
Describe what you did, over what range, what the active cell was when you did the CF, and any other relevant information. Show the formula that you are using for the condition in the CF. ( my formula should not highlight any 'A' values )
 
Upvote 0
GlennUK's formula works as requested, for me.

If A2 contains,
026E0065B
and the CF is applied to A2, A2 will NOT be highlighted if
026E0065A
IS found in A2:A44, and
WILL be highlighted if it is NOT found in that range.
 
Upvote 0
Describe what you did, over what range, what the active cell was when you did the CF, and any other relevant information. Show the formula that you are using for the condition in the CF. ( my formula should not highlight any 'A' values )

I clicked on 'J' column header, the clicked the 'CF' menu item, changed the 1st condition to 'Formula Is' and inserted the formula you offered above making the changes advised, here's what i have (changes appear as bold:

=AND(RIGHT(A2,1)="B",ISNA(MATCH(LEFT(A2,8)&"A",$J$2:$J$15000,0)))
 
Upvote 0
Select J2:J15000, and make the formula this:

=AND(RIGHT(J2,1)="B",ISNA(MATCH(LEFT(J2,8)&"A",$J$2:$J$15000,0)))
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,256
Members
452,901
Latest member
LisaGo

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