filmov
tv
Excel VBA Basics #23 DATEADD - Add or Subtract Minutes, Months, Weekdays, Seconds whatever!!

Показать описание
This is the super duper cheater way to easily calculate what a date or time might be like when you add or subtract a certain amount of time. You can add 3 months, or 15 quarters, or 7134.5 hours. Here's what you can add or subtract:
s Seconds
n Minutes
h Hours
d Days
w Weekdays
ww Weeks
m Months
q Quarters
y Days of the year
yyyy Years
so to add 1234 seconds to the current time would be
answer = DateAdd( "s", 1234, Time) ' because Time is default system time variable.
To get 34 quarters ago,
answer = DateAdd("q", -34, Date) ' because Date is default system date variable.
So. . .
answer= DateADd("m", 25, "11:00 AM")
answer would have the value 11:25 AM
w Weeks
Fantastic Developer Tools:
Excel VBA Basics #23 DATEADD - Add or Subtract Minutes, Months, Weekdays, Seconds whatever!!
Excel VBA - Dates
Excel VBA - Date Add
DateAdd Function in VBA
How to use DateAdd Function in Excel VBA - Excel Avon
Learn Excel - Video 231 - VBA Date Functions- DateDiff,Dateadd and Datepart,Format
Excel VBA - Using Date, CDate, DateAdd function
3 Super Useful Date Functions in VBA
Excel VBA Basics #24 DateDiff in VBA - Difference in Seconds, Hours, Weekdays, Quarters, Months, Etc
How To Calculate Date Intervals With VBA DateAdd
Excel Macro to Modify Dates - DateAdd Function
Excel VBA 215 Utiliser DATEADD
Excel VBA Basics #21a Restore StatusBar to Normal - Simple!
3 Very useful Date related functions in Excel VBA
Excel VBA Basics #25 Extract the DAY, WEEKDAY, MONTH, YEAR from a date. How to use DateSerial
Working with Dates in MS Excel, Date, CDate and DateAdd
Using the DATEADD function
20 VBScript Understanding DateAdd function
Date Functions || MonthName Function In VBA Macros || VBA Basics || MonthName with Abbrevation
Excel VBA Tutorial for Beginners 57 - Splitting Time, TimeSerial, TimeValue Functions in MS Excel
Excel VBA Tips n Tricks #11B Pay Period Start and End Date - CUSTOM FUNCTION
How to use DateDiff Function in Excel VBA - Excel VBA
Excel VBA Basics #26 WeekdayName and MonthName in VBA
Today date for weekly sales format | VBA Tutorial | simple vba code in excel
Комментарии