+ Reply to Thread
Results 1 to 5 of 5

auto calculate the sart and end of each month

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    Lincolnshire
    Posts
    53

    auto calculate the sart and end of each month

    I have a workbook where I would like to enter the date of the starting month when the workbook is being used, and I want it to calculate in the next cell across the ending of that month.

    Please help!
    Last edited by famico78; 12-15-2008 at 07:50 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    You don't specify anything restrictive, so if you just want the last day of the month shown for you, this formula will do that:
    Please Login or Register  to view this content.
    This looks for your date in cell A1. Adjust to suit your needs.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-15-2008
    Location
    Lincolnshire
    Posts
    53
    Thats great thanks. How would I use this as an if function to not show false.
    This is how I have used it so far =IF(V17,DATE(YEAR(AA17),MONTH(AA17)+1,0))
    But I don't want false to show if v17 is blank.

    Please help.

  4. #4
    Registered User
    Join Date
    10-15-2008
    Location
    Lincolnshire
    Posts
    53
    That's cool I got it.
    =IF(V17,DATE(YEAR(AA17),MONTH(AA17)+1,0),IF(V17,"",""))

    Thanks JBeaucaire

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697
    You don't need the last IF, try

    =IF(V17,DATE(YEAR(AA17),MONTH(AA17)+1,0),"")

+ 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