+ Reply to Thread
Results 1 to 12 of 12

How to increment with the ability to 'reset'?

  1. #1
    Registered User
    Join Date
    12-21-2020
    Location
    Ohio, US
    MS-Off Ver
    Microsoft 365
    Posts
    14

    How to increment with the ability to 'reset'?

    I am creating a sheet with ~1000 rows and four columns.

    One of the columns I want to increment by one (1, 2, 3, etc) but to ascend only to about 36, at which point I will edit the current cell back to '1.'

    (This sheet is a record of one calendar year's photos and the column in question is the frame number for slides - hence the need to begin at '1' for each roll of film.)

    Is there a way that as I enter my data and tab through that I can have Excel automatically increment until I jump in and edit that cell to begin at "1" and then again continue to increment? Please note that I need to manually reset the value back to '1' because sometimes a roll of film will have 37 or 38 frames.

    Thank you in advance for any help.
    Last edited by divide_by_zero; 12-22-2020 at 10:29 PM.

  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
    81,090

    Re: How to increment with the ability to 'reset'?

    Welcome to the forum.

    Easily done if you have a helper column where you indicate the beginning of each new film roll.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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
    12-21-2020
    Location
    Ohio, US
    MS-Off Ver
    Microsoft 365
    Posts
    14

    Re: How to increment with the ability to 'reset'?

    Thank you for the welcome, Ali.

    I've attached the sample.

    I have a somewhat related question (I'll be glad to start a new thread if that's more appropriate):

    Is there a practical way to automatically populate a cell with the value found directly above the current cell? I would find this convenient for repeating the 'Date captured' since many photos are taken on the same day.
    Attached Files Attached Files

  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
    81,090

    Re: How to increment with the ability to 'reset'?

    Sorry - I need a data sample that includes at least two rolls of film in which you show where the second film roll starts.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: How to increment with the ability to 'reset'?

    Assum G2 is starting frame#

    G3 drag down is running consecutive number from 1 to 36

    Please Login or Register  to view this content.
    Date in H2

    From H3 then drag down:

    =H2

    You may need to create "Auto Serial" from date and frame#

    I2 then drag down:

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Attached Files Attached Files
    Quang PT

  6. #6
    Registered User
    Join Date
    12-21-2020
    Location
    Ohio, US
    MS-Off Ver
    Microsoft 365
    Posts
    14

    Re: How to increment with the ability to 'reset'?

    Included is the updated data sample - I hope it's enough. Sorry for the trouble - I'm not very tech savvy.

    You'll notice beginning with serial _0037 the date is not chronological. That's because in film days I used two cameras concurrently.

    bebo021999: thank you for your reply - I'll address it after I get more information.
    Attached Files Attached Files

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

    Re: How to increment with the ability to 'reset'?

    Where do you want the formula to go? in column B?

    Pete

  8. #8
    Registered User
    Join Date
    12-21-2020
    Location
    Ohio, US
    MS-Off Ver
    Microsoft 365
    Posts
    14

    Re: How to increment with the ability to 'reset'?

    Quote Originally Posted by Pete_UK View Post
    Where do you want the formula to go? in column B?

    Pete
    The formula to increment by '1' until manually reset - yes, column B.

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

    Re: How to increment with the ability to 'reset'?

    Put your starting number in B2, then you can use this formula in B3:

    =IF(A3="","",B2+1)

    Copy this down as far as you need to (it will keep incrementing). Then when you want to reset it (e.g. in cell B40) you just need to enter a 1 in that cell and subsequent numbers will adjust automatically.

    Hope this helps.

    Pete

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to increment with the ability to 'reset'?

    Is there a practical way to automatically populate a cell with the value found directly above the current cell? I would find this convenient for repeating the 'Date captured' since many photos are taken on the same day.
    CNTRL + D will automatically populate the cell with what is above it. If you are picking multiple cells, you need to include the cell which contains what is being copied but if it's a single cell, then just CNTRL D works.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  11. #11
    Registered User
    Join Date
    12-21-2020
    Location
    Ohio, US
    MS-Off Ver
    Microsoft 365
    Posts
    14

    Re: How to increment with the ability to 'reset'?

    Thank you Ali, Quang, Pete, and ChemistB for your help - you all made my day!

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

    Re: How to increment with the ability to 'reset'?

    You're welcome - thanks for the rep.

    Pete

+ 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: 7
    Last Post: 03-09-2020, 07:11 PM
  2. Replies: 1
    Last Post: 05-18-2019, 10:31 AM
  3. increment a cell and add reset button
    By joeygarlough in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-08-2017, 01:28 AM
  4. [SOLVED] I need to create a reset button that will reset rows containing a specific value
    By odin78 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 04-03-2016, 02:11 PM
  5. [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
  6. 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