+ Reply to Thread
Results 1 to 12 of 12

Incrementing Values

  1. #1
    Registered User
    Join Date
    07-17-2017
    Location
    Dallas, Texas
    MS-Off Ver
    2010
    Posts
    10

    Incrementing Values

    I need the first 18 values under column A (Range A2-A19) to equal cells E2 and F2.

    Then I will need the next 18 values, starting at (Range A20-A37) to equal cells E3 and F3.

    And continue for the remainder of the cells in column A.

    Please see columns I thru N as a reference of what I am looking to have.

    **Note** Under columns M and N, I need the values to show in groups of 18.

    I am looking for a non-code solution.

    Thanks!!!!
    Attached Files Attached Files
    Last edited by cm123; 09-16-2021 at 02:51 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Incrementing Values

    Pictures are of little use: please see yellow banner at top of page on how to attach a sample workbook

  3. #3
    Registered User
    Join Date
    07-17-2017
    Location
    Dallas, Texas
    MS-Off Ver
    2010
    Posts
    10

    Re: Incrementing Values

    Ah, thanks. I have uploaded an actual spreadsheet.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Incrementing Values

    in K2

    =IF(MOD((ROWS($1:1)*1),19)=0,"",INDEX(C$2:C$1000,INT((ROWS($1:1)-1)/19+1)))

    copy across to N and down

  5. #5
    Registered User
    Join Date
    07-17-2017
    Location
    Dallas, Texas
    MS-Off Ver
    2010
    Posts
    10

    Re: Incrementing Values

    WOWWW! Thanks so much. This works great.

    Can the formula be adjusted where it also copies columns A and B over to columns I and J?

    The reason I ask is because the values in A and B will be expanded to include other values in the very near future.

    Again! Thanks so much.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Incrementing Values

    Copy formula from K2 to I2 and drag across to N then down

  7. #7
    Registered User
    Join Date
    07-17-2017
    Location
    Dallas, Texas
    MS-Off Ver
    2010
    Posts
    10

    Re: Incrementing Values

    WOWWWWW!!!!!

    You are the best!!!!!!! THANKS SO MUCH!

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Incrementing Values

    Minor typo in formula (nothing serious - extraneous data !)

    in I2 and copy across and down

    =IF(MOD(ROWS($1:1),19)=0,"",INDEX(A$2:A$1000,INT((ROWS($1:1)-1)/19+1)))

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Registered User
    Join Date
    07-17-2017
    Location
    Dallas, Texas
    MS-Off Ver
    2010
    Posts
    10

    Re: Incrementing Values

    Thanks for the formula update.

    One more point of clarification, please. I forgot to mention that we need column I and J to reflect the first 18 cells in column A and the corresponding value in column B. We would like these values to show over in columns I and J and then repeat for the next 18 cells for columns A and B until there are no more data in columns A and B.

    Basically column I and J should match A and B.

    Example:
    Col A Col B Col I Col J
    AA0001 X AA0001 X
    AA0002 2 AA0002 2
    AA0003 R AA0003 R
    ... ...
    AA0018 Y AA0018 Y


    Columns K, L, M, and N are perfect as per the formula. Thanks for that again!
    Last edited by cm123; 09-20-2021 at 10:45 AM.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Incrementing Values

    See post #6 which answered this from post #5

  11. #11
    Registered User
    Join Date
    07-17-2017
    Location
    Dallas, Texas
    MS-Off Ver
    2010
    Posts
    10

    Re: Incrementing Values

    Yes, I tried that but it was copying cell A1 18x's in cells I2 thru I19.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Incrementing Values

    Try

    in I2

    =IF(MOD((ROWS($1:1)*1),19)=0,"",INDEX(A$2:A$1000,INT((ROWS($1:1)-1)/19)*18+MOD((ROWS($1:2)-1),19)))

    drag to J and then down
    Attached Files Attached Files
    Last edited by JohnTopley; 09-20-2021 at 12:38 PM.

+ 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] incrementing high mod values in a list
    By grizdog in forum Excel General
    Replies: 5
    Last Post: 11-28-2016, 04:45 PM
  2. Maintenance Formula for Incrementing Values
    By andy867 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-06-2013, 05:53 AM
  3. [SOLVED] Incrementing values in a cell range
    By Walter12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2012, 08:06 AM
  4. Incrementing values in cells
    By bex280 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-29-2009, 01:13 PM
  5. Incrementing by 2 alternating values
    By dvt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2008, 01:43 PM
  6. Incrementing values
    By ady_mech in forum Excel General
    Replies: 2
    Last Post: 12-20-2007, 09:35 AM
  7. Copying and Incrementing Values
    By armadale in forum Excel General
    Replies: 1
    Last Post: 05-14-2007, 06:14 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