+ Reply to Thread
Results 1 to 7 of 7

Assign Serial Numbers to each product code

  1. #1
    Registered User
    Join Date
    02-03-2023
    Location
    Albania
    MS-Off Ver
    2021
    Posts
    3

    Assign Serial Numbers to each product code

    Hello,

    I need you valuable support.
    I have to assign a serial number to each product code organized in an excel table. The products are found in the table in more than 1 row. Each product belongs to a specific category of label format. What I need is: to assign a serial number to each product, serials should start from 1 and increase sequentially. Once the Label Category changes, the serial should start from 1 within that category.

    Thank you in advance!
    Edlira from Albania

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Assign Serial Numbers to each product code

    Try this in E2 and committed with Ctrl+Shift+Enter

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-03-2023
    Location
    Albania
    MS-Off Ver
    2021
    Posts
    3

    Re: Assign Serial Numbers to each product code

    Thank you! It seems ok, but what if the data are in a table, so how can I replace cells reference with table range, where A=[ProdCode], C=[Printing Category]

  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,064

    Re: Assign Serial Numbers to each product code

    ?? The formula works perfectly and is easy to follow. Is this REALLY what you want:

    =SUM(IFERROR(1/COUNTIFS(INDEX([Printing Category],1):INDEX([Printing Category],ROWS($2:2)),[@[Printing Category]],INDEX([ProdCode],1):INDEX([ProdCode],ROWS($2:2)),INDEX([ProdCode],1):INDEX([ProdCode],ROWS($2:2))),0))
    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

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Assign Serial Numbers to each product code

    IN E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 04-13-2024 at 06:16 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    02-03-2023
    Location
    Albania
    MS-Off Ver
    2021
    Posts
    3

    Re: Assign Serial Numbers to each product code

    Thank you so much, Glenn! It works perfectly. This is saving me a lot of time and overload work. Thank you again!
    Respectfully,
    Edlira

  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,064

    Re: Assign Serial Numbers to each product code

    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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: 6
    Last Post: 12-28-2023, 05:00 PM
  2. [SOLVED] Assign a Logic Code to Numbers
    By ionelz in forum Excel General
    Replies: 14
    Last Post: 07-23-2019, 09:12 AM
  3. Replies: 1
    Last Post: 02-10-2016, 05:33 AM
  4. [SOLVED] Code request for serial numbers for each group of subjects
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-26-2015, 12:31 PM
  5. [SOLVED] Assign serial number without sorting...
    By lifeisaspreadsheet in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-18-2012, 09:45 PM
  6. Assign serial number for entry
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-11-2010, 06:07 AM
  7. Finding a serial number in a list of serial numbers
    By zocoloco in forum Excel General
    Replies: 2
    Last Post: 02-04-2009, 05:20 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