IfDate then return day of week

treeger15

New Member
Joined
May 17, 2016
Messages
3
I have a file "Blank Master" that returns the file name to cell A2...
We re-save the file daily as the date i.e "May 17, 2016" with the updated and relevant data.

I would like Cell A1 to return the day of the week once the file is re-saved as a date.

With this in A1:

=TEXT(B1,"DDDD")
---------------------
Both cells A1 and A2 return the text "Blank Master" before the new file is saved.

Please coach me up :)
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
what populates A1 and A2, if you select each do they show the same formula
 
Upvote 0
Code:
Private Sub Workbook_Open()
Dim s As String
Dim ss As String
s = ActiveWorkbook.Name
ss = Left(s, Len(s) - 5)
Sheets(1).Name = ss
ActiveWorkbook.Sheets(1).Range("b1") = ss
End Sub


Then in Cell A1 I have this formula

=TEXT(B1,"DDDD")
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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
Back
Top