+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Combine several IFs statements/keywords in a single cell

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    6

    Combine several IFs statements/keywords in a single cell

    Hi Experts,

    1. I have 6 columns. Column A,B,C needs to be filled up based on the keywords in Column D,E,F respectively.

    2. Need your help to combine several search for a keyword in a cell to return a common value.
    For example, keywords such as "Hardware"."Harddisk", "RAM", "scanner" in column F are to return the common value "Break-Fix" in Column C.

    3. I have created several IF statements to cater to the number of possible keywords in column C for the respective main headers.
    Below are the examples

    The function below will Display Toner Replacement under Tier 3
    =IF(SUM(COUNTIF(Resolution Cell,{"*fuser*","*toner*","*drum*","*cartridge*","*mark*","*dirty*","*smudge*"}))>0,"Toner Replacement","Others")

    The function below will Display Maintenance Kit under Tier 3
    =IF(SUM(COUNTIF(Resolution Cell,{"*maintenance kit*","*kit*"}))>0,"Maintenance Kit","Others")

    The function below will display Re-image under Tier 3
    =IF(SUM(COUNTIF(Resolution Cell,{"*repair*","*restor*","*clone*","*imag*","*Reimag*"}))>0,"Re-Image","Others")

    The function below will display Mapping under Tier 3
    =IF(SUM(COUNTIF(Resolution Cell,{"*map*"}))>0,"Mapping","Others")

    The function below will display Access Rights under Tier 3
    =IF(SUM(COUNTIF(Resolution Cell,{"*access*"}))>0,"Access Rights","Others")

    The function below will display Paper Jam under Tier 3
    =IF(SUM(COUNTIF(Resolution Cell,{"*Paper Jam*","*jam*"}))>0,"Paper Jam","Others")

    The function below will display Operating System under Tier 1
    =IF(SUM(COUNTIF(Description Cell,{"*window*","*OS*","*vista*","*Operating System*","*boot*","*post*"}))>0,"Operating System","Others")

    The function below will Break-Fix under Tier 2
    =IF(SUM(COUNTIF(Resolution Cell,{"*replace*","*initialize*","*dock*","*card*","*fan*","*cable*","*cord*","*RAM*","*adapt*","*ups*","*power supply*","*paralle*","*port*","*CD*","*dvd*","*batt*","*Reseat","*hardware*","*vendor*","*mouse*","*faulty*","*LAN*","*monitor*","*screen*","*NIC*","*MB*","*plug*","*hard*","*disk*","*keyboard*","*mother*"}))>0,"Break-Fix","Others")


    Will it be possible to combine the IF statements of 1 column into 1 statement?
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,102

    Re: Combine several IFs statements/keywords in a single cell

    Progressively replace "others" with the next formula, removing the equals sign. For example:

    =IF(SUM(COUNTIF(F2,{"*fuser*","*toner*","*drum*","*cartridge*","*mark*","*dirty*","*smudge*"}))>0,"Toner Replacement",IF(SUM(COUNTIF(F2,{"*maintenance kit*","*kit*"}))>0,"Maintenance Kit",IF(SUM(COUNTIF(F2,{"*map*"}))>0,"Mapping",IF(SUM(COUNTIF(F2,{"*repair*","*restor*","*clone*","*imag*","*Reimag*"}))>0,"Re-Image","Others"))))


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,102

    Re: Combine several IFs statements/keywords in a single cell

    It might be worth doing a rough analysis of the frequency of each resolution and put them in priority sequence. So, pick of the most frequent first.

    Regards, TMS

  4. #4
    Registered User
    Join Date
    06-11-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Combine several IFs statements/keywords in a single cell

    Hi TMShucks's,

    I believe I have no other choice but to do it progressively as per your advise for Column C.
    Thank you for your assistance.

    Do you happen to know if there is a maximum number of arguments within the IF statements given?

    Best regards,
    Shad

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,102

    Re: Combine several IFs statements/keywords in a single cell


  6. #6
    Registered User
    Join Date
    06-11-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    6

    Thumbs up Re: Combine several IFs statements/keywords in a single cell

    Quote Originally Posted by TMShucks View Post
    Progressively replace "others" with the next formula, removing the equals sign. For example:

    =IF(SUM(COUNTIF(F2,{"*fuser*","*toner*","*drum*","*cartridge*","*mark*","*dirty*","*smudge*"}))>0,"Toner Replacement",IF(SUM(COUNTIF(F2,{"*maintenance kit*","*kit*"}))>0,"Maintenance Kit",IF(SUM(COUNTIF(F2,{"*map*"}))>0,"Mapping",IF(SUM(COUNTIF(F2,{"*repair*","*restor*","*clone*","*imag*","*Reimag*"}))>0,"Re-Image","Others"))))


    Regards, TMS
    Hi TmShucks,

    I would consider the is suggestion solved my query.
    Thanks a million!

+ 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