+ Reply to Thread
Results 1 to 5 of 5

What is the use of the star before AND in if statement

  1. #1
    Registered User
    Join Date
    05-12-2008
    Posts
    40

    What is the use of the star before AND in if statement

    =IF((P13>O13)*AND(C13>=75),P13,"")

    What is the use of the star before AND.

    thanks

  2. #2
    Registered User
    Join Date
    06-24-2008
    Location
    Cambridge UK
    Posts
    53
    Erm... multiplication?

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Asterisk in a formula

    Re:
    Please Login or Register  to view this content.
    The asterisk (*) is Excel's muliplication operator. In that formula, it is multiplying the result of the first test (P13>O13) by the results of the second test AND(C13>=75). Each of those tests return a TRUE/FALSE value. By applying an arithmetic operator (+, -, *, /), they are converted to 1 and 0, respectively. If they are both TRUE....then 1*1=1. In the test section of an IF formula, TRUE and 1....FALSE and 0....are interchangable.

    However.....a better formula would be this:
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by arfanvilla
    =IF((P13>O13)*AND(C13>=75),P13,"")

    What is the use of the star before AND.

    thanks
    What are trying to do?

    You probably want:

    =IF(And(P13>O13,C13>=75),P13,"")

    which means if P13 > O13 and C13>-75, then return P13 else leave blank.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    05-12-2008
    Posts
    40
    thanks, i reliased that the formula was ANDing the two functions just in a different way to what I normally use.

+ 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