Conditional Formatting Question

data808

Active Member
Joined
Dec 3, 2010
Messages
356
Office Version
  1. 2019
Platform
  1. Windows
I have a cell R5, R6, and R7 merged as one. This merged cell is mirroring (= Q89) another cell (Q89) which has a grand total value in it and but uses a concatenate function to help sum up the total. I think the concatenate function may be causing the conditional formatting not work. I would like the R merged cell to highlight red if the value is less than 150 and turn green if its 150 or more.

Can someone tell me why this is not working? If I try it on regular cells without the concatenate function then it works fine. If VBA is better than I am open to that as well. Thank you very much for the help.
 
it doesn't work because its not a real number , its actually text
as mentioned before, in previous posts - you need to change the text to a number and to do that you multiply by 1

formula() * 1
and then it will work

I thought i showed that in my previous posts and the image , sorry i'm obviously not explaining well
Thanks for the reply. I will try it out and let you know but just to show you what the concatenate function that was in these cells, here it is:

Q89 cell =CONCATENATE("Work Units: ",K99)

R6 and R7 merged cell =CONCATENATE(K99)

Let me know if this changes your suggestion for a solution to the problem. Thanks.
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
why not just use

=K99 in R6 / R7

not adding anything by using concatenate(K99)

is just the cell

merged cells R6 & R7
the reference would be R6 for conditional formatting

Book9
ABCDEFGH
1123123Work Units: 123
21212
31212
46060
51212
67070
71212
81212
9
Sheet1
Cell Formulas
RangeFormula
H1H1=CONCATENATE("Work Units: ",A1)
C1:C8C1=CONCATENATE(A1)*1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1:D8Expression=C1>50textNO
 
Upvote 0
why not just use

=K99 in R6 / R7

not adding anything by using concatenate(K99)

is just the cell

merged cells R6 & R7
the reference would be R6 for conditional formatting

Book9
ABCDEFGH
1123123Work Units: 123
21212
31212
46060
51212
67070
71212
81212
9
Sheet1
Cell Formulas
RangeFormula
H1H1=CONCATENATE("Work Units: ",A1)
C1:C8C1=CONCATENATE(A1)*1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1:D8Expression=C1>50textNO
Thank you so much for the help. It worked!! It's crazy how something so simple as "*1" can fix this issue. Thanks again.
 
Upvote 0
you are welcome

Often see questions here where data has been imported or using text functions like concatenate() , right() , left() where the number looks ok , but is not a number
Often the justification gives it away - when its to the left of the cell its Text when to right a number
 
Upvote 0

Forum statistics

Threads
1,216,060
Messages
6,128,548
Members
449,457
Latest member
ncguzzo

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