Conditional Format not working on some values

GadgetGazza

New Member
Joined
Sep 19, 2011
Messages
8
I have a worksheet and in column M the formula =SUM(I5:L5) to row I10.

Conditional format "cell value is not equal to =$G$5" then highlight red.

This is fine on a lot of the values from 0 >15 but when the value in column G is 8.5 > 9.75 then it still stays red?

The value is always in 0.25 increments

Column G "=E5" If I change this to the actual number the red highlight clears.

Any ideas?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Welcome to the Board!

Can you tell us what the value are in G5 and E5, and what the values are in columns one of the rows where it isn't working right (column I through L)?
 
Upvote 0
Hi Joe4, Thanks for the reply.

E5 "=SUM(D6-INT(D6))*24" and G5 "=E5"

Columns I through L are just numerical Format number to 2 decimal places

If the total is 7.50 it does not matter if 7.50 is in column I or 5.00 in column I and 2.50 in column J the red highlight does not clear.:confused:
 
Upvote 0
OK, you keep adding in new cells to populate that weren't mentioned in the previous post.(D6 now).

Can you to provide us with ALL the pertinent details of an example that doesn't work (that means providing the values in ALL cells pertinent to the example and all the formulas in the in all cells pertinent in the example).

Thanks
 
Upvote 0
Sorry I picked the wrong row. should of been D5.

Complete row is A "Date" B Time "00:00:00" C Time "00:00:00"

column D "=SUM((C5+1)-B5)" (using 24 hr clock gives hours between start B and finish C)

E "=SUM(D5-INT(D5))*24"

Then G "=E5"

Have tried the conditional format looking at G and also E and on both, if the numeric number is there it is ok, but not with the formula.
 
Upvote 0
OK, I do not think you are understanding me. I am trying to reproduce the EXACT situation that you are experiencing where it is not working, so I need the exact details. I want an actual example of one that is not working. Let me know the EXACT value of every single populated cell in row 5.

Or better yet, maybe post a screen print of these values using one of the tools mentioned here: http://www.mrexcel.com/forum/showthread.php?t=508133
 
Upvote 0
Excel Workbook
ABCDEFGHIJKLM
605-Sep-1108:00:0015:30:0007:30:007.501.007.50Monday7.507.50
706-Sep-1104:00:0016:45:0012:45:0012.751.0012.75Tuesday10.752.0012.75
807-Sep-1107:00:0015:30:0008:30:008.501.008.50Wednesday8.508.50
908-Sep-1105:30:0015:15:0009:45:009.751.009.75Thursday9.250.509.75
1009-Sep-1108:00:0012:45:0004:45:004.750.004.75Friday4.754.75
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
M61. / Cell Value not equal to =$G$6Abc
M71. / Cell Value not equal to =$G$7Abc
M81. / Cell Value not equal to =$G$8Abc
M91. / Cell Value not equal to =$G$9Abc
M101. / Cell Value not equal to =$G$10Abc


Excel Jeanie works well :)

This example the person did not work Sunday so no values in row 5.

Row 5 - 11 Sunday - Saturday are all the same.

Thanks for your help.
 
Upvote 0
A few issues:

1. You are not using the SUM function correctly in some of your equations. You use it to SUM up a range of values, like your did in cell M6. But it is unnecessary in cells D6 and E6 (it shouldn't change the results, but it is generally considered bad form and can confuse the situation). They should be able to be written like:
D6: =C6+1-B6
E6: =(D6-INT(D6))*24

2. In copying your formulas and values, I do not get the value you are showing in E6. It returns 12 hours for me which makes sense because (7:30 - 7:00) * 24 returns 12 hours. I do not see where you are getting 7.50 from. What is this value supposed to represent?
 
Upvote 0
Hi Joe4,

As you may of guessed this calculates hours worked and pay required further down the sheet.

As the macros and other formulas to get us here would not work on single minutes we pay to the quarter hour, or in decimal 0.25. (Probably would calculate correctly, just not with the limited knowledge I had when first writing the program)
E6 is the 7.5 hours worked that day. Cell format "number to 2 decimal places"

I is day hours, J is night hours and K is overtime.

Thanks
 
Upvote 0
It seems to work for me.
Where is the value in I6 coming from?
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,448
Members
452,915
Latest member
hannnahheileen

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