+ Reply to Thread
Results 1 to 5 of 5

IF or AND help

  1. #1
    Registered User
    Join Date
    07-17-2017
    Location
    Montreal, Canada
    MS-Off Ver
    2003
    Posts
    3

    IF or AND help

    Hello,

    I am not familiar with these functions and I am having trouble trying to get the results I want.

    Basically, I have 2 columns that will either say Pass or Fail.
    1) If the columns both say Pass, I want a third column to auto populate to $100.
    2) If the columns both say Fail, I want a fourth column to auto populate with $100.
    3) If they say Pass and Fail, I want a fifth column to auto populate with the words "TBD".

    How do I go about doing this? Any help would be much appreciated. Thank you!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    59,102

    Re: IF or AND help

    Let's say your lookup columns are A and B. This in C1:

    =IF(AND(A1="Pass",B1="Pass"),100,"")

    and this in D1:

    =IF(AND(A1="Fail",B1="Fail"),100,"")

    and this in E1:

    =IF(A1<>B1,"TBD","")

    Your columns C and D will be formatted as currency.
    Ali


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


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: IF or AND help

    c1 =if(And($A1="Pass",$B1="Pass"),100,"")

    can you make the formula in d1 and e1 by yourself?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    07-17-2017
    Location
    Montreal, Canada
    MS-Off Ver
    2003
    Posts
    3

    Re: IF or AND help

    Thank you SO much for your fast reply. I spent so long trying to figure this out and now it makes so much sense!

    I know that the formulas for #1 and #2 are the exact same thing, however, for whatever reason, I have no results when I try #2. I've tried deleting columns and creating new ones, but it comes out as blank. It actually quickly shows as "$0", then disappears. Do you know why this could be? Is there some sort of formatting I need to check for?

    #1 and #3 work perfectly.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    59,102

    Re: IF or AND help

    It sounds like you have the column or w.orkbook formatted to hide zero values - could that be it? If you can't find the issue, attach the workbook here for someone to take a look for you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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