Conditional Formatting limiting it to items listed in name range.

Livin404

Well-known Member
Joined
Jan 7, 2019
Messages
743
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Good evening, I'm confident this should be straight forward, but nonetheless I find myself stuck. I have a formula I'm currently using =SUMPRODUCT(--ISNUMBER(SEARCH(Special_Account,$G2))). The special account is in the image. It is the letter preceded by a space. I want it limited to just that-(two characters- the space then the letter. If I get something like H1952035 it will not highlight because the letter H is in the name range. I'm looking for one space and one letter found in the name range and nothing else.

As always much appreciated.
 

Attachments

  • Special Account.JPG
    Special Account.JPG
    16.1 KB · Views: 6

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Try this CF formula applied to G2 and down to whatever you want:
=AND(LEN($G2)=2, COUNTIF(Special_Account,$G2)>0)
 
Upvote 0
Whilst I agree that will work fine, either of these much simpler CF formulas should also do the job.

=COUNTIF(Special_Account,G2)
=MATCH(G2,Special_Account,0)
 
Upvote 0
Thank you, since you’re here I’m trying to find the formula to highlight blank cells. I know the obvious way, but what I am using is a template to let the user know if there are errors and one of those is for blank cells. The problem is the number of rows are variable. So I’m looking for the conditional format formula that will locate the last row in a Column and highlight only blank cells from row 1 down to the last filled row. As it stands now the whole sheet is yellow and hard to look at. This would be from Column A to H and theN J to V.
Thank you.
 
Upvote 0
Try applying CF like this to all cells down as far as you might ever need. In this example I have applied to row 100. If you apply to more or less rows then also adjust the range in the CF formula.

20 10 11.xlsm
A
1x
2
3x
4x
5x
6
7x
8
9
10
11
12
13x
14x
15
16x
17
18
19
20
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A100Expression=AND(A1="",COUNTA(A1:A$100))textNO
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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