Show "W/C" 7th July 08 in a cell with formula

thorpyuk

Well-known Member
Joined
Mar 14, 2006
Messages
1,453
Hiya,

I have the following formula:

="W/C "& TODAY()-WEEKDAY(TODAY(),2)+1

Which will calculate the day of last week. However i do not know how to show this in the proper format. At the moment it returns:

W/C 39636

Because the cell sees text as well as a date value i cannot format the cell as a date :/

Can anyone help? Thanks
 

Some videos you may like

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try

="W/C "& TEXT(TODAY()-WEEKDAY(TODAY(),2)+1,"dd mmmm yyyy")
 

Kelbo

Board Regular
Joined
Jun 16, 2007
Messages
224
As an alternative why not use your original function?

=TODAY()-WEEKDAY(TODAY(),2)+1

Then custom format the cell as:- "W/C" dd mmmm yyyy

or however you need to format.

Regards,
Kelbo.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,160
Messages
5,600,058
Members
414,357
Latest member
Gemma_R

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top