+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    10-28-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    5

    Unhappy Multiple if function

    Hello,

    I'm trying to create multiple IF functions with more than 5 conditions.
    Below is what I'd like to achieve;

    Assume the formula is written in F2

    • = If A2 = "Red" then F2 should be changed to "New" if not then leave it as it is
    • = If B2 = "BIG" then F2 should be changed to "New BIG" if not then leave it as it is
    • = If B2 = "SMALL" and F2 = "Old" then F2 should be changed to "Old SMALL" if not then leave it as it is
    • = If B2 = "SMALL" and F2 = "New" then F2 should be changed to "New SMALL" if not then leave it as it is
    • = If B2 = "MEDIUM" and F2 = "Old" then F2 should be changed to "Old MEDIUM" if not then leave it as it is
    • = If B2 = "MEDIUM" and F2 = "New" then F2 should be changed to "New MEDIUM" if not then leave it as it is
    • = If B2 = "MEDIUM" and F2 = "Gone" then F2 should be changed to "Gone MEDIUM" if not the leave it as it is
    • = If B2 = "MEDIUM" and F2 = "Broken" then F2 should be changed to "Broken MEDIUM"


    Actually I could do it just by using the filter but I'm doing this 3 times a week so I kind of need a better approach especially with automation.

    Any help would be so much appreciated.



    Cheers,
    Last edited by Andalusia; 11-11-2009 at 06:24 AM.

  2. #2
    Valued Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    949

    Re: Multiple if function

    Edit:
    Looking over this, there's a rather important question:
    ...leave it as it is
    That's awfully vague. Is there a value or a formula already in this cell?
    Last edited by mewingkitty; 11-10-2009 at 10:59 AM.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Registered User
    Join Date
    10-28-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Multiple if function

    Yes there is a value in there already, I will need to change the value in that column. Any Idea?

  4. #4
    Valued Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    949

    Re: Multiple if function

    A sample workbook would be very helpful.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  5. #5
    Registered User
    Join Date
    10-28-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Multiple if function

    There you go!
    What I need to change here is the Group of District Desc based on

    District Desc and Country

    so if i re-phrase my question

    - IF District Desc = "GTO AUTOMOTIVE" then I need to change the Group of District Desc from "OTHER" to "GGD"
    - IF Country = "RUSSIA" then I need to change the Group of District Desc from "BBA" to "BBA RUSSIA"
    - IF COUNTRY = "ISRAEL" AND Group of District Desc = "SLOERT" then I need to change the Group of District Desc from "SLOERT" to "SLOERT ISRAEL"
    - IF COUNTRY = "ISRAEL" AND Group of District Desc = "INDIRECT" then I need to change the Group of District Desc from "INDIRECT" to "INDIRECT ISRAEL"
    - IF COUNTRY = "MCO" AND Group of District Desc = "SLOERT" then I need to change the Group of District Desc from "SLOERT" to "SLOERT MCO"
    - IF COUNTRY = "MCO" AND Group of District Desc = "INDIRECT" then I need to change the Group of District Desc from "INDIRECT" to "INDIRECT MCO"


    Have I explained it better?









    Attached Files Attached Files

  6. #6
    Valued Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    949

    Re: Multiple if function

    See attached.
    I didn't really see any solid pattern to your conditions so I went with a big ugly if statement.
    Attached Files Attached Files
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  7. #7
    Registered User
    Join Date
    10-28-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    5

    Thumbs up Re: Multiple if function

    Sweet Dude! It works! You're BRILLIANT!
    now i just need to record this with MACRO and.. the pain is gone!

    THANKS A LOT!
    Last edited by Andalusia; 11-11-2009 at 06:22 AM.

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.2.0