+ Reply to Thread
Results 1 to 9 of 9

increment value in cells

  1. #1
    Registered User
    Join Date
    07-03-2017
    Location
    utrecht nl
    MS-Off Ver
    2013
    Posts
    5

    increment value in cells

    Ok, i feel real stupid now, hopefully some one can help me out....

    I want to use the increment function in excel,lets say from 1 till 5, i select te first cell end drag down till whatever number.
    That works fine and is no issue.

    However i am changing part numbers >1000 from old format to new format.
    Example would be :

    Product x (old partnumber) 100.00001 (new format) E010006.00.00.00 so far so good.

    a colleague has had the bright idea to place all the options for that one product in the same format.
    so what you would get is:
    option 1 product x E010006.00.01.00
    option 2 product x E010006.00.02.00

    And so on....

    if i use that drag option the last digit will increment or makes e.g E010006.00.01.01 out of the code.

    Can any one tell me if it is possible to increment the XX part in : E010006.00.XX.00


    (maybe small explanation of the code E0AAAA.BB.CC.DD there AAAA is the product, BB is the revision of the product, CC is the option, DD revision of the option)

    Thanks!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: increment value in cells

    One way:

    Excel 2016 (Windows) 32 bit
    D
    2
    E010006.00.00.00
    3
    E010006.00.01.00
    4
    E010006.00.02.00
    5
    E010006.00.03.00
    6
    E010006.00.04.00
    7
    E010006.00.05.00
    8
    E010006.00.06.00
    9
    E010006.00.07.00
    10
    E010006.00.08.00
    11
    E010006.00.09.00
    12
    E010006.00.10.00
    Sheet: zzzzz

    Excel 2016 (Windows) 32 bit
    D
    2
    E010006.00.00.00
    3
    =LEFT(D2,11)&TEXT(ROWS(D$3:D3),"00"&".00")
    Sheet: zzzzz

    Drag copy the formula down.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-03-2017
    Location
    utrecht nl
    MS-Off Ver
    2013
    Posts
    5

    Re: increment value in cells

    Thanks,

    I am not completely sure if the formula would do in my case
    exc.jpg

    column a is the old number, column b the new number.
    The blue cells would be the main product, with below them the options.

    I can generate the first numbers easily but it would be nice if i can automate the increment of the options (some machines have 30+ options) and typing them all in would be asking for mistakes....

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: increment value in cells

    OK - attach a sample workbook and please explain the logic. How, for instance, does 00191 become xxxxxxx.00.50.0???

    If there's a simple logic, it won't be hard.

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: increment value in cells

    EDIT

    I saw all your alpha characters (E0AAAA.BB.CC.DD)
    - and immediately thought Custom Lists
    - BUT reading your post properly I notice that all your characters are in fact numeric
    - so therefore no need for custom lists!



    Another possibility is to create your own Custom List (or possibly more than one)
    - then you can drag down in same way as you can Jan Feb Mar and everything is prefilled as per your custom list.

    I depends on how the your numbering works but you may need to split the code into segments in separate columns so that you can drag down some segments and paste others
    (then concatenate to pull it all back together)

    my example
    - created list AA, AB, AC...AZ in a column
    - named the range "MySeries"
    - included it as a Custom list (see pictures)
    - type AA into cell and drag down to get AA,AB,AC etc

    CustomList1.jpg

    CustomList2.jpg

    You can get quite clever with this using various combination of copy, paste dragdown & concatenation and other formula tricks
    - may be necessary to build up your coding or even the custom lists in stages etc


    SEE EDIT AT TOP OF POST
    Last edited by kev_; 08-18-2017 at 10:33 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

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

    Re: increment value in cells

    ARRAY formula in D3, then drag down. Pl see file attached
    ARRAY formula should be confirmed with Ctrl+shift+Enter keys together.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-03-2017
    Location
    utrecht nl
    MS-Off Ver
    2013
    Posts
    5

    Re: increment value in cells

    thanks with all the help so far!

    I have uploaded an example file, i am looking for a quick fix, if the quick fix is to enter the new numbers manually it is

    So the background information:

    the old article numbers are e.g 010.00001 (where 010 is a productgroup and 00001 well you need to start somewhere right )
    the new format will be:
    AABBCCCDDEEF
    AA product range
    BB product group
    CCC Machine type in product group
    DD machine revision
    EE option on machine
    F option revision

    We have multiple ranges, A1 top notch B1 "okísh" C1 "stuff that you buy if you cannot afford the other ranges.."

    The idea is that all options that can go on a main product get a partnumber related to the main product.
    Let me get you a quick example:

    Current situation:
    Product 1 article number is 010.00001 and it can have option 1 100.00001 and option 2 100.00002.
    Product 2 article number is 010.00002 and it can have option 1 100.00001 and option 3 100.00003.

    new situation:
    Product 1 new article number E010001.00.00.0
    Option 1 (for product 1) E010001.00.01.0
    Option 2 (for product 1) E010001.00.02.0

    Product 2 new article number E010002.00.00.0
    Option 1 (for product 1) E010002.00.01.0
    Option 3 (for product 1) E010002.00.02.0


    Does it make more sense?? the problem with our quoting program is that it can not link options to products and by using these numbers you can enter a query on lets say E010002 and you will find all options on that machine.


    So what i am looking for? a quick way to get those option numbers in without the possibility of making human errors, i do not mind entering the main article numbers but as said before some products can have 50+ options and we are looking at thousands of partnumbers here....



    Any help is highly appreciated!

  8. #8
    Registered User
    Join Date
    07-03-2017
    Location
    utrecht nl
    MS-Off Ver
    2013
    Posts
    5

    Re: increment value in cells

    it helps when you add the file.....
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-03-2017
    Location
    utrecht nl
    MS-Off Ver
    2013
    Posts
    5

    Re: increment value in cells

    Quote Originally Posted by kvsrinivasamurthy View Post
    ARRAY formula in D3, then drag down. Pl see file attached
    ARRAY formula should be confirmed with Ctrl+shift+Enter keys together.
    Please Login or Register  to view this content.
    This is the solution, works like a charm!!! Many Many 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. [SOLVED] How To Compare Two Cells and Increment Another
    By ajocius in forum Excel General
    Replies: 1
    Last Post: 10-04-2014, 03:47 PM
  2. Increment a counter by 1 for every 4 cells the same.
    By sravilob in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2013, 09:22 AM
  3. [SOLVED] Increment Active Cells
    By Wings249 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-04-2012, 06:21 AM
  4. Increment cells in units of 1
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2010, 12:07 PM
  5. Increment cells automatically
    By cagedmonkees in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2010, 08:07 PM
  6. Increment cells in column by 1
    By bikidunker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2007, 02:26 PM
  7. Increment/Increment letter in alphabetical order
    By Neil Goldwasser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2006, 05:10 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