+ Reply to Thread
Results 1 to 4 of 4

If this AND that

  1. #1
    Forum Contributor
    Join Date
    04-14-2017
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    148

    If this AND that

    Good Day

    In cell I37 I am trying the following formula

    =IF(OR(H37 = "TRUE", H37 = "FALSE"), "a", "r"), I am not getting result 'a' though cell H37 is TRUE

    Thanks

  2. #2
    Forum Contributor
    Join Date
    05-03-2021
    Location
    Nashville
    MS-Off Ver
    MS Office 365
    Posts
    184

    Re: If this AND that

    OR already has a True / False built into it.

    But this isn't an OR formula.

    This is

    IF(H37=TRUE,"a","r")

    The if statement is already a True or False inquiry.

    If H37 is true put 'a', if it is false put 'r'.


    To expand:
    What your formula is telling Excel
    IF H37 is True OR False put "a" otherwise put "r"... Since the statement is 100% of the time going to be true or false, it will always put "a", and never "r".
    Last edited by thenewkidd; 05-14-2021 at 04:13 PM.

  3. #3
    Forum Contributor
    Join Date
    04-14-2017
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    148

    Re: If this AND that

    Hi

    Thanks a million, works like a charm
    Once again thanks for your assistance, greatly appreciated

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: If this AND that

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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