Weekday Code for Large Number of Dates

mlarson

Well-known Member
Joined
Aug 25, 2011
Messages
509
Office Version
  1. 2010
Platform
  1. Windows
I am using the following formula to show the weekday in a given cell. Assume the date is in column A (example: 1-10-2011 in A1) and the output is in column B (example: Monday in B1).
Code:
=CHOOSE(WEEKDAY(A1), "Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")

My question is if I have a large number of dates in column A how can I automatically have the day of the week output in column B without copying the formula in each cell in column B?

Thank you.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Do you need the call to actually contain the day of the week or do you need it to display the day?

you could use =A1 in B1 (fill down) and then use a custom format on column B of [$-409]dddd

Otherwise, you could use VBA
 
Upvote 0
Do you need the call to actually contain the day of the week or do you need it to display the day?

I only need it to display the day. I would prefer that the output in column B not contain the formula, but rather just the day of the week.

What would be the VBA code using =TEXT(A1,"dddd") as the formula?
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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