Excel Calculator with conditional format

%3CLINGO-SUB%20id%3D%22lingo-sub-1769390%22%20slang%3D%22en-US%22%3EExcel%20Calculator%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1769390%22%20slang%3D%22en-US%22%3E%3CP%3EEvening%20all%2C%20attaching%20a%20sample%20file%20with%20the%20formulas%20i%20already%20have%20for%20referencing%20other%20tabs%2C%20data%20pull%20in%2C%20data%20validation%2C%20etc.%26nbsp%3B%20This%20is%20a%20calculator%20to%20assist%20my%20team%20in%20determining%20expected%20reimbursement.%26nbsp%3B%20My%20current%20issue%20is%20just%20conditional%20formatting%20-%20i%20want%20two%20cells%20to%20turn%20black%20if%20two%20other%20cells%20don't%20contain%20certain%20info%2C%20and%20I%20want%20four%20other%20cells%20to%20turn%20black%20if%20certain%20info%20is%20present.%26nbsp%3B%20The%20sheet%20gives%20all%20the%20details%20to%20make%20it%20simpler%20to%20follow.%26nbsp%3B%20I%20have%20tried%20multiple%20attempts%20at%20correcting%20this%2C%20but%20somehow%20conditional%20formatting%20is%20kicking%20my%20butt...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1769390%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1769411%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Calculator%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1769411%22%20slang%3D%22en-US%22%3EJust%20a%20cursory%20look%2C%20but%20I%20think%20you%20need%20to%20fix%20your%20cell%20references%20in%20your%20conditional%20formatting%20formulas%20by%20adding%20%24%20signs.%3CBR%20%2F%3E%3CBR%20%2F%3E%3DOR(%24B%244%3D%22A%22%2CAND(%24B%243%3D%22CHB%22%2C%24B%244%3D%22C%22))%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1769419%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Calculator%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1769419%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20JMB17%2C%20but%20if%20you%20click%20into%20any%20of%20the%20range%20B7%3AB10%2C%20you%20can%20see%20the%20CF%20formula%20still%20references%20the%20intended%20cells.%26nbsp%3B%20In%20the%20snapshot%20below%20i've%20selected%20cell%20B8%2C%20and%20see%20the%20appropriate%20B4%20and%20B3%20references%20in%20the%20selection%20criteria.%26nbsp%3B%20I%20would%20assume%20the%20remainder%20of%20B8-B10%20would%20also%20fill%20black%20given%20that%3F%26nbsp%3B%20Is%20there%20some%20other%20part%20to%20locking%20the%20reference%20i'm%20misunderstanding%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeCavasin_0-1602445265204.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225847i65B21B9E90A98F73%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JoeCavasin_0-1602445265204.png%22%20alt%3D%22JoeCavasin_0-1602445265204.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1769927%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Calculator%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1769927%22%20slang%3D%22en-US%22%3EAbsolute%2Frelative%20cell%20references%20work%20the%20same%20in%20conditional%20formatting%20formulas%20as%20they%20do%20worksheet%20formulas.%3CBR%20%2F%3E%3CBR%20%2F%3ESo%2C%20no%2C%20cell%20B8%20does%20not%20reference%20B3%20and%20B4.%20Most%20likely%2C%20B7%20was%20the%20active%20cell%20when%20you%20created%20the%20conditional%20format%2C%20so%20the%20CF%20formula%20applied%20to%20B8%20is%20referencing%20B4%20and%20B5%20(and%20so%20on).%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1773193%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Calculator%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1773193%22%20slang%3D%22en-US%22%3EHaving%20fixed%20that%20issue%2C%20the%20problem%20i'm%20having%20now%20is%20i%20need%20B7%20to%20black%20out%20under%20two%20conditions%3A%3CBR%20%2F%3E1.%20cell%20B4%20%3D%20%22Coventry%22%3CBR%20%2F%3E2.%20Cell%20B3%20%3D%20%22CHB%22%20AND%20Cell%20B4%20%3D%20%22Kaiser%22%3CBR%20%2F%3EThis%20is%20currently%20written%20as%3A%20%3DOR(%24B%244%3D%22Coventry%22%2CAND(%24B%243%3D%22CHB%22%2C%24B%244%3D%22Kaiser%22))%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20will%20only%20work%20(fill%20black)%20when%20cell%20B4%20shows%20%22Coventry%22.%20I've%20tried%20multiple%20versions%2C%20including%20two%20separate%20CF%20formulae%2C%20but%20of%20course%20nothing%20has%20yet%20worked.%3CBR%20%2F%3E%3CBR%20%2F%3EDoes%20anyone%20have%20any%20insight%20into%20how%20to%20make%20an%20evaluation%20statement%20like%20the%20above%20work%20for%20conditional%20formatting%20rules%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1773398%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Calculator%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1773398%22%20slang%3D%22en-US%22%3EThe%20formula%20looks%20good.%20Are%20you%20positive%20B3%3D%22CHB%22%20and%20B4%3D%22Kaiser%22%3F%20Are%20there%20any%20trailing%20spaces%20in%20those%20cell%20values%3F%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20that's%20not%20the%20issue%2C%20you'll%20need%20to%20upload%20another%20copy%20of%20the%20workbook%20with%20the%20applicable%20worksheets.%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Evening all, attaching a sample file with the formulas i already have for referencing other tabs, data pull in, data validation, etc.  This is a calculator to assist my team in determining expected reimbursement.  My current issue is just conditional formatting - i want two cells to turn black if two other cells don't contain certain info, and I want four other cells to turn black if certain info is present.  The sheet gives all the details to make it simpler to follow.  I have tried multiple attempts at correcting this, but somehow conditional formatting is kicking my butt...

