Percentage comparison between 2 cells

bill351

Board Regular
Joined
Jan 19, 2009
Messages
83
Hi Guys n Girls I am tracking Sick and Overtime in a financial year spreadsheet which is working well in showing the top hours for different staff. I would like if possible to show a percentage comparison with the 2 columns with the Sick and Overtime data in it and with that highlight the staffs name in a separate column and I figured this may be accomplished with Conditional formatting? I have my sick and OT in columns BG and BH and the staff names are in column C and the effect would be if BG1 and BH1 were say within 10% of each other then C1 would be highlighted to indicate that the staff member could be getting Overtime and then taking sick days.

Many thanks from OZ
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
You can add a conditional format to the staff names in column C: Conditional format>New Rule>use formula

Assuming the first row of data starts in row 2, the formula is

"=ABS($BG2-$BH2)/$BG2<=10%"

Pick any format for the cell.
Then use the format painter to copy the format to all names in column C.

Hope this helps,
JL
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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