Hi there,
I was looking for some help. If anyone is willing to point my in the right direction, I'd be incredibly grateful. I'm currently trying to use conditional formatting to colour cells in column F, one of two different colours using the "Use a formula to determine which cells to format" option.
However I’m having trouble with the syntax of the argument because I’m not very good at IF, AND & OR statements.
The real life situation is that if an employee is receiving a nominal increase to their salary (noted in column D) & is based in london (noted in column C), a 5% increase can be applied (calculated in column F) before the cell becomes “red”, i.e. dictates to the end user that this is not within the acceptable boundaries.
However if the employee is NOT based in london, only a 3% increase can be applied before the cell becomes “red”.
If the % increase is “acceptable”, i.e. within the boundaries as per their location, then the cell in column F should be coloured green.
A simplified version is below;
If contents of cell D2 = “Promotion”, do nothing
BUT
(If contents of cell D2 = “Nominal Increase”,
AND
If contents of cell C2 = "London" AND number in cell F2 is ABOVE 5.01- colour cell F2 – red.
OR
If contents of cell C2 = "London" AND number in cell F2 is BELOW 5.01- colour cell F2 - green
ALSO
If contents of cell C2 <> "London" AND number in cell F2 is BELOW 3.01- colour cell F2 - green
OR
If contents of cell C2 <> "London" AND number in cell F2 is ABOVE 3.01- colour cell F2 - red
Table below in case that helps! Thank you!
<colgroup><col width="110" style="width: 83pt;">
<col width="122" style="width: 92pt; mso-width-source: userset; mso-width-alt: 4461;">
<col width="110" style="width: 83pt;" span="3">
<col width="110" style="width: 83pt; mso-width-source: userset; mso-width-alt: 4022;">
<col width="126" style="width: 95pt; mso-width-source: userset; mso-width-alt: 4608;">
<tbody>
</tbody>
I was looking for some help. If anyone is willing to point my in the right direction, I'd be incredibly grateful. I'm currently trying to use conditional formatting to colour cells in column F, one of two different colours using the "Use a formula to determine which cells to format" option.
However I’m having trouble with the syntax of the argument because I’m not very good at IF, AND & OR statements.
The real life situation is that if an employee is receiving a nominal increase to their salary (noted in column D) & is based in london (noted in column C), a 5% increase can be applied (calculated in column F) before the cell becomes “red”, i.e. dictates to the end user that this is not within the acceptable boundaries.
However if the employee is NOT based in london, only a 3% increase can be applied before the cell becomes “red”.
If the % increase is “acceptable”, i.e. within the boundaries as per their location, then the cell in column F should be coloured green.
A simplified version is below;
If contents of cell D2 = “Promotion”, do nothing
BUT
(If contents of cell D2 = “Nominal Increase”,
AND
If contents of cell C2 = "London" AND number in cell F2 is ABOVE 5.01- colour cell F2 – red.
OR
If contents of cell C2 = "London" AND number in cell F2 is BELOW 5.01- colour cell F2 - green
ALSO
If contents of cell C2 <> "London" AND number in cell F2 is BELOW 3.01- colour cell F2 - green
OR
If contents of cell C2 <> "London" AND number in cell F2 is ABOVE 3.01- colour cell F2 - red
Table below in case that helps! Thank you!
Name | Current Total Cash | Location | Increase Type | Increase | Increase % | New Total Cash FYI |
Joe Bloggs | £40,000 | London | Promotion | £3,000 | 7.50 | £43,000 |
Fake Name | £38,000 | Southampton | Nominal Increase | £2,000 | 5.26 | £40,000 |
Tim Splash | £21,000 | London | Nominal Increase | £250 | 1.19 | £21,250 |
Robert Porridge | £28,500 | London | Nominal Increase | £700 | 2.46 | £29,200 |
James Kellogs | £23,600 | Southampton | Promotion | £0 | 0.00 | £23,600 |
Lilly Allen | £56,000 | Glasgow | Nominal Increase | £400 | 0.71 | £56,400 |
Sophie Harper | £78,000 | Edinburgh | Promotion | £7,000 | 8.97 | £85,000 |