+ Reply to Thread
Results 1 to 11 of 11

How to duplicate cells while increasing their number content

  1. #1
    Registered User
    Join Date
    10-26-2010
    Location
    Davis, US
    MS-Off Ver
    Excel 2007
    Posts
    11

    How to duplicate cells while increasing their number content

    Hi,
    I apologize in advance that I am not proficient with computer jargon so Iwill try and explain what I need to do by figures.

    I need to generate a list like this in one column:

    xxxxx-xx10
    xxxxx-xx10
    xxxxx-xx11
    xxxxx-xx11
    xxxxx-xx12
    xxxxx-xx12 and so on

    In a separate column I need to change the numbers to this:

    xxxxx-xx10-P
    xxxxx-xx10-C
    xxxxx-xx11-P
    xxxxx-xx11-C
    xxxxx-xx12-P
    xxxxx-xx12-C and so on

    Is this a quick way to do this please? I am currently typing each entry - not very time efficient!

    I will greatly appreciate any suggestions.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: How to duplicate cells while increasing their number content

    What should happen after you reach 99 (or will you not get that far). ?
    Martin

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: How to duplicate cells while increasing their number content

    The attachment will give you the values up to 99 - specify the number that you want in the yellow box and hit the button.
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to duplicate cells while increasing their number content

    with functions see attached
    or even version 2 if right hand xx are to be reduced as number of digits increase
    Attached Files Attached Files
    Last edited by martindwilson; 10-26-2010 at 03:36 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    10-26-2010
    Location
    Davis, US
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: How to duplicate cells while increasing their number content

    Thank you for your question. The numbers continue into the 1000s.

    Sorry for the delay in the response - being a newbie I thought I would receive an email when a response was posted.

  6. #6
    Registered User
    Join Date
    10-26-2010
    Location
    Davis, US
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: How to duplicate cells while increasing their number content

    Thank you very much for the sheets. I will use them and let you know how I go.

    I greatly appreciate everyone's help.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to duplicate cells while increasing their number content

    just a thought replace formula in col e with
    =IF(MOD(ROW(A1),2),LEFT($C$1,LEN($C$1)-LEN(D1))&D1&"-P",LEFT($C$1,LEN($C$1)-LEN(D1))&D1&"-C") no need for col f then
    Attached Files Attached Files
    Last edited by martindwilson; 11-04-2010 at 08:37 PM.

  8. #8
    Registered User
    Join Date
    10-26-2010
    Location
    Davis, US
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: How to duplicate cells while increasing their number content

    Thank you. The formulas worked very nicely. I was so excited I called my boss immediately. This is truly an art/skill that is invaluable!

    To expand on that problem the last thing I need to do is very similar but I don't think the true/false format will work?
    I need to generate a list like this in one column:

    xxxxx-xx10
    xxxxx-xx10
    xxxxx-xx10
    xxxxx-xx10
    xxxxx-xx11
    xxxxx-xx11
    xxxxx-xx11
    xxxxx-xx11 and so on

    In a separate column I need to change the numbers to this:

    xxxxx-xx10-CP
    xxxxx-xx10-CV
    xxxxx-xx10-OP
    xxxxx-xx10-OV
    xxxxx-xx11-CP
    xxxxx-xx11-CV
    xxxxx-xx11-OP
    xxxxx-xx11-OV and so on

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to duplicate cells while increasing their number content

    same sort of principle
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-26-2010
    Location
    Davis, US
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: How to duplicate cells while increasing their number content

    Awesome!!!!! Thank you so much!! Is that also a true/false query?

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to duplicate cells while increasing their number content

    nope it used choose. chose returns things in order from 1 thro 29
    i just made the mod of the row = 0,1,2 or 3 using MOD(ROW(A1),4) and added 1 to it to give 1,2,3,or 4
    and put your required text in the right place essentially =choose(value,"OV","CP","CV","OP") so 2 would return second term "CP"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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