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!
[TABLE="width: 602"]
<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>[TR]
[TD="width: 110, bgcolor: #D9D9D9"]Name[/TD]
[TD="width: 122, bgcolor: #D9D9D9"]Current Total Cash[/TD]
[TD="width: 110, bgcolor: #D9D9D9"]Location[/TD]
[TD="width: 110, bgcolor: #D9D9D9"]Increase Type[/TD]
[TD="width: 110, bgcolor: #D9D9D9"]Increase[/TD]
[TD="width: 110, bgcolor: #D9D9D9"]Increase %[/TD]
[TD="width: 126, bgcolor: #D9D9D9"]New Total Cash FYI[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Joe Bloggs[/TD]
[TD="bgcolor: transparent, align: right"]£40,000[/TD]
[TD="bgcolor: transparent"]London [/TD]
[TD="bgcolor: transparent"]Promotion[/TD]
[TD="bgcolor: white, align: right"]£3,000[/TD]
[TD="bgcolor: transparent, align: right"]7.50[/TD]
[TD="bgcolor: transparent, align: right"]£43,000[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Fake Name [/TD]
[TD="bgcolor: transparent, align: right"]£38,000[/TD]
[TD="bgcolor: transparent"]Southampton [/TD]
[TD="bgcolor: transparent"]Nominal Increase[/TD]
[TD="bgcolor: white, align: right"]£2,000[/TD]
[TD="bgcolor: transparent, align: right"]5.26[/TD]
[TD="bgcolor: transparent, align: right"]£40,000[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Tim Splash [/TD]
[TD="bgcolor: transparent, align: right"]£21,000[/TD]
[TD="bgcolor: transparent"]London [/TD]
[TD="bgcolor: transparent"]Nominal Increase[/TD]
[TD="bgcolor: white, align: right"]£250[/TD]
[TD="bgcolor: transparent, align: right"]1.19[/TD]
[TD="bgcolor: transparent, align: right"]£21,250[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Robert Porridge[/TD]
[TD="bgcolor: transparent, align: right"]£28,500[/TD]
[TD="bgcolor: transparent"]London [/TD]
[TD="bgcolor: transparent"]Nominal Increase[/TD]
[TD="bgcolor: white, align: right"]£700[/TD]
[TD="bgcolor: transparent, align: right"]2.46[/TD]
[TD="bgcolor: transparent, align: right"]£29,200[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]James Kellogs[/TD]
[TD="bgcolor: transparent, align: right"]£23,600[/TD]
[TD="bgcolor: transparent"]Southampton [/TD]
[TD="bgcolor: transparent"]Promotion[/TD]
[TD="bgcolor: white, align: right"]£0[/TD]
[TD="bgcolor: transparent, align: right"]0.00[/TD]
[TD="bgcolor: transparent, align: right"]£23,600[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Lilly Allen [/TD]
[TD="bgcolor: transparent, align: right"]£56,000[/TD]
[TD="bgcolor: transparent"]Glasgow [/TD]
[TD="bgcolor: transparent"]Nominal Increase[/TD]
[TD="bgcolor: white, align: right"]£400[/TD]
[TD="bgcolor: transparent, align: right"]0.71[/TD]
[TD="bgcolor: transparent, align: right"]£56,400[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Sophie Harper[/TD]
[TD="bgcolor: transparent, align: right"]£78,000[/TD]
[TD="bgcolor: transparent"]Edinburgh [/TD]
[TD="bgcolor: transparent"]Promotion[/TD]
[TD="bgcolor: white, align: right"]£7,000[/TD]
[TD="bgcolor: transparent, align: right"]8.97[/TD]
[TD="bgcolor: transparent, align: right"]£85,000[/TD]
[/TR]
</tbody>[/TABLE]
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!
[TABLE="width: 602"]
<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>[TR]
[TD="width: 110, bgcolor: #D9D9D9"]Name[/TD]
[TD="width: 122, bgcolor: #D9D9D9"]Current Total Cash[/TD]
[TD="width: 110, bgcolor: #D9D9D9"]Location[/TD]
[TD="width: 110, bgcolor: #D9D9D9"]Increase Type[/TD]
[TD="width: 110, bgcolor: #D9D9D9"]Increase[/TD]
[TD="width: 110, bgcolor: #D9D9D9"]Increase %[/TD]
[TD="width: 126, bgcolor: #D9D9D9"]New Total Cash FYI[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Joe Bloggs[/TD]
[TD="bgcolor: transparent, align: right"]£40,000[/TD]
[TD="bgcolor: transparent"]London [/TD]
[TD="bgcolor: transparent"]Promotion[/TD]
[TD="bgcolor: white, align: right"]£3,000[/TD]
[TD="bgcolor: transparent, align: right"]7.50[/TD]
[TD="bgcolor: transparent, align: right"]£43,000[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Fake Name [/TD]
[TD="bgcolor: transparent, align: right"]£38,000[/TD]
[TD="bgcolor: transparent"]Southampton [/TD]
[TD="bgcolor: transparent"]Nominal Increase[/TD]
[TD="bgcolor: white, align: right"]£2,000[/TD]
[TD="bgcolor: transparent, align: right"]5.26[/TD]
[TD="bgcolor: transparent, align: right"]£40,000[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Tim Splash [/TD]
[TD="bgcolor: transparent, align: right"]£21,000[/TD]
[TD="bgcolor: transparent"]London [/TD]
[TD="bgcolor: transparent"]Nominal Increase[/TD]
[TD="bgcolor: white, align: right"]£250[/TD]
[TD="bgcolor: transparent, align: right"]1.19[/TD]
[TD="bgcolor: transparent, align: right"]£21,250[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Robert Porridge[/TD]
[TD="bgcolor: transparent, align: right"]£28,500[/TD]
[TD="bgcolor: transparent"]London [/TD]
[TD="bgcolor: transparent"]Nominal Increase[/TD]
[TD="bgcolor: white, align: right"]£700[/TD]
[TD="bgcolor: transparent, align: right"]2.46[/TD]
[TD="bgcolor: transparent, align: right"]£29,200[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]James Kellogs[/TD]
[TD="bgcolor: transparent, align: right"]£23,600[/TD]
[TD="bgcolor: transparent"]Southampton [/TD]
[TD="bgcolor: transparent"]Promotion[/TD]
[TD="bgcolor: white, align: right"]£0[/TD]
[TD="bgcolor: transparent, align: right"]0.00[/TD]
[TD="bgcolor: transparent, align: right"]£23,600[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Lilly Allen [/TD]
[TD="bgcolor: transparent, align: right"]£56,000[/TD]
[TD="bgcolor: transparent"]Glasgow [/TD]
[TD="bgcolor: transparent"]Nominal Increase[/TD]
[TD="bgcolor: white, align: right"]£400[/TD]
[TD="bgcolor: transparent, align: right"]0.71[/TD]
[TD="bgcolor: transparent, align: right"]£56,400[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Sophie Harper[/TD]
[TD="bgcolor: transparent, align: right"]£78,000[/TD]
[TD="bgcolor: transparent"]Edinburgh [/TD]
[TD="bgcolor: transparent"]Promotion[/TD]
[TD="bgcolor: white, align: right"]£7,000[/TD]
[TD="bgcolor: transparent, align: right"]8.97[/TD]
[TD="bgcolor: transparent, align: right"]£85,000[/TD]
[/TR]
</tbody>[/TABLE]