+ Reply to Thread
Results 1 to 8 of 8

Convert Table to List

  1. #1
    Registered User
    Join Date
    08-26-2014
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    9

    Convert Table to List

    Hi,

    Following is a screen shot of a spreadsheet I use to identify parts on a machine.

    Screenshot 1.PNG

    The quantity of each individual part will vary between 1 and ~20.

    At the moment I use a second table (see below) to turn the first table into a list of unique values in Column F, and then use a COUNTIF formula in Column G to determine the number of each part that I need to order.

    Screenshot 2.PNG

    The problem is populating Column F with every value from the original table, without duplicating any. At the moment I use conditional formatting to identify unique and duplicated values, but this is fairly clunky.

    Can anyone suggest a better way of doing this?

    Thanks.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Convert Table to List

    A cheap and nasty way to do this (there are quite a few others) would be to add a helper column in your data table, then use =if(countif($I$5:I5,I5)=1,1+I4,I4) copied down. This will generate a progressive value for all 1st time codes.

    Then you could just use INDEX/MATCH to pull out the codes based on that progression.

    For more detailed help, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-26-2014
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Convert Table to List

    Hi Ford,

    Thanks for the response. I'll give your idea a shot tomorrow and see if it achieves my objective.

    Attached is a sanitized spreadsheet. I need to convert the data in the top table into a list of parts with quantities in the bottom table.

    Thanks again,

    Shayne
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Convert Table to List

    Perhaps this will help.
    1. Delete the vertically placed text in column F,
    2. Use the following to get an ascending list of all the values without blanks:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3. Use the following to get a distinct list:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    08-26-2014
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Convert Table to List

    Thanks JeteMc. Greatly appreciated.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Convert Table to List

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  7. #7
    Registered User
    Join Date
    08-26-2014
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Convert Table to List

    Hi JeteMc,

    I have transferred your forumulas to my actual spreadsheet, and have them working well with the formulas on the same worksheet as the data table.

    I then tried transferring the formulas to a new worksheet (within the same spreadsheet) to give me more flexibility with formatting. I have corrected all of the references so they point to the data table on the original worksheet, but I'm having trouble getting them to work.

    Are there any other adjustments I need to make in order for them to work when they are on a separate worksheet to the data table?

    I have uploaded my current spreadsheet. Hoses and Fittings is the Data Table. Fittings is the sheet that I'm trying to set up with the formulas.

    Regards,

    Shayne
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Convert Table to List

    Modify the formula in cell D8 on the Fittings sheet so that it reads:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

+ 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. convert this table into a list
    By gxatzis30 in forum Excel General
    Replies: 2
    Last Post: 06-04-2014, 08:22 AM
  2. Convert Table to List
    By Joanne Lim in forum Excel General
    Replies: 4
    Last Post: 05-12-2014, 02:36 AM
  3. Convert a table into a list
    By lj3287 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-16-2014, 03:46 PM
  4. Convert a table into a list - VBA
    By mkunkle1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-21-2013, 10:34 AM
  5. Convert table to list
    By kvn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2012, 09:51 PM
  6. Convert Table to List
    By amyhryan in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2011, 12:58 AM
  7. Convert Table to a List
    By GBR2L in forum Excel General
    Replies: 6
    Last Post: 08-04-2010, 08:58 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