Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default click on calendar control calendar but want to return the DAY of

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on a
November 11, the date of 11/11/08 gets entered into cell B7, and the calendar
disappears. This works Fine. However, what I would like to be able to set
up
is when the person clicks on November 11, the date of November gets entered
into cell B7 AND the corresponding weekday (in this case, Tuesday) gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default click on calendar control calendar but want to return the DAY of

G'day

This is not too hard to do once you know. The WEEKDAY function will give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5 for
Thursday etc etc). You can then use a VLOOKUP to link the integers to the
names of the days via a little table that you create in another part of the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you will
need to go to Tools --- AddIns and turn on the one called "Analysis Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on a
November 11, the date of 11/11/08 gets entered into cell B7, and the calendar
disappears. This works Fine. However, what I would like to be able to set
up
is when the person clicks on November 11, the date of November gets entered
into cell B7 AND the corresponding weekday (in this case, Tuesday) gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default click on calendar control calendar but want to return the DAY of

You can use the TEXT function to return the day name directly (and without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers to the
names of the days via a little table that you create in another part of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you
will
need to go to Tools --- AddIns and turn on the one called "Analysis Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on a
November 11, the date of 11/11/08 gets entered into cell B7, and the
calendar
disappears. This works Fine. However, what I would like to be able to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday) gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default click on calendar control calendar but want to return the DAY

Gee, that's neat. Wish I'd discovered that 10 years ago. Every time you
start to think you've become an "Advnced User", something like this comes
along to cut you down to size ....
--
Time is just the thing that keeps everything from happening all at once


"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers to the
names of the days via a little table that you create in another part of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you
will
need to go to Tools --- AddIns and turn on the one called "Analysis Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on a
November 11, the date of 11/11/08 gets entered into cell B7, and the
calendar
disappears. This works Fine. However, what I would like to be able to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday) gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default click on calendar control calendar but want to return the DAY

If you use 3 d's, then the abbreviated day name is returned. You can do the
same thing (using 3 and 4 m's) to return the month name (abbreviated and
full). It looks like 5 m's will return the first letter of the month name (5
d's doesn't do this).

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
Gee, that's neat. Wish I'd discovered that 10 years ago. Every time you
start to think you've become an "Advnced User", something like this comes
along to cut you down to size ....
--
Time is just the thing that keeps everything from happening all at once


"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and
without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will
give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers to
the
names of the days via a little table that you create in another part of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you
will
need to go to Tools --- AddIns and turn on the one called "Analysis
Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on
a
November 11, the date of 11/11/08 gets entered into cell B7, and the
calendar
disappears. This works Fine. However, what I would like to be able
to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday)
gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default click on calendar control calendar but want to return the DAY

Yep, I'd already gone in and discovered the "3d" thing and the month
equivalent. I have a big application that's used by about 50 people her , so
I've already begun to simplify all of the relevant formaulae and structures.

Thanks again.
--
Time is just the thing that keeps everything from happening all at once


"Rick Rothstein" wrote:

If you use 3 d's, then the abbreviated day name is returned. You can do the
same thing (using 3 and 4 m's) to return the month name (abbreviated and
full). It looks like 5 m's will return the first letter of the month name (5
d's doesn't do this).

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
Gee, that's neat. Wish I'd discovered that 10 years ago. Every time you
start to think you've become an "Advnced User", something like this comes
along to cut you down to size ....
--
Time is just the thing that keeps everything from happening all at once


"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and
without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will
give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers to
the
names of the days via a little table that you create in another part of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you
will
need to go to Tools --- AddIns and turn on the one called "Analysis
Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on
a
November 11, the date of 11/11/08 gets entered into cell B7, and the
calendar
disappears. This works Fine. However, what I would like to be able
to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday)
gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56







  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default click on calendar control calendar but want to return the DAY

Rick, thanks for your answer. This is a very simple answer to this question,
however, when I insert the formula, then copy and paste for the range in the
column, it displays the SAME day of the week for the entire column, until I
use the calendar control and actually click on a date I have picked. I would
like to have the cell return a BLANK, until I use the calendar control and
click on a date, then enter the correct DAY of the week in the cell.

Thanks for your time, Bill

