+ Reply to Thread
Results 1 to 9 of 9

List conversion for part labels

  1. #1
    Registered User
    Join Date
    12-20-2020
    Location
    Boston,MA
    MS-Off Ver
    2016
    Posts
    4

    List conversion for part labels

    3rd party software creates lists that we need to convert then into labels. We need one label for each quantity not entry.
    The list our software generates looks like the below. Quantity is first and then part number

    3 xyz1
    2 xyz22
    1 xyz61

    We need to take the above list and convert to new list that has single entries so that we can create labels for the parts. The new list we are looking for would look like the below
    1 xyz1
    1 xyz1
    1 xyz1
    1 xyz22
    1 xyz22
    1 xyz61

    Any help would be greatly appreciated.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: List conversion for part labels

    =IFERROR(INDEX($B$2:$B$4,MATCH(0,INDEX(--(COUNTIF($D$1:D1,$B$2:$B$4)=$A$2:$A$4),0),0)),"")

    see sheet.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-20-2020
    Location
    Boston,MA
    MS-Off Ver
    2016
    Posts
    4

    Re: List conversion for part labels

    Thanks Glenn! This worked great.
    We have some lists that have the columns next to column B populated with data (columns C & D) how could that get pulled over to columns next to the one you created. Hopefully my attachment came thru on this reply. new to this site.
    Thanks
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: List conversion for part labels

    Just remove the $ in red:
    =IFERROR(INDEX($B$2:$B$4,MATCH(0,INDEX(--(COUNTIF($E$1:E1,$B$2:$B$4)=$A$2:$A$4),0),0)),"")

    to give you:
    =IFERROR(INDEX(B$2:B$4,MATCH(0,INDEX(--(COUNTIF($E$1:E1,$B$2:$B$4)=$A$2:$A$4),0),0)),"")

    then copy across and down.

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It would also be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-20-2020
    Location
    Boston,MA
    MS-Off Ver
    2016
    Posts
    4

    Re: List conversion for part labels

    Thanks for the help and suggestions on forum. I should have mentioned this in the original post. I have some repeats in columns which appears to be causing issues. I have uploaded example with actual data we use and have highlighted issue areas.

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: List conversion for part labels

    Ok. It now all hangs on what you want to do with these numbers. The way it currently stands: if a line is repeated (e.g. 15/10
    at rows 4 and 13) they now appear in the table in the order dictated by the number of replicates. However.... there is ALWAYS a however.

    However, to get this approach to work, I added on a miniscule number to each value. So, the 69 in G17 is actually: 69.000000001100000. What are you doing with these numbers after this? Will it make a difference? If so, It can still be done, with helper column(s) that can be hidden or on another sheet. Before going down that road, I need to know if I NEED to go down that road....
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: List conversion for part labels

    I am about to leave for the day... so I did it anyway. here's the alternative, from col I to M. Cols I & J can be hidden, or moved, if needed. The numbers in KLM are exact, no funny decimal places. Up to you and over to you...
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-20-2020
    Location
    Boston,MA
    MS-Off Ver
    2016
    Posts
    4

    Re: List conversion for part labels

    We plan to take the 3 columns E,F & G and create part labels for them

    First label would be as follows (we plan to add the text listed below on the conversion to the label and use the values from the column E,F,G data)
    79L 10D Item#3

    The miniscule value added would not alter anything on our end

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: List conversion for part labels

    In that case, go with the version in Post 6. If it causes any more grumbles, then shout. For now, though you're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It would also be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

+ 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] Non UserForm - Checkbox Loop to add numbers and concatenate labels - Part B
    By ecronic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2020, 09:53 AM
  2. Replies: 6
    Last Post: 10-24-2018, 09:04 AM
  3. Replies: 5
    Last Post: 06-11-2018, 10:40 AM
  4. Conversion of table into list
    By Bizman007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-28-2014, 09:22 AM
  5. Replies: 3
    Last Post: 06-10-2013, 03:59 PM
  6. [SOLVED] Finding the value from the list parts and insert extra part in the list
    By PRADEEPB270 in forum Excel General
    Replies: 3
    Last Post: 10-15-2010, 01:29 PM
  7. Part Code + part no combination for list box
    By suhas_shah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2006, 07:28 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