+ Reply to Thread
Results 1 to 19 of 19

Item Database: Automatically assign number to items(store products)

  1. #1
    Registered User
    Join Date
    10-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Item Database: Automatically assign number to items(store products)

    Hi everyone:

    I am trying to automatically assign numbers in to a column based on text in another column.

    In one column labeled "product_sort" I want a numerically value associated to another column called "product_name"

    Sometimes I have many variations of the "product_name" ... so for example if there was 5 variations of a "product_name" then that same "product_name" would be listed on on 5 rows and would need the same numeric value in the column labeled "product_sort" .. for those 5 rows

    I am building a product database and have over 3,000 items so I am trying automate this process.

    Let me know if I need to clarify further. I seem to have trouble searching for the answer, let alone explaining it... I might not have the correct terminology.

    Thank you in advance!

    Andrew Evans
    Empire Farrier Supply

  2. #2
    Registered User
    Join Date
    10-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Item Database: Automatically assign number to items(store products)

    Here is a screen shot.

    The column with the yellow is what I am trying to automate... "Delta Keg Wide Unclipped" would all have the same number and "Diamond Pony Unclipped" would have the same number but a different from "Delta Keg Wide Unclipped"

    http://i.imgur.com/DTwlufz.png

  3. #3
    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: Item Database: Automatically assign number to items(store products)

    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  4. #4
    Registered User
    Join Date
    10-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Item Database: Automatically assign number to items(store products)

    Here is a sample excel document with just a portion of my database
    Attached Files Attached Files

  5. #5
    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: Item Database: Automatically assign number to items(store products)

    This is probably not what you want...
    =F2&" "&COUNTIF($F$2:F2,F2)

    Perhaps if you could provide a few sample answers and explain how you arrived at them? You said you have "Sometimes I have many variations of the "product_name" ... ", but I dont see any variations, all you provided were a few duplicates of the same name?

  6. #6
    Registered User
    Join Date
    10-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Item Database: Automatically assign number to items(store products)

    Here is the file with me manually adding numbers to the "product_sort" column.
    Attached Files Attached Files

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Item Database: Automatically assign number to items(store products)

    I would suggest to create a list on another sheet with values and use VLOOKUP to get the ID number
    Please see attached sheet.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    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: Item Database: Automatically assign number to items(store products)

    I agree with AlKey. If you have a set list of product numbers and want to link them with a name every time you enter that name, the simplest would be to have a 2-column table with product name and product number, then use a simple vlookup

  9. #9
    Registered User
    Join Date
    10-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Item Database: Automatically assign number to items(store products)

    Quote Originally Posted by AlKey View Post
    I would suggest to create a list on another sheet with values and use VLOOKUP to get the ID number
    Please see attached sheet.
    This solution seems to be working...

    Could you explain further on why to use another sheet? Is it to get the solution to the VLOOKUP function and then paste the values back into the database?

  10. #10
    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: Item Database: Automatically assign number to items(store products)

    IT does not have to be another sheet, but that keeps it out the way

  11. #11
    Registered User
    Join Date
    10-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Item Database: Automatically assign number to items(store products)

    So on another sheet I would need to list all the products I have? I am still working on the database and currently on line 2800 or so. How would I get a list of the products to another sheet?

    Here is my complete database. What I am ultimately trying to do is have a ID for each product (not each variation). The reason you will see the same product for multiple rows is because there are multiple variations of that product. My indesign plugin will read each product name a group all the variations for that product together to display on a catalog.

    Thanks for your help everyone!
    Attached Files Attached Files

  12. #12
    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: Item Database: Automatically assign number to items(store products)

    Based on your data, take all of the data in column C and copy it to column A on sheet2.

    Highlight the entire range on sheet 2 select Data Tab/remover duplicates.
    you will be left with 47 entries - note that there is a training space in 1 of the "C&M Aprons"

    You now have a list of unique names, give them whatever number you want in column B

    Then in E2, copied down, use this...
    =VLOOKUP(F2,Sheet2!$A$1:$B$100,2,0) I used 100 to allow for extra products, adjust this as needed

    If you get an error message, check the product name on that row for extra spaces

  13. #13
    Registered User
    Join Date
    10-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Item Database: Automatically assign number to items(store products)

    do you mean take all the data from column F?

  14. #14
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Item Database: Automatically assign number to items(store products)

    Please see attached file. It all ready to go for you.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    10-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Item Database: Automatically assign number to items(store products)

    I am getting tag teamed

  16. #16
    Registered User
    Join Date
    10-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Item Database: Automatically assign number to items(store products)

    That seems to work! Back in college I had an amazing excel teacher I did everything from creating a ribbon to making my own pivot table... but I guess it is true if don't use it you lose it.

    Thank you for all your help. You will probably be seeing another post from me soon. I am trying to refresh my brain with all this.

  17. #17
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Item Database: Automatically assign number to items(store products)

    Good luck and thank you for the feedback! Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  18. #18
    Registered User
    Join Date
    10-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Item Database: Automatically assign number to items(store products)

    That looks like it is working! You will be hearing from me soon. I know I will have more issues with this project. Thank you AlKey & FDibbions!

  19. #19
    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: Item Database: Automatically assign number to items(store products)

    Sorry, yes I meant F

+ 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] How to use VBA to assign a reference number for each item?
    By jasonlewis in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-25-2013, 02:42 AM
  2. [SOLVED] Assign a number to items from a keyword in the name
    By samuelabyrd in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-24-2013, 02:07 PM
  3. Excel 2008 : Assign Vendor to Item Number
    By DADADO in forum Excel General
    Replies: 2
    Last Post: 07-21-2012, 03:04 AM
  4. Help To Lookup Items And If I Choose An Item Send The Info To My Database
    By fetoo in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2011, 07:50 PM
  5. Replies: 1
    Last Post: 11-26-2011, 03:29 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