"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers to the
names of the days via a little table that you create in another part of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you
will
need to go to Tools --- AddIns and turn on the one called "Analysis Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on a
November 11, the date of 11/11/08 gets entered into cell B7, and the
calendar
disappears. This works Fine. However, what I would like to be able to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday) gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56





  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default click on calendar control calendar but want to return the DAY

=IF(B7="","",TEXT(B7,"dddd"))

Copy down.


Gord Dibben MS Excel MVP


On Thu, 7 May 2009 09:16:06 -0700, retired bill
wrote:

Rick, thanks for your answer. This is a very simple answer to this question,
however, when I insert the formula, then copy and paste for the range in the
column, it displays the SAME day of the week for the entire column, until I
use the calendar control and actually click on a date I have picked. I would
like to have the cell return a BLANK, until I use the calendar control and
click on a date, then enter the correct DAY of the week in the cell.

Thanks for your time, Bill

"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers to the
names of the days via a little table that you create in another part of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you
will
need to go to Tools --- AddIns and turn on the one called "Analysis Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on a
November 11, the date of 11/11/08 gets entered into cell B7, and the
calendar
disappears. This works Fine. However, what I would like to be able to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday) gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56






  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default click on calendar control calendar but want to return the DAY

Gord, thanks for your reply, will give it a try. The reason I posted on a
new thread is because I am new to this, and was not sure anyone could OR
would go back the original thread to check a later response I posted. thanks

New Question: I am using the "ddd" setup in the formula and would like for
the three letter day of the week to appear in ALL capitals if possible. I
have tried changing the "ddd" to "DDD", but this did not work. Any help here
would be greatly appreciated. Thanks, Bill

"Gord Dibben" wrote:

=IF(B7="","",TEXT(B7,"dddd"))

Copy down.


Gord Dibben MS Excel MVP


On Thu, 7 May 2009 09:16:06 -0700, retired bill
wrote:

Rick, thanks for your answer. This is a very simple answer to this question,
however, when I insert the formula, then copy and paste for the range in the
column, it displays the SAME day of the week for the entire column, until I
use the calendar control and actually click on a date I have picked. I would
like to have the cell return a BLANK, until I use the calendar control and
click on a date, then enter the correct DAY of the week in the cell.

Thanks for your time, Bill

"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers to the
names of the days via a little table that you create in another part of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you
will
need to go to Tools --- AddIns and turn on the one called "Analysis Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on a
November 11, the date of 11/11/08 gets entered into cell B7, and the
calendar
disappears. This works Fine. However, what I would like to be able to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday) gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56







  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default click on calendar control calendar but want to return the DAY

Use the UPPER function...

=IF(B7="","",UPPER(TEXT(B7,"ddd")))

--
Rick (MVP - Excel)


"retired bill" wrote in message
...
Gord, thanks for your reply, will give it a try. The reason I posted on a
new thread is because I am new to this, and was not sure anyone could OR
would go back the original thread to check a later response I posted.
thanks

New Question: I am using the "ddd" setup in the formula and would like
for
the three letter day of the week to appear in ALL capitals if possible. I
have tried changing the "ddd" to "DDD", but this did not work. Any help
here
would be greatly appreciated. Thanks, Bill

"Gord Dibben" wrote:

=IF(B7="","",TEXT(B7,"dddd"))

Copy down.


Gord Dibben MS Excel MVP


On Thu, 7 May 2009 09:16:06 -0700, retired bill
wrote:

Rick, thanks for your answer. This is a very simple answer to this
question,
however, when I insert the formula, then copy and paste for the range in
the
column, it displays the SAME day of the week for the entire column,
until I
use the calendar control and actually click on a date I have picked. I
would
like to have the cell return a BLANK, until I use the calendar control
and
click on a date, then enter the correct DAY of the week in the cell.

Thanks for your time, Bill

"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and
without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will
give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for
Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers
to the
names of the days via a little table that you create in another part
of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY,
you
will
need to go to Tools --- AddIns and turn on the one called "Analysis
Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at
once


"retired bill" wrote:

I figured out how to add a calendar control to my excel
spreadsheet.
For example, when I click in cell B7, the calendar appears, I click
on a
November 11, the date of 11/11/08 gets entered into cell B7, and
the
calendar
disappears. This works Fine. However, what I would like to be
able to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday)
gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56










  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default click on calendar control calendar but want to return the DAY

