Excel weekending date formula

All, I know I have asked this before but I cannot find it in my answered questions. :( Can someone give me a weekending date based on the date of the dates in the "N" column starting at N2. Any assistance is appreciated. I need it to show the Fridays date please.
LVL 19
Edward PamiasTeam Lead RRS DeskAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
This should work (lots of ways to get there...).

=N2+7-WEEKDAY(N2+1)


»bp
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Edward PamiasTeam Lead RRS DeskAuthor Commented:
Thanks Bill! I have another question coming. I hope you can help.
0
Edward PamiasTeam Lead RRS DeskAuthor Commented:
Thank you!
0
Rob HensonFinance AnalystCommented:
You can also make use of the CEILING function, syntax is:

=CEILING(Number, Factor)

So for your scenario:

=CEILING(N2,7)-1

This works because of the way that Excel uses dates, the first date in Excel's calendar is "1 Jan 1900" which was a Sunday and is represented as serial number 1; each Saturday thereafter is a factor of 7. The CEILING function will round up a number to the specified factor, so rounding up a date to a factor of 7 will be the following Saturday; less 1 is therefore the Friday.

The opposite function for rounding down is FLOOR and will round down to the factor.

Thanks
Rob
1
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.