+ Reply to Thread
Results 1 to 3 of 3

Macro Needed! Assign col B number based on varying col A number (then further split)

  1. #1
    Registered User
    Join Date
    08-11-2015
    Location
    Canada
    MS-Off Ver
    2010 pc
    Posts
    3

    Macro Needed! Assign col B number based on varying col A number (then further split)

    Hi Guys,

    Bit of a weird scenario here that I haven't run into before. Basically I have a sorted item number in column A and need to assign a family number in column B. The first four rows of a given item number get the family numbers starting from 1, with the remaining rows of that number assigned a family number starting at 10000. The number of rows each item number appears varies but basically i need to come up with a formula or macro to number the first for "1" and the reaming "10,000" increasing by 1 for each new item number.

    Item Number Family Number
    6033383 1
    6033383 1
    6033383 1
    6033383 1
    6033383 10001
    6033383 10001
    6033383 10001
    7384938 2
    7384938 2
    7384938 2
    7384938 2
    7384938 10002
    2893726 3
    2893726 3
    2893726 3
    2893726 3
    2893726 10003
    2893726 10003
    1328938 =??????????
    1328938 =??????????

    First 4 of a given number are assigned next low value, remaining assigned next high value.

    Thanks for any help

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro Needed! Assign col B number based on varying col A number (then further split)

    Hi krector,
    try this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-11-2015
    Location
    Canada
    MS-Off Ver
    2010 pc
    Posts
    3

    Re: Macro Needed! Assign col B number based on varying col A number (then further split)

    worked perfectly, thanks!

+ 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. Formula to calculate next number in sequence based on varying criteria
    By Twaddy006 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-20-2014, 05:53 PM
  2. [SOLVED] Macro to copy varying number of cells
    By socalobie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-20-2014, 03:58 AM
  3. Calculate number of days between 2 dates & then assign a number based on the answer
    By MrHappyGoLucky12 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-27-2014, 09:20 PM
  4. VBA Macro to insert number of rows on a different worksheet based on varying values
    By artemis88 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-20-2013, 05:18 PM
  5. [SOLVED] Macro needed to split email and phone number
    By Smally in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-20-2013, 06:33 AM
  6. [SOLVED] VBA loop to copy a worksheet a number of times, assign name each time based on loop number
    By TBG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2012, 10:54 PM
  7. Replies: 7
    Last Post: 12-18-2008, 07:34 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