Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Apr 2010
    Location
    Welkom, South Africa
    Posts
    53
    Thanks
    9
    Thanked 0 Times in 0 Posts

    @if question for Excel 2007

    I want to compare the values in 2 adjacent cells and then have the column heading inserted in the third cell. For this I use the formula: =IF(E5>F5,$E$3,$F$3) This works OK.
    Problem: When the values are equal, I want an X in the third cell.
    How do I combine these 2 requirements into one statement?

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts
    How about:

    =IF(E5>F5,$E$3, IF(E5=F5,"X",$F$3))

    Steve

  3. #3
    Star Lounger
    Join Date
    Apr 2010
    Location
    Welkom, South Africa
    Posts
    53
    Thanks
    9
    Thanked 0 Times in 0 Posts

    That's it

    Thanks Steve. I realised it would have to be an inbedded formula, but could not figure it out. That's what happens when you use Excel only occasionally.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •