+ Reply to Thread
Results 1 to 5 of 5

Date Formula on each sheet referring to previous sheet

  1. #1
    Forum Contributor
    Join Date
    06-27-2009
    Location
    montana,USA
    MS-Off Ver
    Excel 2007
    Posts
    190

    Date Formula on each sheet referring to previous sheet

    I have a spreadsheet that contains 31 pages. Each sheet contains a cell with the date. Is there a formula that I can use to add a day to the date on the first sheet.
    Ie.
    sheet one, cell A2 Thursday april 15th, 2010
    sheet two, cell A2 =( sheet1 cell A2) +1
    sheet three, cell A2 =(sheet1 cell A2) +2

    and so on.

    Any ideas

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date Formula

    In each sheet you need to add

    ='Sheet1'!A2+1 you may need to format result as date.

    changing sheet reference as necessary to refer to previous sheet.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    06-27-2009
    Location
    montana,USA
    MS-Off Ver
    Excel 2007
    Posts
    190

    Re: Date Formula on each sheet referring to previous sheet

    I get a #ref error. Is it because of my day, month, date, year format on sheet 1?

  4. #4
    Registered User
    Join Date
    04-15-2010
    Location
    Greeley, PA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Date Formula on each sheet referring to previous sheet

    Another way to do this, so you don't need to change the sheet reference every time, is to put this function in a module: (Alt-F11, right-click vbaproject, insert > module)

    Please Login or Register  to view this content.
    Then use this formula to pull the previous sheet's date and add one:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-27-2009
    Location
    montana,USA
    MS-Off Ver
    Excel 2007
    Posts
    190

    Re: Date Formula on each sheet referring to previous sheet

    I was able to figure it out without the code. but thanks

    =Date(2010,4,1) for sheet 1
    =(sheet1, date Cell)+1 for sheet 2
    etc.
    thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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