+ Reply to Thread
Results 1 to 17 of 17

extract "unique" records depending one column

  1. #1
    Registered User
    Join Date
    05-20-2005
    Location
    Thessaloniki Greece
    MS-Off Ver
    2021
    Posts
    39

    Exclamation extract "unique" records depending one column

    Hello
    I need your help guys
    I am not able to attach the file

    I have this (quantity is the key..)

    what I have what I want
    quantity Discription price total quantity Discription price total
    George 1 apples 50 50 George 1 apples 50 50
    anna2 2 bananas 10 20 anna2 1 bananas 10 20
    Michael 1 orange 8 8 anna2 1 bananas 10 20
    George 1 bananas 10 10 Michael 1 orange 8 8
    Steve 3 lemon 7 21 George 1 bananas 10 10
    Stella 4 cheese 12 48 Steve 1 lemon 7 21
    Steve 1 lemon 7 21
    Steve 1 lemon 7 21
    Stella 1 cheese 12 48
    Stella 1 cheese 12 48
    Stella 1 cheese 12 48
    Stella 1 cheese 12 48
    If anyone can help will ne great..
    Last edited by jimapos; 12-19-2018 at 06:12 AM. Reason: attachment

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: extract "unique" records depending one column

    You should be able to attach a file (and it would be better to do so, as your table is not very clear).

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Don't try to use the Paperclip icon (attachments button), as it doesn't work on this forum.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: extract "unique" records depending one column

    Γεια σας!


    Please refer to the attachment

    In I4

    =if(row(A1)<=sum(D$4:D$9),Index($C$4:$C$9,match(Row(A1)-1,index(Subtotal(9,offset(D$3,(Row($4:$9)-4)/(Row($4:$9)-3),,Row($4:$9)-3,1)),))),"")

    In K4 to be copied to the right

    =vlookup($I4,$C$4:$G$9,column(C$1),0)


    Regards
    Attached Files Attached Files
    Last edited by canapone; 12-19-2018 at 07:10 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    05-20-2005
    Location
    Thessaloniki Greece
    MS-Off Ver
    2021
    Posts
    39

    Re: extract "unique" records depending one column

    Hello Canapone

    thanks for your answer (wow about "Γεια σας")
    The formulas are correct
    but i need to copy somehow the entire row c5:g5 to i5:m5 two times if the d5 =2 (true)
    copy the entire row c9:g9 to i9:m9 four times if the d9 =4 (true)

  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: extract "unique" records depending one column

    Ciao,

    I've attached an example.

    Try to change number in column D

    I've added some Iferror to formulas

    Regards

    (Ελπίζω ότι καταλαβαίνω!)

    Google translator...
    Attached Files Attached Files
    Last edited by canapone; 12-19-2018 at 07:19 AM.

  6. #6
    Registered User
    Join Date
    05-20-2005
    Location
    Thessaloniki Greece
    MS-Off Ver
    2021
    Posts
    39

    Re: extract "unique" records depending one column

    Hello
    Thank you very match my friend works like a charm
    CIAO..

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: extract "unique" records depending one column

    I4=IF(ROWS($I$4:$I4)>SUM($D$4:$D$9),"",LOOKUP(ROWS($I$4:$I4),SUBTOTAL(9,OFFSET($D$4,,,ROW($D$4:$D$9)-ROW($D$4)+1,))-$D$4:$D$9+1,C$4:C$9))
    Please Login or Register  to view this content.
    Try this copy & paste across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Registered User
    Join Date
    05-20-2005
    Location
    Thessaloniki Greece
    MS-Off Ver
    2021
    Posts
    39

    Re: extract "unique" records depending one column

    Thanks Samba_ravi
    it works!!
    How i mark this as solved ?

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: extract "unique" records depending one column

    In I$ then copied to other ranges.
    But how that total remains same in M column as required by you.
    Please Login or Register  to view this content.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  10. #10
    Registered User
    Join Date
    05-20-2005
    Location
    Thessaloniki Greece
    MS-Off Ver
    2021
    Posts
    39

    Re: extract "unique" records depending one column

    Thank you all

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: extract "unique" records depending one column

    Quote Originally Posted by jimapos View Post
    ... How i mark this as solved ? ...
    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark this thread as SOLVED.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  12. #12
    Registered User
    Join Date
    05-20-2005
    Location
    Thessaloniki Greece
    MS-Off Ver
    2021
    Posts
    39

    Re: extract "unique" records depending one column

    Hello
    i need this final touch for my index problem Can you help me ?
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: extract "unique" records depending one column

    Hi,

    in M3 to be copied down (same formula of K3)


    =IF(ROW($A1)<=SUM($D$4:$D$35),INDEX(E$4:E$35,MATCH(ROW($A1)-1,INDEX(SUBTOTAL(9,OFFSET(D$3,(ROW($4:$35)-4)/(ROW($4:$35)-3),,ROW($4:$35)-3;1)),))),"")

    In N3, to be copied across in N3:P35

    =IFERROR(INDEX(F$4:F$10,MATCH($K4&$M4,INDEX($C$4:$C$10&$E$4:$E$10,),0)),"")

    Please check if yellow outputs in column N and O are what expected.

    I'm quite sure there are better approach of first formula I've shared (Index bla, bla... subtotal)

    Ciao
    Attached Files Attached Files

  14. #14
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: extract "unique" records depending one column

    Another one

    K4:P4 and copy down

    =IF(ROWS(K$4:K4)>SUM($D$4:$D$10),"",IF(COLUMNS($K4:K4)=2,1,INDEX(C:C,AGGREGATE(15,6,ROW($D$4:$D$10)/($D$4:$D$10>=COLUMN($A$1:$AE$1)),ROWS(K$4:K4)))))
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    05-20-2005
    Location
    Thessaloniki Greece
    MS-Off Ver
    2021
    Posts
    39

    Re: extract "unique" records depending one column

    Thanks canapone
    you are a life saver !!!

  16. #16
    Registered User
    Join Date
    05-20-2005
    Location
    Thessaloniki Greece
    MS-Off Ver
    2021
    Posts
    39

    Re: extract "unique" records depending one column

    Thanks Bo_Ry
    This works too..

  17. #17
    Registered User
    Join Date
    05-20-2005
    Location
    Thessaloniki Greece
    MS-Off Ver
    2021
    Posts
    39

    Re: extract "unique" records depending one column

    I cant figure out the final index ( ? ) i need to complete my goal.
    Anybody ?
    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)

Similar Threads

  1. [SOLVED] Can't filter "Unique" records from Filtered range
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2018, 04:10 PM
  2. countif to return "x" for unique & "xx" for duplicate values in a column
    By Shruder in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2018, 05:31 PM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. [SOLVED] Copy Records where records = "a" at Column B - Syntax Error
    By nironto in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-11-2013, 08:04 AM
  5. [SOLVED] Extract unique values in a column that end in "ago"
    By blinks58 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-06-2013, 06:00 PM
  6. Replies: 1
    Last Post: 07-16-2010, 02:44 AM
  7. Replies: 6
    Last Post: 11-01-2007, 11:56 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