+ Reply to Thread
Results 1 to 4 of 4

Formula to assign an Item number for values in another column

  1. #1
    Forum Contributor
    Join Date
    02-09-2011
    Location
    Perth, Australia
    MS-Off Ver
    2016
    Posts
    161

    Formula to assign an Item number for values in another column

    Hi,

    I have a list of package numbers down column B in my spreadsheet. The numbers are of the format 70, 120, 150, 220, etc.

    There are multiple entries for each of these package numbers and I want to put a formula in column A to assign an ordered “Item” number to each package number.

    For example, for package number 120 I want 1 to appear in column A the first time 120 appears in column B, 2 for the next, etc. For package 220 I want 1 in column A for the first instance in column B, 2 for the second, etc.

    I have attached an example spreadsheet where I have manually filled in the first few Item numbers in column A, as an example of what I need.

    What formula do I need in column A?

    Thanks very much

    Dave
    Attached Files Attached Files

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

    Re: Formula to assign an Item number for values in another column

    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile says 2003, but your file indicates at least 2007
    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
    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,929

    Re: Formula to assign an Item number for values in another column

    For the formula, try this, copied down...
    A2=COUNTIF($B$2:B2,B2)

  4. #4
    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,929

    Re: Formula to assign an Item number for values in another column

    Happy to help, thanks for the feedback

+ 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] Formula to insert number in one column when an item is introduced in another column
    By gko_87 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-07-2017, 05:03 AM
  2. Replies: 1
    Last Post: 05-19-2015, 12:42 AM
  3. [SOLVED] Item Database: Automatically assign number to items(store products)
    By AEvans190 in forum Excel General
    Replies: 18
    Last Post: 10-22-2013, 04:27 PM
  4. [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
  5. [SOLVED] Assign single number to duplicate values in column
    By excelresumes in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-19-2013, 06:05 PM
  6. [SOLVED] Assign single number to duplicate values according to a column
    By DonAx in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-18-2013, 04:45 AM
  7. Excel 2008 : Assign Vendor to Item Number
    By DADADO in forum Excel General
    Replies: 2
    Last Post: 07-21-2012, 03:04 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