Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Define a cell value base on the date

I'd like to define the value of a cell to be the first letter of the day of
the week, based on the current year, when I supply the Month and Day from
other cells.

Example:
A1 = "April"
A2 = 1

Since April 1st of this year was a Sunday, the value of my cell, A3, would
be "S"

If I changed A2 to the number 10, then A3 would change to "T" because the
10th of April of this year is a "T"uesday.

I appreciate any help anyone can provide on this.

Jimmy
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 353
Default Define a cell value base on the date

=CHOOSE(WEEKDAY(DATEVALUE(A1&" "&A2)),"S","M","T","W","T","F","S")

"BaseballFan" wrote:

I'd like to define the value of a cell to be the first letter of the day of
the week, based on the current year, when I supply the Month and Day from
other cells.

Example:
A1 = "April"
A2 = 1

Since April 1st of this year was a Sunday, the value of my cell, A3, would
be "S"

If I changed A2 to the number 10, then A3 would change to "T" because the
10th of April of this year is a "T"uesday.

I appreciate any help anyone can provide on this.

Jimmy

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Define a cell value base on the date

Just a thought...

What weekday is this: S

Saturday or Sunday?

=IF(OR(A1="",A2=""),"",CHOOSE(WEEKDAY(A1&A2),"Su", "M","Tu","W","Th","F","Sa"))

Biff

"BoniM" wrote in message
...
=CHOOSE(WEEKDAY(DATEVALUE(A1&" "&A2)),"S","M","T","W","T","F","S")

"BaseballFan" wrote:

I'd like to define the value of a cell to be the first letter of the day
of
the week, based on the current year, when I supply the Month and Day from
other cells.

Example:
A1 = "April"
A2 = 1

Since April 1st of this year was a Sunday, the value of my cell, A3,
would
be "S"

If I changed A2 to the number 10, then A3 would change to "T" because the
10th of April of this year is a "T"uesday.

I appreciate any help anyone can provide on this.

Jimmy



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Line information pulled out base on date FGOMEZ Excel Discussion (Misc queries) 1 April 7th 06 03:20 AM
Define Name in active cell Danny Excel Worksheet Functions 0 October 13th 05 07:20 PM
Warning message base on date 68magnolia71 Excel Worksheet Functions 1 April 4th 05 09:38 PM
how to define a cell to where i can link to it. daneyb Excel Discussion (Misc queries) 6 March 13th 05 08:27 PM
Problem with date base units for x axis Peter Carr Charts and Charting in Excel 1 December 15th 04 10:11 AM


All times are GMT +1. The time now is 04:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"