+ Reply to Thread
Results 1 to 8 of 8

Combining formulas

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    Jupiter
    MS-Off Ver
    Excel 2013
    Posts
    78

    Combining formulas

    I need to combine this into 1 formula.

    If BQ4-$CY$1<=-1 and BG4 = 10 then the cell should equal 30%

    or

    If BQ4-$CY$1<=-1 and BG4 = 2 then the cell should equal 75%

    or

    If BQ4-$CY$1<=-1 and BF4 = "Salsa" then the cell should equal 50%

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

    Re: Combining formulas

    If(and((BQ4-$CY$1)<=-1,BG=10),.3,if(and((BQ4-$CY$1)<=-1,BG=2,.75,if(and((BQ4-$CY$1)<=-1,BF4="Salsa"),.5,Value if none of the criteria apply)))
    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
    Registered User
    Join Date
    01-14-2013
    Location
    Jupiter
    MS-Off Ver
    Excel 2013
    Posts
    78

    Re: Combining formulas

    That formula doesn't work. I tried that too but it says there is a problem with the formula.

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

    Re: Combining formulas

    What is the error message. What results do you get. Need more info to help you.

  5. #5
    Registered User
    Join Date
    01-14-2013
    Location
    Jupiter
    MS-Off Ver
    Excel 2013
    Posts
    78

    Re: Combining formulas

    The error says, "We found a problem with this formula. Try clicking Insert Function on the Formulas tab to fix it, or click Help for more info on common formula problems."

    It won't let me enter the formula. I have to delete the formula or change it.

  6. #6
    Registered User
    Join Date
    01-14-2013
    Location
    Jupiter
    MS-Off Ver
    Excel 2013
    Posts
    78

    Re: Combining formulas

    I got it. I had to include some other stuff but the formula I have is:

    IF(OR(BD4="Cooler",BD4="CoolerOut",BD4="CoolerOverstock"),IF(AND(BQ4<>"",BQ4-$CY$1<=-1,BG4=10,BF4="Salsa"),0.5,IF(AND(BQ4<>"",BQ4-$CY$1<=-1,BG4=14),0.3,IF(AND(BQ4<>"",BQ4-$CY$1<=-1,BG4=2),0.75,IF(AND(BQ4<>"",BQ4-$CY$1<=-1,BG4=10),0.3,"")))))

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

    Re: Combining formulas

    Found the error

    try this: If(and((BQ4-$CY$1)<=-1,BG4=10),.3,if(and((BQ4-$CY$1)<=-1,BG4=2,.75,if(and((BQ4-$CY$1)<=-1,BF4="Salsa"),.5,Value if none of the criteria apply)))

    Missed the cell in BG4; had just BG

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

    Re: Combining formulas

    Glad that you solved it.

    Alan

+ 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