+ Reply to Thread
Results 1 to 8 of 8

Multi Parameter IF Statement

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    19

    Multi Parameter IF Statement

    Good Morning All

    I was wondering if anyone can assist me, I have set up a multi parameter IF statement (Shown below) which is based on selections from two different cells to give different outcomes based on the selections there in, but I keep getting errors

    Any thoughts or help would be appreciated

    PHP Code: 
    =IF(OR(AND($B$5="Above",$B$7="Yes",B9+1),AND($B$5="Above",$B$7="No",B9+3),AND($B$5="Below",B9+1,$B$7="Yes",B9+1),AND($B$5="Below",$B$7="No",B9+2)),1,0
    Thanks
    CraigieL

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Multi Parameter IF Statement

    Please Login or Register  to view this content.
    try the one above.

    i collored red where i made a change in your formula.
    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.

  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Multi Parameter IF Statement

    Thank you - it now returns a zero, what I would like it to do is based on the selections carry out the calculation - I may be going about it the wron way
    ?

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Multi Parameter IF Statement

    You get better help if you show is the excel file, without confidentional information.

    Please also add the desired (expected) result.

  5. #5
    Registered User
    Join Date
    10-18-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Multi Parameter IF Statement

    Quote Originally Posted by oeldere View Post
    You get better help if you show is the excel file, without confidentional information.

    Please also add the desired (expected) result.
    Hi Oeldere

    I have attached an extract from the file I want to apply this IF "set " to.

    The formula is contained in cell B5

    Based on the selections in B1 & B2 I want to calculate out (as per calculationsin cell B5) from date in cell B4

    Test File.xls

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Multi Parameter IF Statement

    I changed your formula, so now it works.

    You use datavalation.

    Make sure the words in datavalidation are equal to the words in the formula.

    You use Y and N for datavalidation

    and

    Yes and No in your formula.

    That won't match, so that give a faillure.

    See the attached file.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-18-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Multi Parameter IF Statement

    Fantastic - thank you for the help

  8. #8
    Registered User
    Join Date
    10-18-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Multi Parameter IF Statement

    Good Afternoon

    In relation to the above thread I have created a further staement which I can't seem to combine

    It is based on two seperate selections and the formula is contained below

    the test file has been updated to include the selections detailed in the formula below (cell B5)

    Please Login or Register  to view this content.
    Can you help ?

    Many Thanks

+ 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