EOMONTH and WEEKDAY and add days

Posted on 2014-11-04
Last Modified: 2014-11-04
Hello, I have modified the EOMONTH formula with a WEEKDAY function. However, after I add WEEKDAY and add a parenth, the return is a date but it is in 1900 so I think I have done something wrong.  Do you see what is the issue?   I also want to add days to this formula and not certain where exactly to add the days.  The days added needs to also take into account if lands on a weekend then go to the next weekday.  

this is how I have it now.  I added the WEEKDAY part.
Question by:pdvsa
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 65

Expert Comment

by:Jim Horn
ID: 40421739
>EOMONTH and WEEKDAY and add days
Please explain in a format that Barney the Big Purple Dinosaur would understand what exactly you're trying to do here, as I can't see a question here.
LVL 24

Expert Comment

by:Phillip Burton
ID: 40421744
If you want to add days, you don't use the WEEKDAY function.

Your formula currently goes to the end of some month. If you want to add 10 days to the end, try:

=EOMONTH(H67,MOD(12-MONTH(H67),3)) + 10

Author Comment

ID: 40421755

How do I modify


and add days criteria.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 40421757
Philip, I need to add WEEKDAY though.
LVL 24

Expert Comment

by:Phillip Burton
ID: 40421766
Why? What do you think WEEKDAY does (because it probably doesn't)?

WEEKDAY returns a number between 1 and 7.
LVL 33

Expert Comment

by:Rob Henson
ID: 40421860
How about:



Author Comment

ID: 40421863
ahhhh I see why you are confused... I mean WORKWEEK.  I dont know the difference between the two as they seem to be the same to me.  anyways, the date needs to be M-F and not weekends and I need to add date criteria within that function.

Author Comment

ID: 40421867
Rob, let me know if that changes something...didnt see your post.
LVL 24

Assisted Solution

by:Phillip Burton
Phillip Burton earned 500 total points
ID: 40421878
I think you mean WORKDAY:

=WORKDAY(EOMONTH(H67,MOD(12-MONTH(H67),3)) -1,1)

Author Comment

ID: 40421936
OK and if I wanted to add a certain number of day where would I place that and still have the WORKDAY function apply?
LVL 24

Accepted Solution

Phillip Burton earned 500 total points
ID: 40421941
The last "1" is the number of days to add (less 1).

Currently, a Friday translates as a Friday. A Saturday or Sunday translates as a Monday.

If you want to add 5 working days, change it to:


If you wanted 5 calendar days, change it to:

=WORKDAY(EOMONTH(H67,MOD(12-MONTH(H67),3))+5 -1,1)



depending on your circumstances. The first one adds 5 calendar days, then moves it to the next working day. The second one moves it to the next working day, then adds 5 calendar days.

Author Closing Comment

ID: 40421967
Thank you.  I might have to ask a follow up if I find I need to.  Sorry for the confusion with the names of the functions.  I am far from expert.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question