Conditional formatting

Closed
driaswann Posts 1 Registration date Monday February 25, 2013 Status Member Last seen February 25, 2013 - Feb 25, 2013 at 11:03 AM
Zohaib R Posts 2368 Registration date Sunday September 23, 2012 Status Member Last seen December 13, 2018 - Feb 25, 2013 at 12:04 PM
Hello,

If cell P5 is greater than Q5, I need cell R5 to equal Q5. If P5 is less than Q5, I need cell R5 to equal P5.

Any help would be appreciated.
Thank you for your time.

:)

2 responses

TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 552
Feb 25, 2013 at 11:59 AM
Hi Driaswann,

Strange title.
Sounds to me like you want an IF formula:
=IF(P5>Q5,Q5,IF(P5<Q5,P5,""))

Put this formula in R5.
If P5 equals Q5 then R5 is empty.

Best regards,
Trowa
0
Zohaib R Posts 2368 Registration date Sunday September 23, 2012 Status Member Last seen December 13, 2018 69
Feb 25, 2013 at 12:04 PM
Hi driaswann,

You can use nested IFs to get the desired results. Please put the following formula in R5:

=IF(P5>Q5,Q5,IF(P5<Q5,P5,""))

Do reply with results.
0