Avatar of Edward Pamias
Edward PamiasFlag for United States of America

asked on 

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.
Microsoft OfficeSpreadsheetsMicrosoft Excel

Avatar of undefined
Last Comment
Rob Henson
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Edward Pamias
Edward Pamias
Flag of United States of America image

ASKER

Thanks Bill! I have another question coming. I hope you can help.
Avatar of Edward Pamias
Edward Pamias
Flag of United States of America image

ASKER

Thank you!
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo