+ Reply to Thread
Results 1 to 4 of 4

Hi, how to make excel to copy following pattern? need numbers up to 76 or so.

  1. #1
    Registered User
    Join Date
    01-15-2019
    Location
    NL
    MS-Off Ver
    2016
    Posts
    2

    Hi, how to make excel to copy following pattern? need numbers up to 76 or so.

    as above ;-)

    UB01A
    UB01B
    UB02A
    UB02B
    UB03A
    UB03B
    UB04A
    UB04B
    UB05A
    UB05B

    Thank You :-)

    PS. Alternatively how to replace letter B with C in the above string ;-)
    Last edited by SoftKiller; 01-15-2019 at 06:13 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: Hi, how to make excel to copy following pattern? need numbers up to 76 or so.

    Put this formula in your starting cell (e.g. A1):

    ="UB"&TEXT(INT((ROWS($1:1)-1)/2)+1,"00")&CHAR(64+MOD(ROWS($1:1)-1,2)+1)

    then copy down as far as you need to. You may need to use semicolons ( ; ) in the formula instead of commas ( , ), depending on your regional settings.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-15-2019
    Location
    NL
    MS-Off Ver
    2016
    Posts
    2
    Nice stuff Man! Will try it when get back to office ;-)

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Hi, how to make excel to copy following pattern? need numbers up to 76 or so.

    Quote Originally Posted by SoftKiller View Post
    Alternatively how to replace letter B with C in the above string ;-)
    Expanding on Pete's suggestion, with the prefix, UB in C1 and the suffixes, A,B and C in D1:D3, try this formula in A2 and fill down as needed.

    =$C$1&TEXT(INT((ROWS(A$2:A2)-1)/ROWS(D$1:D$3))+1,"00")&INDEX($D$1:$D$3,MOD(ROWS(A$2:A2)-1,ROWS(D$1:D$3))+1)

+ 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: 07-19-2018, 02:23 AM
  2. Replies: 4
    Last Post: 10-11-2016, 01:51 PM
  3. Macro to make combinations from a pattern
    By b_rianv in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2014, 09:25 AM
  4. Copy down hypertext cell range pattern & cell reference formula pattern
    By Underexcelling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2014, 03:23 AM
  5. How do extract numbers with a pattern from a list of numbers ?
    By kcolraw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2012, 04:04 AM
  6. Excel 2007 : How to make a continuous color pattern?
    By DevonDuggan13 in forum Excel General
    Replies: 1
    Last Post: 06-29-2010, 05:30 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