+ Reply to Thread
Results 1 to 8 of 8

Get multiple cells in the same cell including a if function

  1. #1
    Registered User
    Join Date
    02-10-2016
    Location
    sydney
    MS-Off Ver
    mac
    Posts
    5

    Unhappy Get multiple cells in the same cell including a if function

    Hi,

    I have a list of products.
    Column A = Unique SKUS
    Column B = Product Name
    Column C= Product Family

    ei:
    Sku Name Family
    123 Galileo Pendant Light Galileo
    124 Galileo Wall Light Galileo
    125 Galileo Floor Lamp Galileo
    234 Unika Pendant Light Unika
    431 Zara Pendant Light Zara
    432 Zara Pendant 2 Light Zara

    On a new column, I want to figure out a formula where I could get all the Sku of the same family separated by /

    So the result would be:

    Sku Name Family Related Sku
    123 Galileo Pendant Light Galileo 124/125
    124 Galileo Wall Light Galileo 123/125
    125 Galileo Floor Lamp Galileo 124/123
    234 Unika Pendant Light Unika N/A
    431 Zara Pendant Light Zara 432
    432 Zara Pendant 2 Light Zara 431


    I have 6000+ products to sort out.
    Can someone please help?
    I tried:
    =if(C1=C:C,A1,if(C1=C:C,A2,if(C1=C/C,A3,"N/A")))

    But I know I am completely out of the mark.

  2. #2
    Registered User
    Join Date
    12-07-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Get multiple cells in the same cell including a if function

    Hi,

    Can you attached excel sample file for the same.

    Imran.

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Get multiple cells in the same cell including a if function

    HI AND WELCOME!

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  4. #4
    Registered User
    Join Date
    02-10-2016
    Location
    sydney
    MS-Off Ver
    mac
    Posts
    5

    Re: Get multiple cells in the same cell including a if function


  5. #5
    Registered User
    Join Date
    02-10-2016
    Location
    sydney
    MS-Off Ver
    mac
    Posts
    5

    Re: Get multiple cells in the same cell including a if function


  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Get multiple cells in the same cell including a if function

    This thing need a little VBA approach and its simple follow the steps below

    http://www.excelforum.com/tips-and-t...geravatar.html

    click above link copy the code provided by senior member of the forum Tigeravater, go to your sheet then hit alt+f11 to open VB editor then go to insert at the top and click module and paste code there now go to your sheet1 in cell D2
    copy paste below formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    then hold control and shift together and hit enter to make it array formula and drag down

    you can change red part to your required concatenation type such as "-" or "|" or whatever you want

    save the file as .xlsm or macro enabled book

    change the ranges in formula as required.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-10-2016
    Location
    sydney
    MS-Off Ver
    mac
    Posts
    5

    Re: Get multiple cells in the same cell including a if function

    Hi,

    Thanks a million! But still having a small issue....

    I am entering a slightly modified formula and I have a mac.

    =ConcatAll(IF(IF($C$2:$C$5975=C2,$A$2:$A$5975,"")=A2,"",IF($C$2:$C$5975=C2,$A$2:$A$5975,"")),"|")
    After inserting the new module code and pasting this formula, I pressed Shift+Command+Return, but the cell is blank.

    If I click through the cell, the formula is there but nothing comes up.
    What am I doing wrong?
    Screen Shot 2016-02-11 at 10.43.25 AM.pngScreen Shot 2016-02-11 at 10.43.04 AM.png

  8. #8
    Registered User
    Join Date
    02-10-2016
    Location
    sydney
    MS-Off Ver
    mac
    Posts
    5

    Re: Get multiple cells in the same cell including a if function

    Got it! It was only command enter.

    Works amazing.

    Well done and thanks a million for the help )))))))))))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question: Conditional Formula including sum, blanks, and multiple cells
    By unfmarine in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2015, 02:01 PM
  2. [SOLVED] Lookup Function with Multiple Criteria Including Values Between Two Dates
    By webfeet2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2014, 12:01 PM
  3. Convert Multiple Columns to Rows including blank cells
    By BJPhil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2014, 02:48 PM
  4. COUNTIFS, multiple criteria and not including blank cells
    By qhoney in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2014, 05:14 PM
  5. [SOLVED] How to avoid including blank cells in MONTH function for January months?
    By Salomey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2013, 06:12 PM
  6. [SOLVED] Select offset (multiple cells) up to but not including......
    By twckfa16 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2013, 04:24 PM
  7. using frequency function not including blank cells in the data array
    By alliugiv in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2013, 08:53 AM

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