+ Reply to Thread
Results 1 to 7 of 7

sorting 1 table of mixed results in to 2 separate tables

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    bristol, uk
    MS-Off Ver
    2010
    Posts
    3

    sorting 1 table of mixed results in to 2 separate tables

    excel.JPG
    ok so I have a table of codes (combination of numbers and letters) that either end with "-a" or "-b" and each code has a value (numerical).
    So I have column A that is the codes and column B that is the value, but i want to sort them into 2 separate tables one table for the codes ending "-a" and one table for the codes ending "-b" but I'm Lost as to how to do this. ultimately the 2 separate "sorted" tables will be on separate spreadsheets accessible by 2 separate groups of people. The original table will change on a regular basis but the codes will still have the"-a" or "-b" identifier.
    any help would be greatly appreciated

    ps I have basic understanding of excel but little knowledge of the more complex formulas

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: sorting 1 table of mixed results in to 2 separate tables

    Insert a new column A and enter this formula and copy down. Then filter on the A values and copy into the table for A. Repeat for B values. You could also just sort on the new column A so that all A values would be together and the B values would be together. Select each of the rows with the values and copy and paste.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    06-25-2014
    Location
    bristol, uk
    MS-Off Ver
    2010
    Posts
    3

    Re: sorting 1 table of mixed results in to 2 separate tables

    thanks for the reply not quite the solution I'm looking for though I suspect I'm over thinking the situation basically I have a-grade and b-grade products. A-Grade products are 70% of the retail price and b-grade products are 60% of the retail price. my original thought was separating my list in to "-a list" and "-b list" then transferring the data in to a price label template that would work out the price. basically whatever system is used needs to be idiot proof, I can't rely on my staff to use filters etc they just need to be able to copy and paste the information into a table (the product list changes twice daily) and print the labels (no filtering or working out involved like I said idiot proof)
    I was toying with the below example of having a formula in the now price box that would set the price based on whether the product code finished in "-a" or not. if it ends "-a" then price is set at 70% of retail if it doesn't finish in "-a" then by process of elimination it must be a b-grade item (-b) and price would be set at 60% but I'm getting myself stuck
    excel2.JPG

  4. #4
    Registered User
    Join Date
    06-25-2014
    Location
    bristol, uk
    MS-Off Ver
    2010
    Posts
    3

    Re: sorting 1 table of mixed results in to 2 separate tables

    the formula that I hashed together works fine with "-a" but not if its "-b" on the end and thats what I'm struggling with

  5. #5
    Registered User
    Join Date
    11-08-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013/10/07/03
    Posts
    33

    Re: sorting 1 table of mixed results in to 2 separate tables

    See attached file.

    Not sure what you are after 100% but does is that alogn the right lines?
    Attached Files Attached Files

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: sorting 1 table of mixed results in to 2 separate tables

    It does not appear to be difficult to separate the data but what do you do with the duplicates in the list? If you are keeping the duplicates, how do you determine what value is relevant?

    Is new data just appended to the bottom of old data or does it replace the old data?

    A workbook with realistic data would be good to have. Please upload one if at all possible.
    Last edited by newdoverman; 06-26-2014 at 09:20 AM.

  7. #7
    Registered User
    Join Date
    11-11-2015
    Location
    Southend
    MS-Off Ver
    2013
    Posts
    52

    Re: sorting 1 table of mixed results in to 2 separate tables

    You need to create a separate index for each code - see columns a and b of the attached spreadsheet
    Then use vlookup to select what you want in columns f,g,i and j

    Only requires use of the MAX and VLOOKUP functions, MAX is simple, and VLOOKUP is a very useful one to learn, it has many purposes
    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. Replies: 5
    Last Post: 07-29-2013, 10:02 AM
  2. [SOLVED] Create continuous non blank table based on merge of separate dynamically filled tables
    By escobf in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2013, 04:15 PM
  3. Sorting Data from Google Form Results into Separate Worksheets
    By aeh7b in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-19-2011, 07:34 AM
  4. Pulling different results based on table sorting
    By adamsad1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2009, 06:02 PM
  5. Replies: 2
    Last Post: 12-24-2008, 10:18 PM

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