+ Reply to Thread
Results 1 to 4 of 4

increment every Nth row by more than 1

  1. #1
    Registered User
    Join Date
    09-07-2011
    Location
    Brighton, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    increment every Nth row by more than 1

    I have been asked to create time slots by 2 second intervals every 10th row. I managed to make changes from a date formula but it only increments by 1 second. I have tried editing the formula but still get 1 second increments instead of 2. I am using the formula:

    =TIME(HOUR($C1),MINUTE($C$1),SECOND($C$1)+INT((ROW()-1)/11)) where C1 is the start time.

    Any answers very much appreciated.

    Thanks in advance

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: increment every Nth row by more than 1

    How about
    =TIME(HOUR($C11),MINUTE($C$1),SECOND($C$1)+INT((ROW()-1)/11)*2)

  3. #3
    Registered User
    Join Date
    09-07-2011
    Location
    Brighton, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: increment every Nth row by more than 1

    Thanks. I ended up with something almost identical. I didn't use brackets for the final *2 and used an absolute reference for the first part. Is your suggestion safer?

    =TIME(HOUR($C$1),MINUTE($C$1),SECOND($C$1)+INT((ROW()-1)/11))*2

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: increment every Nth row by more than 1

    You're formula will multiply the time by 2, not the number of seconds.

+ 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. Increment to next row
    By wambaugh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2015, 09:42 AM
  2. [SOLVED] Increment row by 1
    By cg080127 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2013, 06:22 AM
  3. [SOLVED] Control Button to increment by 1 and then select next cell in row to increment that cell
    By rammergu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2012, 07:35 PM
  4. For every increment of X add Y - Help
    By percyth1 in forum Excel General
    Replies: 2
    Last Post: 10-11-2011, 09:24 PM
  5. Add a day/increment by one
    By alexphys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-20-2009, 12:48 PM
  6. for every increment of x, add y...?
    By randomblabble in forum Excel General
    Replies: 3
    Last Post: 10-21-2007, 07:11 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

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