+ Reply to Thread
Results 1 to 16 of 16

I cant get my formula to add a day for the 8th of every month

  1. #1
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    255

    I cant get my formula to add a day for the 8th of every month

    Anyone knows a formula that will add one day for a specific date of every month?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I cant get my formula to add a day for the 8th of every month

    Not enough detail.

    Are you wanting to count how many 8th of the months have passed since a start date?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    255

    Re: I cant get my formula to add a day for the 8th of every month

    I have a vacation tracker that I've built and I want the total vacation days acquired show how many days an employee acquired every 8th of each month. So if an employee was hired on the 8th of august 2014 then on the 8th of September 2014 the employee should acquire 1 vacation day. is there a formula that can do that. I'm trying alot of if statements out of my head but can't seem to get it to work.

  4. #4
    Registered User
    Join Date
    07-30-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: I cant get my formula to add a day for the 8th of every month

    What if an employee was hired on the 7th of august; do they get a day on August 8?

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I cant get my formula to add a day for the 8th of every month

    Maybe this...

    A2 = date of hire

    =SUMPRODUCT(--(DAY(ROW(INDIRECT(A2&":"&TODAY())))=8))

  6. #6
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    255

    Re: I cant get my formula to add a day for the 8th of every month

    No if they were hired August 7th 2014 then they would Acquire a day on September 7th 2014. so basically they will acquire a vacation day on every hired day of each month, which would be the 7th of each month.

  7. #7
    Registered User
    Join Date
    07-30-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: I cant get my formula to add a day for the 8th of every month

    Please Login or Register  to view this content.
    This takes the difference between the startdate and the checkdate (either TODAY() or some pre-set date you want to check against), expressed in months/"m"

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I cant get my formula to add a day for the 8th of every month

    Hmmm...

    What if their hire date was on a leap day?

  9. #9
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    255

    Re: I cant get my formula to add a day for the 8th of every month

    Thanks Tony but the formula gives me 72 days acquired. basically i need it to add a day, every hired date for the employee for each month...so for an example. the employee's hired date was 8-sept-2013 so by 8-oct-2014 the employee will acquire 1 vacation day, if the employee didn't take any vac day then by 8-Nov-2014 the employee will acquire another vacation day so in total the employee will have 2 vacation days. I need a formula that will continiously keep adding one day for every 8th(hired date) of each month.

    So Every month the employee receives 1 to 1.5 day (from the 8-sept 2014 to 8-october-2014 = 1 month)

  10. #10
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    255

    Re: I cant get my formula to add a day for the 8th of every month

    hmmm that, i didn't think off lol

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I cant get my formula to add a day for the 8th of every month

    Quote Originally Posted by Shellybelly View Post
    I need a formula that will continiously keep adding one day for every 8th(hired date) of each month.
    That's what my formula does.

    However, there's a problem with leap years. I can't think of a way to modify the formula to account for leap years/days.

  12. #12
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: I cant get my formula to add a day for the 8th of every month

    Tony, I don't think your formula would work properly for any start date greater than the 28th of any month - not only for leap years, but also if they started on the 31st it would miss 5 months each year.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  13. #13
    Registered User
    Join Date
    07-30-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: I cant get my formula to add a day for the 8th of every month

    Did you try the =DATEDIF(StartDate,CheckDate,"m") ? That will give you the number of total elapsed months, which you can multiply by 1 or 1.5 as needed.

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I cant get my formula to add a day for the 8th of every month

    Yeah, I didn't think this one through very well!

    Depending on how they want to handle leap days, the DATEDIF formula should do what you want.

    =DATEDIF(start_date,NOW(),"m")

  15. #15
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    255

    Re: I cant get my formula to add a day for the 8th of every month

    It Works guys!!!!! thanks sooo much.

  16. #16
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I cant get my formula to add a day for the 8th of every month

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as 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-16-2014, 02:53 PM
  2. [SOLVED] Formula to return End OF Month date with non-calendar month lengths.
    By Snoddas in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 05-09-2014, 08:45 AM
  3. [SOLVED] Counting & summing formula (until last month,this month,until this month..
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2014, 01:14 PM
  4. Date Formula for days of the month, new dates starting on the 2nd of the month.
    By Kenn Jerger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2013, 01:31 AM
  5. Replies: 5
    Last Post: 10-04-2012, 07:06 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