Rick, Thanks once again. Works exactly like I needed. One last question if
possible. Is there any way to have each of the SEVEN (7) days of the week
appear in a different color as they come up in the cell. Thanks, Bill

"Rick Rothstein" wrote:

Use the UPPER function...

=IF(B7="","",UPPER(TEXT(B7,"ddd")))

--
Rick (MVP - Excel)


"retired bill" wrote in message
...
Gord, thanks for your reply, will give it a try. The reason I posted on a
new thread is because I am new to this, and was not sure anyone could OR
would go back the original thread to check a later response I posted.
thanks

New Question: I am using the "ddd" setup in the formula and would like
for
the three letter day of the week to appear in ALL capitals if possible. I
have tried changing the "ddd" to "DDD", but this did not work. Any help
here
would be greatly appreciated. Thanks, Bill

"Gord Dibben" wrote:

=IF(B7="","",TEXT(B7,"dddd"))

Copy down.


Gord Dibben MS Excel MVP


On Thu, 7 May 2009 09:16:06 -0700, retired bill
wrote:

Rick, thanks for your answer. This is a very simple answer to this
question,
however, when I insert the formula, then copy and paste for the range in
the
column, it displays the SAME day of the week for the entire column,
until I
use the calendar control and actually click on a date I have picked. I
would
like to have the cell return a BLANK, until I use the calendar control
and
click on a date, then enter the correct DAY of the week in the cell.

Thanks for your time, Bill

"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and
without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will
give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for
Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers
to the
names of the days via a little table that you create in another part
of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY,
you
will
need to go to Tools --- AddIns and turn on the one called "Analysis
Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at
once


"retired bill" wrote:

I figured out how to add a calendar control to my excel
spreadsheet.
For example, when I click in cell B7, the calendar appears, I click
on a
November 11, the date of 11/11/08 gets entered into cell B7, and
the
calendar
disappears. This works Fine. However, what I would like to be
able to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday)
gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56









  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default click on calendar control calendar but want to return the DAY

We all check the original thread when we know that replies have been posted
to that original.


Gord

On Thu, 7 May 2009 10:13:01 -0700, retired bill
wrote:

Gord, thanks for your reply, will give it a try. The reason I posted on a
new thread is because I am new to this, and was not sure anyone could OR
would go back the original thread to check a later response I posted. thanks

New Question: I am using the "ddd" setup in the formula and would like for
the three letter day of the week to appear in ALL capitals if possible. I
have tried changing the "ddd" to "DDD", but this did not work. Any help here
would be greatly appreciated. Thanks, Bill

"Gord Dibben" wrote:

=IF(B7="","",TEXT(B7,"dddd"))

Copy down.


Gord Dibben MS Excel MVP


On Thu, 7 May 2009 09:16:06 -0700, retired bill
wrote:

Rick, thanks for your answer. This is a very simple answer to this question,
however, when I insert the formula, then copy and paste for the range in the
column, it displays the SAME day of the week for the entire column, until I
use the calendar control and actually click on a date I have picked. I would
like to have the cell return a BLANK, until I use the calendar control and
click on a date, then enter the correct DAY of the week in the cell.

Thanks for your time, Bill

"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers to the
names of the days via a little table that you create in another part of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you
will
need to go to Tools --- AddIns and turn on the one called "Analysis Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on a
November 11, the date of 11/11/08 gets entered into cell B7, and the
calendar
disappears. This works Fine. However, what I would like to be able to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday) gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56








  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default click on calendar control calendar but want to return the DAY

Thanks Gord - Still looking for an answer to my last question. Any
suggestions?

"Gord Dibben" wrote:

We all check the original thread when we know that replies have been posted
to that original.


Gord

On Thu, 7 May 2009 10:13:01 -0700, retired bill
wrote:

Gord, thanks for your reply, will give it a try. The reason I posted on a
new thread is because I am new to this, and was not sure anyone could OR
would go back the original thread to check a later response I posted. thanks

New Question: I am using the "ddd" setup in the formula and would like for
the three letter day of the week to appear in ALL capitals if possible. I
have tried changing the "ddd" to "DDD", but this did not work. Any help here
would be greatly appreciated. Thanks, Bill

"Gord Dibben" wrote:

=IF(B7="","",TEXT(B7,"dddd"))

Copy down.


