ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Display "week of July 29" in Excel (https://www.excelbanter.com/excel-programming/394144-display-week-july-29-excel.html)

[email protected]

Display "week of July 29" in Excel
 
I followed examples to display all dates in a given week as "Week 26"
or "Week 31" but would like to modify the date so it reads "Week of
July 29, 2007."

the formula I'm using looks like this:

=TRUNC(((A7-DATE(YEAR(A7),1,1))/7))+1+IF(WEEKDAY(DATE(YEAR(A7),
1,1))WEEKDAY(A7),1,0)

thanks for any help!

I would like to stick to something easier rather than more complex if
such a solution exists.


Roger Govier[_2_]

Display "week of July 29" in Excel
 
Hi

Try
="Week of "&TEXT(A7-WEEKDAY(A7,2),"mmmm dd, yyyy")

--
Regards
Roger Govier



wrote in message
ups.com...
I followed examples to display all dates in a given week as "Week 26"
or "Week 31" but would like to modify the date so it reads "Week of
July 29, 2007."

the formula I'm using looks like this:

=TRUNC(((A7-DATE(YEAR(A7),1,1))/7))+1+IF(WEEKDAY(DATE(YEAR(A7),
1,1))WEEKDAY(A7),1,0)

thanks for any help!

I would like to stick to something easier rather than more complex if
such a solution exists.




Rubble

Display "week of July 29" in Excel
 
Try this --

=CONCATENATE("Week of ",TEXT(INT(NOW()/7)*7+1,"[$-409]mmmm d;@"))

I used the now() formula for the date you are looking at (so the above
formula today will show "Week of July 22" since we are on the 25th today -
but you could replace the now() with a reference to another date then that
will work for consecutive dates ...

" wrote:

I followed examples to display all dates in a given week as "Week 26"
or "Week 31" but would like to modify the date so it reads "Week of
July 29, 2007."

the formula I'm using looks like this:

=TRUNC(((A7-DATE(YEAR(A7),1,1))/7))+1+IF(WEEKDAY(DATE(YEAR(A7),
1,1))WEEKDAY(A7),1,0)

thanks for any help!

I would like to stick to something easier rather than more complex if
such a solution exists.



Vergel Adriano

Display "week of July 29" in Excel
 

="Week of " & TEXT(IF(WEEKDAY(A7)=1, A7, A7-WEEKDAY(A7)+1), "mmmm dd, yyyy")


--
Hope that helps.

Vergel Adriano


" wrote:

I followed examples to display all dates in a given week as "Week 26"
or "Week 31" but would like to modify the date so it reads "Week of
July 29, 2007."

the formula I'm using looks like this:

=TRUNC(((A7-DATE(YEAR(A7),1,1))/7))+1+IF(WEEKDAY(DATE(YEAR(A7),
1,1))WEEKDAY(A7),1,0)

thanks for any help!

I would like to stick to something easier rather than more complex if
such a solution exists.




All times are GMT +1. The time now is 10:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com