+ Reply to Thread
Results 1 to 6 of 6

simplify nested if statement

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    simplify nested if statement

    I am trying to simply an if statement. I have a attached a spreadsheet with dummy information. In the attached example, I have names of clients listed in rows and names of products purchased listed in columns. For each client, I want to list in a cell the products that were purchased. The problem I am having is for three products, I have 7 possible combinations and I do not want to write 7 if statements. For the spreadsheet with real data, there is over 10 products and the number of possible combinations to many for excel to handle. Any help is appreciated. Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    To do that easily, you will need to download and install the free Morefunc.xll addin from this site: http://xcell05.free.fr/english/

    Then you can apply this formula:
    Please Login or Register  to view this content.
    which needs to be confirmed with CTRL+SHIFT+ENTER not just ENTER..you will see { } brackets appear around the formula...

    Then you can copy the formula down...

    Note: you can delete the part up to the Substitute function if you don't want the initial phrase to appear.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173
    I tried that formula in my spreadsheet but I am receiving a #NAME error. Can you take a look at the formula again? Thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by maacmaac
    I tried that formula in my spreadsheet but I am receiving a #NAME error. Can you take a look at the formula again? Thanks.
    Did you download the addin mentioned? You need it for the MCONCAT() function to work.

    Note: After you download the addin, there will be a functionality in Tools|Morefunc to embed this function into the sheet so that you can share the workbook without other having to install the addin too.

  5. #5
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173
    Sorry - overlooked that part for your message. This formula will not work for me. I don't have Admin Rights to install the addin and IT won't give me Admin rights. Can you suggest alternative way to accomplish what I am trying? Thanks

  6. #6
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211
    Quote Originally Posted by maacmaac
    I am trying to simply an if statement. I have a attached a spreadsheet with dummy information. In the attached example, I have names of clients listed in rows and names of products purchased listed in columns. For each client, I want to list in a cell the products that were purchased. The problem I am having is for three products, I have 7 possible combinations and I do not want to write 7 if statements. For the spreadsheet with real data, there is over 10 products and the number of possible combinations to many for excel to handle. Any help is appreciated. Thanks.
    See the attached
    Attached Files Attached Files

+ 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