+ Reply to Thread
Results 1 to 6 of 6

extract unique list from a range while other column is criteria

  1. #1
    Registered User
    Join Date
    12-25-2016
    Location
    antalya,turkey
    MS-Off Ver
    2016
    Posts
    5

    extract unique list from a range while other column is criteria

    Hello guys,
    I realy did my best. I have 2 columns and I want to extract from them a list of unique products however there are products which has the same name but with different code recorded in the same row in the next column. Then I must calculate the gross and net total, but again I can not insert the condition of identical names and different code? if someone will help I will be grateful to my death.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: extract unique list from a range while other column is criteria

    Hi and welcome!
    You made calculations for unique product name. If you need two or more criteria like Product name and Product code - use Sumifs().
    =SUMIFS(SumRange;CriteriaRange1;Criteria1;CriteriaRange2;Criteria2)
    First of all you could copy all products and codes in one table and then use Remove Duplicates from Data ribbon. This will give you list of unique products & codes.
    Then use Sumifs() formula with criterias Product name and Product code.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-25-2016
    Location
    antalya,turkey
    MS-Off Ver
    2016
    Posts
    5

    Re: extract unique list from a range while other column is criteria

    thank you very much for your help, half of the task is done. but I am wondering if there any formula to use instead of remove duplicates since my boss want the data in two columns insted of one. Btw I found here in the forum the formula for extracting unique values that I used, but I dont know how to make it for one more criteria - code to match.
    I want to write some formula in B23 and/or C23, so in future To write only the common data and excel by hisself to make the calculations.
    Last edited by marinelkata; 12-26-2016 at 01:15 AM.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: extract unique list from a range while other column is criteria

    okay try with a helper column

    N23
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    with control+shift+enter and drag down!!!

    now

    B23=TRIM(MID(SUBSTITUTE($N23,"/",REPT(" ",50)),(COLUMNS($B$23:B23)-1)*50+1,50)) and drag towards column B23:C36

    May be that should help.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    12-25-2016
    Location
    antalya,turkey
    MS-Off Ver
    2016
    Posts
    5

    Re: extract unique list from a range while other column is criteria

    I don't know how to say how much i thank you. The both of you. You made my life much more easier. Thanks again to kasan and specially to Ankur Shukla!
    This forum is awesome place.

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: extract unique list from a range while other column is criteria

    Glad to help you, If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED & Please add reputation by clicking star * icon left corner post on your screen. Thanks.

+ 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] Extract unique list from table that complies to multiple criteria
    By Henk Stander in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2016, 05:41 AM
  2. [SOLVED] How to extract the unique reference from range of multiple column
    By savetrees in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-15-2016, 05:41 PM
  3. [SOLVED] VBA Creating a list of unique values from one column based on criteria from another column
    By bilbo85 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2016, 02:38 PM
  4. Extract unique list from column
    By lamdl in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-25-2014, 05:17 AM
  5. [SOLVED] Extract unique values out of list based on an extra criteria
    By sven1975 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 05:02 AM
  6. Replies: 2
    Last Post: 05-24-2012, 05:05 PM
  7. Replies: 3
    Last Post: 09-20-2011, 05:05 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