+ Reply to Thread
Results 1 to 2 of 2

Function

  1. #1
    Registered User
    Join Date
    12-17-2007
    Posts
    1

    Function

    =IF(AND($F11="",$G11=""),"",IF(AND($F11="?",$G11="?"),"",IF(AND($F11=0,$G11=0),0,IF(OR($F11>0,$G11>0),(E11*F11)+(E11*G11/2)))))

    Can anyone tell me what the "" and the "?" in the above formula mean? and what is the "" between the IF statements?

    Thanks for your help!

    Brian

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Please Login or Register  to view this content.
    The two quotes in succession refer to a blank or empty cell/value. The "?" is looking for a question mark as the value in a cell. The formula, broken down section by section says:

    =IF(AND($F11="",$G11=""),"",

    ...If F11 and G11 are both blank, then show blank (nothing) in this cell.

    IF(AND($F11="?",$G11="?"),"",

    ...If F11 and G11 both contain question marks, then show blank in this cell.

    IF(AND($F11=0,$G11=0),0,

    ...If F11 and G11 both contain 0, then show 0 in this cell.

    IF(OR($F11>0,$G11>0),(E11*F11)+(E11*G11/2)))))

    ...If F11 or G11 is greater than 0, then add the product of E11 and F11 with the product of E11 and G11/2.

    Hopefully that makes sense.

+ 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