+ Reply to Thread
Results 1 to 7 of 7

Third Option For IF

  1. #1
    Registered User
    Join Date
    01-24-2007
    Posts
    9

    Third Option For IF

    Need to be able to give a third option of TBD if two values are equal.

    My formula so far: =IF(D3>D7,B3,B7)

    Works fine except when values in D3 & D7 are equal.
    It then returns the value in D7. I need it to be blank or show TBD

    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Third Option For IF

    =IF(D3>D7,B3,IF(D3<D7,B7,”TBD"))


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Third Option For IF

    Thanks for the rep,


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  4. #4
    Registered User
    Join Date
    01-24-2007
    Posts
    9

    Re: Third Option For IF

    If I cut and paste the solution above it gives me an error. I believe it has something to do with the quotations in this part of the equation? The only way I got it to work for now is by adding TBD into another cell in this case H3 and then reference that cell as follows:

    = IF(D3>D7,B3,IF(D3<D7,B7,H3))

    Appreciate the help!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Third Option For IF

    It's something to do with the characters being picked up when copying from the web page ... not sure why.

    Copy and paste the formula as typed above and paste it into the formula bar BUT, before pressing Enter, delete the quotes and retype them.


    Regards, TMS

  6. #6
    Registered User
    Join Date
    01-24-2007
    Posts
    9

    Re: Third Option For IF

    Perfect! Thanks

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Third Option For IF

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1