SOLVED

FORMULA not working with conditional format

%3CLINGO-SUB%20id%3D%22lingo-sub-3008460%22%20slang%3D%22en-US%22%3EFORMULA%20not%20working%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3008460%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20using%20an%20IF%20statement%20to%20copy%20data%20from%20another%20cell%2C%20but%20I%20cannot%20get%20the%20conditional%20formatting%20to%20work%20on%20the%20cell%20containing%20the%20formula%3F%20I%20think%20this%20is%20because%20the%20conditional%20formatting%20is%20picking%20up%20the%20formula%20instead%20of%20actual%20value%20it%20displaying.%20Is%20there%20a%20way%20to%20automatically%20get%20get%20the%20formula%20to%20paste%20or%20copy%20this%20value%20as%20a%20true%20string%20so%20that%20the%20conditional%20formatting%20works%20%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3008460%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3008487%22%20slang%3D%22en-US%22%3ERe%3A%20FORMULA%20not%20working%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3008487%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1230375%22%20target%3D%22_blank%22%3E%40Danwatkins1999%3C%2FA%3E%20'%3C%2FP%3E%0A%3CP%3EConditional%20formatting%20acts%20on%20a%20cell's%20value%2C%20not%20on%20its%20formula.%3C%2FP%3E%0A%3CP%3ECould%20you%20attach%20a%20small%20sample%20workbook%20demonstrating%20the%20problem%2C%20and%20explain%20what%20the%20conditional%20formatting%20rule%20should%20do%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3008495%22%20slang%3D%22en-US%22%3ERe%3A%20FORMULA%20not%20working%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3008495%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%20Hans%3CBR%20%2F%3Ethe%20conditional%20formatting%20is%20between%20two%20cell%20values%20to%20determine%20if%20the%20entered%20results%20are%20within%20limit%20or%20not%2C%20any%20rows%20marked%20x%20are%20to%20be%20manually%20entered%20results%2C%20this%20works%20fine.%20but%20it%20is%20when%20the%20data%20is%20copied%20on%20the%20rows%20that%20are%20not%20marked%20that%20doesn't%20work%20with%20conditional%20formatting.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3008524%22%20slang%3D%22en-US%22%3ERe%3A%20FORMULA%20not%20working%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3008524%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1230375%22%20target%3D%22_blank%22%3E%40Danwatkins1999%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks!%20The%20problem%20is%20that%20the%20values%20in%20B16%3AB32%20are%20text%2C%20so%20the%20mess%20up%20the%20numerical%20comparison%20when%20used%20in%20the%20formulas%20in%20M16%3AP32.%3C%2FP%3E%0A%3CP%3EYou%20can%20correct%20this%20as%20follows%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESelect%20B16%3AB32.%3C%2FLI%3E%0A%3CLI%3EChange%20the%20number%20format%20from%20Text%20to%20General.%3C%2FLI%3E%0A%3CLI%3EOn%20the%20Data%20tab%20of%20the%20ribbon%2C%20click%20Text%20to%20Columns%2C%20then%20click%20Finish%20without%20changing%20any%20settings.%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3013490%22%20slang%3D%22en-US%22%3ERe%3A%20FORMULA%20not%20working%20with%20conditional%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3013490%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20report%20has%20data%20imported%20from%20another%20software%20so%20row%20B%20automatically%20turns%20back%20into%20text%20format%2C%20when%20changing%20text%20to%20columns%20it%20removes%20the%20decimal%20places%20in%20column%20B%2C%20the%20decimal%20places%20need%20to%20remain%20the%20same.%20its%20very%20close%20to%20what%20I%20am%20after%20!%20is%20there%20any%20other%20ways%20to%20do%20this%20so%20it%20automatic%20and%20the%20decimal%20places%20are%20not%20changed%3F%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20the%20blank%20template%20and%20the%20exported%20results%20prior%20to%20what%20you%20have%20said%20below.%20it%20doesn't%20matter%20that%20not%20all%20of%20the%20values%20exported%20are%20not%20be%20in-between%20column%20G%20and%20H.%20if%20you%20could%20take%20another%20look%20at%20this%20it%20would%20be%20much%20appreciated.%26nbsp%3B%3C%2FP%3E%3CP%3Enote%20-%20it%20is%20the%20QA%20tap%20in%20reference%20to%20our%20subject%20%2F%20topic%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am using an IF statement to copy data from another cell, but I cannot get the conditional formatting to work on the cell containing the formula? I think this is because the conditional formatting is picking up the formula instead of actual value it displaying. Is there a way to automatically get get the formula to paste or copy this value as a true string so that the conditional formatting works ? 

8 Replies

@Danwatkins1999 '

Conditional formatting acts on a cell's value, not on its formula.

Could you attach a small sample workbook demonstrating the problem, and explain what the conditional formatting rule should do?

hi Hans
the conditional formatting is between two cell values to determine if the entered results are within limit or not, any rows marked x are to be manually entered results, this works fine. but it is when the data is copied on the rows that are not marked that doesn't work with conditional formatting.

@Danwatkins1999 

Thanks! The problem is that the values in B16:B32 are text, so the mess up the numerical comparison when used in the formulas in M16:P32.

You can correct this as follows:

  • Select B16:B32.
  • Change the number format from Text to General.
  • On the Data tab of the ribbon, click Text to Columns, then click Finish without changing any settings.

@Hans Vogelaar 

the report has data imported from another software so row B automatically turns back into text format, when changing text to columns it removes the decimal places in column B, the decimal places need to remain the same. its very close to what I am after ! is there any other ways to do this so it automatic and the decimal places are not changed? 

I have attached the blank template and the exported results prior to what you have said below. it doesn't matter that not all of the values exported are not be in-between column G and H. if you could take another look at this it would be much appreciated. 

note - it is the QA tap in reference to our subject / topic 

@Danwatkins1999 

I'm totally confused now.

In your first sample workbook, column B contained single values.

In your "exported data" workbook, however, column B contains a mixture of text values, single values that look like numbers, and two numbers separated by /.

So a "between" comparison makes no sense

sorry, I should have explained it better ! the idea is to save time on manual entry of results, i want to have column B to be automatically filled in the results area. it will only be the single values this will work on.  it doesn't matter if the results copied has text or two numbers separated with "/"  as these will be manually typed over, as it isn't correct to the in-between value like you said. so please ignore these. it is only the single values EG rows: 24 - 26 I am interested in. I am not sure if i need a value function somewhere ?

best response confirmed by Danwatkins1999 (Occasional Contributor)
Solution

@Danwatkins1999 

Thanks for the clarification. See the attached version.

You had rules for most individual rows; I have reduced it to 4 rules for the entire range.

That is perfect. thank you very much. very helpful