+ Reply to Thread
Results 1 to 4 of 4

Multiple TRUE,FALSE criteria

  1. #1
    Forum Contributor
    Join Date
    08-25-2013
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2013
    Posts
    205

    Multiple TRUE,FALSE criteria

    I would like a formula for column "C" that will output one of the following four values:

    1) = "100" when column "A" value is negative and column "B" value is "W"
    2) = (value of column "A") when column "A" value is positive and column "B" value is "W"
    3) = "-100" when column "A" value is positive and column "B" value is "L"
    4) = (value of column "A") when column "A" value is negative and column "B" value is "L"

    My spreadsheet looks like column "A" and "B", but I'd like the values in column "C" to appear automatically via formula.

    A B C
    -143 W [100]
    111 W [111]
    167 L [-100]
    -125 L [-125]

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Multiple TRUE,FALSE criteria

    Try this in Column C and copy down:

    =IF(AND(A1<0,B1="W"),100,IF(AND(A1>0,B1="W"),A1,IF(AND(A1>0,B1="L"),-100,A1)))
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: Multiple TRUE,FALSE criteria

    =IF(A1<0,if(B1="W",100,if(B1="L",A1,"NA")),if(B1="W",A1,if(B1="L",-100,"NA")))

    This formula is based on the Positive Value and Negative value .

    Here I check A1 is whether Positive or Negative and then check value based on B1 is "W" or "L" and give the results based on it

    ______________________________________________________________________________________________________________________________________
    Please click * to say thank you


    “I have not failed. I've just found 10,000 ways that won't work.”
    ― Thomas A. Edison

  4. #4
    Forum Contributor
    Join Date
    08-25-2013
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2013
    Posts
    205

    Re: Multiple TRUE,FALSE criteria

    Fantastic! Appreciate it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Calculating if hours taken are true or false by 4 different criteria.
    By SamCrome in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-16-2012, 08:25 AM
  2. Replies: 2
    Last Post: 09-06-2012, 01:19 AM
  3. [SOLVED] Determining True/false based on multiple criteria
    By byeong in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2012, 12:04 PM
  4. Excel 2007 : IF/AND TRUE/FALSE and two criteria
    By myparticulars in forum Excel General
    Replies: 11
    Last Post: 08-20-2009, 04:23 PM
  5. Adv Filter criteria, true false, vs 1 and 0
    By Larryr8732 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2007, 12:02 PM

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