+ Reply to Thread
Results 1 to 9 of 9

Extract unique items from column and store some related data

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Extract unique items from column and store some related data

    Hello everyone

    I have data stored in an array ... I just put the data in A1:D23 for illustration
    Values from the first column should be stored for once (dictionary mission) .. What I need to learn is how to store related data based on column B

    Manual steps to get my result : copy the range A1:D23 and paste into G1:J23 >> Sort by column G then sort by column H >> then take the first value of each group and the last value of each group ... Attachment will illustrate the process well
    * of course I can do that sort by codes .. but I need to deal with dictionary and arrays

    Thanks advanced for help
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Extract unique items from column and store some related data

    Quote Originally Posted by YasserKhalil View Post
    .. but I need to deal with dictionary and arrays
    Is PEPSI ok ???
    Uh, I mean ...., is collection okay ??

    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Extract unique items from column and store some related data

    I'll do one with Dictionary.
    Please Login or Register  to view this content.
    Last edited by bakerman2; 03-04-2018 at 11:50 PM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Extract unique items from column and store some related data

    That's really brilliant and awesome. Thank you for both of you

    Mr. Karedog : I don't believe my eyes you are BACK .. I am so glad

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Extract unique items from column and store some related data

    Glad to help. Thanks for rep+.

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Extract unique items from column and store some related data

    Can I ask for another point ..
    Suppose that the data is already sorted by the two columns and I just need to get the first and last of each group ..How can this be done using arrays?

  7. #7
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Extract unique items from column and store some related data

    Maybe :
    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Extract unique items from column and store some related data

    That's wonderful and great my tutor
    Thank you very much for your great contributions .. You deserve Nobel Prize
    Regards

  9. #9
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Extract unique items from column and store some related data

    You are welcome, thanks for marking the thread as solved and rep.points.

    Regards

+ 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. [SOLVED] Count Unique Items in a Column Based on Unique Items in Two Other Columns
    By HangMan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-31-2015, 04:48 PM
  2. [SOLVED] Extract related data from a second column from repeated entries in a first column
    By pachorradas in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-31-2015, 02:41 PM
  3. [SOLVED] Store Unique List Of Items In Array
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2015, 04:09 AM
  4. [SOLVED] Extract Unique Items (No VBA/No Helper Cells)
    By NeedForExcel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-24-2015, 03:09 AM
  5. Extract unique items based on criteria
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-08-2015, 03:10 PM
  6. Extract unique items from a Table and place in a column
    By Evilshrew in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-28-2007, 02:36 AM
  7. Extract Unique Items
    By GreenLotus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2007, 09:00 PM

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