+ Reply to Thread
Results 1 to 3 of 3

Merge value of cells in range if other cell meets criteria. Function or macro...

  1. #1
    Registered User
    Join Date
    07-26-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Merge value of cells in range if other cell meets criteria. Function or macro...

    Hello,

    I'm quite familiar with functions, but new to macros, and i have a problem to solve. It would be great if someone could help me!

    Maybe its the best if i give you an example about what i need to do.

    sku name result i need
    sku_1 Name1 sku_2, sku_3
    sku_2 Name1 sku_1, sku_3
    sku_3 Name1 sku_1, sku_2
    sku_4 Name2 sku_5
    sku_5 Name2 sku_4
    sku_6 Name3 sku_7, sku_8, sku_9, sku_10, sku_11
    sku_7 Name3 sku_6, sku_8, sku_9, sku_10, sku_11
    sku_8 Name3 sku_6, sku_7, sku_9, sku_10, sku_11
    sku_9 Name3 sku_6, sku_7, sku_8, sku_10, sku_11
    sku_10 Name3 sku_6, sku_7, sku_8, sku_9, sku_11
    sku_11 Name3 sku_6, sku_7, sku_8, sku_9, sku_10



    So: if name in the table is the same, than merge sku's together (separated by ,) without the sku of that line. Ofc. sku and name can be "any" string.

    Extra: it would be great (but not necessary) if it would work with NOT ordered names (e.g. name1 in row 1,2,3 and in row 1342).

    If it is possible it would be better with functions... but i don't think it can be done. A macro would be great too!

    Thanks is advance!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Merge value of cells in range if other cell meets criteria. Function or macro...

    Please do not cross post without links ! http://www.excelguru.ca/content.php?184

    Cross posted at Excelguru and MrExcel
    Last edited by Pepe Le Mokko; 07-26-2013 at 07:27 AM.

  3. #3
    Registered User
    Join Date
    07-26-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Merge value of cells in range if other cell meets criteria. Function or macro...

    Quote Originally Posted by Pepe Le Mokko View Post
    Please do not cross post without links ! http://www.excelguru.ca/content.php?184

    Cross posted at Excelguru and MrExcel
    Sorry, i did not know that users from these forum follow other forums too.

    I cross posted that on:
    http://www.ozgrid.com/forum/showthread.php?t=181164
    http://www.excelguru.ca/forums/showt...ction-or-macro
    http://www.mrexcel.com/forum/excel-q...ion-macro.html

    But thats because i really need some help with that.
    Thanks and sorry if i made something wrong.

+ 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. Count a Range of cells if another range of cells meets criteria
    By mjg060468 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-21-2013, 02:57 PM
  2. Display Cell Range if it meets Criteria x
    By karobonas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-21-2012, 12:17 PM
  3. [SOLVED] Macro to hide each row in a range that meets a criteria
    By liranbo in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-02-2012, 05:59 AM
  4. [SOLVED] Count a range of cells if another range meets criteria
    By LadySetsuka in forum Excel General
    Replies: 8
    Last Post: 04-14-2012, 10:09 AM
  5. Return a range of cells that meets a criteria
    By bgallagher1 in forum Excel General
    Replies: 3
    Last Post: 08-14-2010, 04:33 AM

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