Link to home
Start Free TrialLog in
Avatar of pdvsa
pdvsaFlag for United States of America

asked on

EOMONTH and WEEKDAY and add days

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.
=WEEKDAY(EOMONTH(H67,MOD(12-MONTH(H67),3)))
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

>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.
Avatar of Phillip Burton
Phillip Burton

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
Avatar of pdvsa

ASKER

Jim,

How do I modify
=EOMONTH(H67,MOD(12-MONTH(H67),3))

for WEEKDAY

and add days criteria.
Avatar of pdvsa

ASKER

Philip, I need to add WEEKDAY though.
Why? What do you think WEEKDAY does (because it probably doesn't)?

WEEKDAY returns a number between 1 and 7.
How about:

=IF(WEEKDAY(EOMONTH(H67,MOD(12-MONTH(H67),3))<6,EOMONTH(H67,MOD(12-MONTH(H67),3)),EOMONTH(H67,MOD(12-MONTH(H67),3))+8-EOMONTH(H67,MOD(12-MONTH(H67),3)))

Thanks
Rob
Avatar of pdvsa

ASKER

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.
Avatar of pdvsa

ASKER

Rob, let me know if that changes something...didnt see your post.
SOLUTION
Avatar of Phillip Burton
Phillip Burton

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pdvsa

ASKER

OK and if I wanted to add a certain number of day where would I place that and still have the WORKDAY function apply?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pdvsa

ASKER

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.