+ Reply to Thread
Results 1 to 6 of 6

2 questions on number sequence and dates

  1. #1
    Registered User
    Join Date
    11-08-2021
    Location
    Birmingham, AL
    MS-Off Ver
    office 365
    Posts
    3

    2 questions on number sequence and dates

    Newbie to Excel and have created a simple check register. My first question is how to write a formula that will increase the check number by 1 when "entering the check# cell" column. sometimes I may make several entries without using a check # before I need to enter the next check. I was using quickbooks and it would automatically update the next check number when I entered the check number cell.

    Second question is how can I format a date in a cell that allows me to enter a number that will default to the date format when leaving the date cell. Example: I type in 11082021 and when I tab from the cell it automatically formats to 11/08/2021.

    Thanks for any help.
    Mike

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: 2 questions on number sequence and dates

    1. You dont give any cell refs to work from, so assuming the following...
    col A = Check # cell
    col B = check number
    in B3 (with starting seed in check # in B2)
    B3=if(A3="",B2,B2+1)

    2. What you need to understand about dates and times in excel is…

    a date is just a number representing the number of days passed since 1/1/900...and then formatted in a way that we recognize as a date. So, for instance, today (Mon 08 Nov 2021) is actually 44508

    Time is actually a decimal part of 1 (day), so 06:00 AM is 0.25, 12 noon is 0.5 and 18:00 (or 6 PM) is 0.75

    So to answer your question, while you *may* be able to visually display what appears to be a date in that cell buy using some fancy formatting, it will still not be a true date.

    It might be better to either enter an actual date, or have a helper column that converts your number to a date.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-08-2021
    Location
    Birmingham, AL
    MS-Off Ver
    office 365
    Posts
    3

    Re: 2 questions on number sequence and dates

    Thank you for your response, I understand about the date issue. Let me be more clear on my sequence question. "Column A" is "Date", "Column B" is "chk number". As I make entries into my register in the "rows"
    I enter the date in column A and then if I have a check to enter I would like the next check number to automatically appear in Column B based on a prior check that was entered. My issue is I don't always need
    to enter a check number for every transaction. I use my debit card quite a bit so I don't need to enter a check number for that transaction. Consequently, my last check entered might be "Column B row 15" but
    the next check might be "Column B row 20". How would I write a formula that would look at Column B row 15 and enter the next check number in Column B row 20?

    I'm sure I've got you totally confused by now and I do appreciate any help you can provide.
    Mike

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,603

    Re: 2 questions on number sequence and dates

    There are instructions at the top of the page on how to post a sample sheet.Thanks

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,178

    Re: 2 questions on number sequence and dates

    In B2 you can enter this formula and copy down:

    =IF(A2="","",MAX(B$1:B1)+1)

    If you don't want the check number for that date entry, delete it and the next row then will get the next one.

  6. #6
    Registered User
    Join Date
    11-08-2021
    Location
    Birmingham, AL
    MS-Off Ver
    office 365
    Posts
    3

    Re: 2 questions on number sequence and dates

    Thank you for your reply. It worked perfectly. Issue is solved.

+ 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: 3
    Last Post: 07-30-2019, 12:21 PM
  2. [SOLVED] Count the number of occurrence upto now and assign a unique sequence number
    By chathuranga in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-22-2016, 07:25 AM
  3. Replies: 7
    Last Post: 06-08-2015, 08:39 AM
  4. Replies: 6
    Last Post: 11-26-2013, 05:21 PM
  5. [SOLVED] Formula to display sequence number based on contiguous start and end dates
    By AlanCake in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-04-2013, 07:37 AM
  6. Replies: 5
    Last Post: 11-22-2010, 06:31 PM

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