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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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,214,567
Messages
6,120,268
Members
448,953
Latest member
Dutchie_1

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