Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to create a formula with If/Then using days?
Example, I want to create a workbook with an entire month. I want to be able to use this every month but only change the first date of the month. However, if the date is a Sunday, I want it to add 2(two) days and skip Sunday. EXAMPLE: If Day= Sunday, then add 2 days, otherwise add only one day. (IF a3=SUN, then B1+2, B1+1) I hope this makes sense. Does anyone know a formula for this? Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=IF(WEEKDAY(A3,1)=1,B1+2,B1+1)
-- Vasant "Kathy L" <Kathy wrote in message ... Is it possible to create a formula with If/Then using days? Example, I want to create a workbook with an entire month. I want to be able to use this every month but only change the first date of the month. However, if the date is a Sunday, I want it to add 2(two) days and skip Sunday. EXAMPLE: If Day= Sunday, then add 2 days, otherwise add only one day. (IF a3=SUN, then B1+2, B1+1) I hope this makes sense. Does anyone know a formula for this? Thanks. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
an alternative without IF
=B1+1+(WEEKDAY(B1)=1) -- HTH Bob Phillips "Vasant Nanavati" <vasantn AT aol DOT com wrote in message ... =IF(WEEKDAY(A3,1)=1,B1+2,B1+1) -- Vasant "Kathy L" <Kathy wrote in message ... Is it possible to create a formula with If/Then using days? Example, I want to create a workbook with an entire month. I want to be able to use this every month but only change the first date of the month. However, if the date is a Sunday, I want it to add 2(two) days and skip Sunday. EXAMPLE: If Day= Sunday, then add 2 days, otherwise add only one day. (IF a3=SUN, then B1+2, B1+1) I hope this makes sense. Does anyone know a formula for this? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Linking computer dates (time) to spreadsheet dates that have formu | Excel Worksheet Functions | |||
compare 2 tables of dates to find the preceding dates | Excel Worksheet Functions | |||
how do I sort a column of random dates into Consecutive dates | Excel Worksheet Functions | |||
Toggle a range of Julian dates to Gregorian Dates and Back | Excel Programming | |||
need to convert list of dates to count no. of dates by week | Excel Worksheet Functions |