7 Replies
Highlighted
Just a cursory look, but I think you need to fix your cell references in your conditional formatting formulas by adding $ signs.

=OR($B$4="A",AND($B$3="CHB",$B$4="C"))
Highlighted

Thanks JMB17, but if you click into any of the range B7:B10, you can see the CF formula still references the intended cells.  In the snapshot below i've selected cell B8, and see the appropriate B4 and B3 references in the selection criteria.  I would assume the remainder of B8-B10 would also fill black given that?  Is there some other part to locking the reference i'm misunderstanding?

 

JoeCavasin_0-1602445265204.png

 

Highlighted
Absolute/relative cell references work the same in conditional formatting formulas as they do worksheet formulas.

So, no, cell B8 does not reference B3 and B4. Most likely, B7 was the active cell when you created the conditional format, so the CF formula applied to B8 is referencing B4 and B5 (and so on).
Highlighted
Having fixed that issue, the problem i'm having now is i need B7 to black out under two conditions:
1. cell B4 = "Coventry"
2. Cell B3 = "CHB" AND Cell B4 = "Kaiser"
This is currently written as: =OR($B$4="Coventry",AND($B$3="CHB",$B$4="Kaiser"))

It will only work (fill black) when cell B4 shows "Coventry". I've tried multiple versions, including two separate CF formulae, but of course nothing has yet worked.

Does anyone have any insight into how to make an evaluation statement like the above work for conditional formatting rules?
Highlighted
The formula looks good. Are you positive B3="CHB" and B4="Kaiser"? Are there any trailing spaces in those cell values?

If that's not the issue, you'll need to upload another copy of the workbook with the applicable worksheets.
Highlighted

@JMB17  I'm certain no trailing or leading spaces.  Unless there's some issue resulting from the values in B3 and B4 being selected by means of data validation drop down lists?  

 

Attaching an updated copy.

Highlighted

@JoeCavasin 

 

I didn't see any data validation in the file using the formula you noted. Also, Coventry and Kaiser were not included as data validation options. So, I won't be able to say why it didn't work for you.

 

I added Coventry and Kaiser to the data validation list and copy/pasted your formula exactly as you have it into the data validation manager and it appears to work as intended.