jellenberger
New Member
- Joined
- Aug 28, 2014
- Messages
- 4
Hello,
I use the below function to display the first day of the current week (I use this in a Jet Report). In the function D5 is =TEXT(C5,"dddd") and C5 is =TODAY().
=IF(D5="Monday",C5-1,IF(D5="Tuesday",C5-2,IF(D5="Wednesday",C5-3,IF(D5="Thursday",C5-4,IF(D5="Friday",C5-5,IF(D5="Saturday",C5-6,C5-7))))))
Does anyone know how to modify this to show the first day of the current month if the first day of the current week happens to land in the previous month? Example: If today's date C5 is 09/01/14 then the first day of the week is 08/31/14. I need it to be 09/01/14.
The reason is I report on sales by week, month and YDT. When the month ends i don't want to include that data in the first week of the month.
Thanks,
Jason
I use the below function to display the first day of the current week (I use this in a Jet Report). In the function D5 is =TEXT(C5,"dddd") and C5 is =TODAY().
=IF(D5="Monday",C5-1,IF(D5="Tuesday",C5-2,IF(D5="Wednesday",C5-3,IF(D5="Thursday",C5-4,IF(D5="Friday",C5-5,IF(D5="Saturday",C5-6,C5-7))))))
Does anyone know how to modify this to show the first day of the current month if the first day of the current week happens to land in the previous month? Example: If today's date C5 is 09/01/14 then the first day of the week is 08/31/14. I need it to be 09/01/14.
The reason is I report on sales by week, month and YDT. When the month ends i don't want to include that data in the first week of the month.
Thanks,
Jason