Gord Dibben MS Excel MVP


On Thu, 7 May 2009 09:16:06 -0700, retired bill
wrote:

Rick, thanks for your answer. This is a very simple answer to this question,
however, when I insert the formula, then copy and paste for the range in the
column, it displays the SAME day of the week for the entire column, until I
use the calendar control and actually click on a date I have picked. I would
like to have the cell return a BLANK, until I use the calendar control and
click on a date, then enter the correct DAY of the week in the cell.

Thanks for your time, Bill

"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers to the
names of the days via a little table that you create in another part of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you
will
need to go to Tools --- AddIns and turn on the one called "Analysis Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on a
November 11, the date of 11/11/08 gets entered into cell B7, and the
calendar
disappears. This works Fine. However, what I would like to be able to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday) gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56









  #14   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default click on calendar control calendar but want to return the DAY

Gord - Looks like no one checked back on this thread since yesterday
afternoon. Anyone have a reply to my last question ? Thanks

"Gord Dibben" wrote:

We all check the original thread when we know that replies have been posted
to that original.


Gord

On Thu, 7 May 2009 10:13:01 -0700, retired bill
wrote:

Gord, thanks for your reply, will give it a try. The reason I posted on a
new thread is because I am new to this, and was not sure anyone could OR
would go back the original thread to check a later response I posted. thanks

New Question: I am using the "ddd" setup in the formula and would like for
the three letter day of the week to appear in ALL capitals if possible. I
have tried changing the "ddd" to "DDD", but this did not work. Any help here
would be greatly appreciated. Thanks, Bill

"Gord Dibben" wrote:

=IF(B7="","",TEXT(B7,"dddd"))

Copy down.


Gord Dibben MS Excel MVP


On Thu, 7 May 2009 09:16:06 -0700, retired bill
wrote:

Rick, thanks for your answer. This is a very simple answer to this question,
however, when I insert the formula, then copy and paste for the range in the
column, it displays the SAME day of the week for the entire column, until I
use the calendar control and actually click on a date I have picked. I would
like to have the cell return a BLANK, until I use the calendar control and
click on a date, then enter the correct DAY of the week in the cell.

Thanks for your time, Bill

"Rick Rothstein" wrote:

You can use the TEXT function to return the day name directly (and without
the need for the Analysis ToolPak)...

=TEXT(B7,"dddd")

--
Rick (MVP - Excel)


"Neptune Dinosaur" wrote in message
...
G'day

This is not too hard to do once you know. The WEEKDAY function will give
you a number that returns the day of the week e.g. "=WEEKDAY(B7)"

This actually gives you an integer in the range 1 to 7 (1 for Sunday, 5
for
Thursday etc etc). You can then use a VLOOKUP to link the integers to the
names of the days via a little table that you create in another part of
the
sheet or file.

If you find that your Excel environment doesn't recognise WEEKDAY, you
will
need to go to Tools --- AddIns and turn on the one called "Analysis Tool
Pack" (then close the file and reopen it).
--
Time is just the thing that keeps everything from happening all at once


"retired bill" wrote:

I figured out how to add a calendar control to my excel spreadsheet.
For example, when I click in cell B7, the calendar appears, I click on a
November 11, the date of 11/11/08 gets entered into cell B7, and the
calendar
disappears. This works Fine. However, what I would like to be able to
set
up
is when the person clicks on November 11, the date of November gets
entered
into cell B7 AND the corresponding weekday (in this case, Tuesday) gets
automatically entered into the cell next to it, C7.
i.e. cell B7 returns the DATE
cell C7 retunrs the DAY of week
The calendar control is in column B - Range B7:B56









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
find free sharware to include calendar pop or use calendar in cell ednc Excel Discussion (Misc queries) 2 April 14th 08 05:05 PM
Modify Yearly Calendar to Monthly Calendar Excel 2000? James Cooper Excel Programming 13 July 13th 06 11:46 PM
Control disappeared problem - specifically, the Calendar Control JMMach[_2_] Excel Programming 0 December 16th 05 01:53 AM
Calendar Control: Can't exit design mode because control can't be created Rone Excel Programming 0 May 24th 04 04:01 PM
VBA- Calendar Control Click Event W Specific Select Case requirements Mark[_23_] Excel Programming 0 September 12th 03 06:24 PM


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

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"