PC Review


Reply
Thread Tools Rate Thread

Day calculator form Given Date

 
 
=?Utf-8?B?SGFyaXNo?=
Guest
Posts: n/a
 
      17th Jun 2007
Hi All

I need your little help here. I have one excel spreadsheet in which in
column A I enter the date and in column B I want some formula or VBA code to
tell me which Day it is.

For Example:
Column A Column B
01/04/2007 TUESDAY
12/05/2007 SATURDAY
30/05/2007 WEDNESDAY
16/06/2007 SATURDAY
19/07/2007 THURSDAY

Your help would be greatly appreciated.
Kind Regards
Harish









 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      17th Jun 2007
In B1 put in
=A1
then select the cell and do Format=>Cell=>select the number tab. Select
custom and put in a format like dddd

or just format the original cell with a custom number format

mm/dd/yyyy dddd

--
Regards,
Tom Ogilvy


"Harish" wrote:

> Hi All
>
> I need your little help here. I have one excel spreadsheet in which in
> column A I enter the date and in column B I want some formula or VBA code to
> tell me which Day it is.
>
> For Example:
> Column A Column B
> 01/04/2007 TUESDAY
> 12/05/2007 SATURDAY
> 30/05/2007 WEDNESDAY
> 16/06/2007 SATURDAY
> 19/07/2007 THURSDAY
>
> Your help would be greatly appreciated.
> Kind Regards
> Harish
>
>
>
>
>
>
>
>
>

 
Reply With Quote
 
=?Utf-8?B?SGFyaXNo?=
Guest
Posts: n/a
 
      17th Jun 2007
Thnaks for your quick reply TOM.
This is exactly I want.Is that possible to do this using VBA code?

Kind Regards
Harish

"Tom Ogilvy" wrote:

> In B1 put in
> =A1
> then select the cell and do Format=>Cell=>select the number tab. Select
> custom and put in a format like dddd
>
> or just format the original cell with a custom number format
>
> mm/dd/yyyy dddd
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Harish" wrote:
>
> > Hi All
> >
> > I need your little help here. I have one excel spreadsheet in which in
> > column A I enter the date and in column B I want some formula or VBA code to
> > tell me which Day it is.
> >
> > For Example:
> > Column A Column B
> > 01/04/2007 TUESDAY
> > 12/05/2007 SATURDAY
> > 30/05/2007 WEDNESDAY
> > 16/06/2007 SATURDAY
> > 19/07/2007 THURSDAY
> >
> > Your help would be greatly appreciated.
> > Kind Regards
> > Harish
> >
> >
> >
> >
> >
> >
> >
> >
> >

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      17th Jun 2007
Assume you select the cells in column A

With Selection.offset(0,1)
.Formula = "=" & selection(1).Address(0,0)
.Numberformat = "dddd"
End With

for a single cell

With ActiveCell.offset(0,1)
.Formula = "=" & ActiveCell.Address(0,0)
.Numberformat = "dddd"
End With

--
Regards,
Tom Ogilvy



"Harish" wrote:

> Thnaks for your quick reply TOM.
> This is exactly I want.Is that possible to do this using VBA code?
>
> Kind Regards
> Harish
>
> "Tom Ogilvy" wrote:
>
> > In B1 put in
> > =A1
> > then select the cell and do Format=>Cell=>select the number tab. Select
> > custom and put in a format like dddd
> >
> > or just format the original cell with a custom number format
> >
> > mm/dd/yyyy dddd
> >
> > --
> > Regards,
> > Tom Ogilvy
> >
> >
> > "Harish" wrote:
> >
> > > Hi All
> > >
> > > I need your little help here. I have one excel spreadsheet in which in
> > > column A I enter the date and in column B I want some formula or VBA code to
> > > tell me which Day it is.
> > >
> > > For Example:
> > > Column A Column B
> > > 01/04/2007 TUESDAY
> > > 12/05/2007 SATURDAY
> > > 30/05/2007 WEDNESDAY
> > > 16/06/2007 SATURDAY
> > > 19/07/2007 THURSDAY
> > >
> > > Your help would be greatly appreciated.
> > > Kind Regards
> > > Harish
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >

 
Reply With Quote
 
=?Utf-8?B?SGFyaXNo?=
Guest
Posts: n/a
 
      17th Jun 2007
Thanks Tom.

It is working fine.


"Tom Ogilvy" wrote:

> Assume you select the cells in column A
>
> With Selection.offset(0,1)
> .Formula = "=" & selection(1).Address(0,0)
> .Numberformat = "dddd"
> End With
>
> for a single cell
>
> With ActiveCell.offset(0,1)
> .Formula = "=" & ActiveCell.Address(0,0)
> .Numberformat = "dddd"
> End With
>
> --
> Regards,
> Tom Ogilvy
>
>
>
> "Harish" wrote:
>
> > Thnaks for your quick reply TOM.
> > This is exactly I want.Is that possible to do this using VBA code?
> >
> > Kind Regards
> > Harish
> >
> > "Tom Ogilvy" wrote:
> >
> > > In B1 put in
> > > =A1
> > > then select the cell and do Format=>Cell=>select the number tab. Select
> > > custom and put in a format like dddd
> > >
> > > or just format the original cell with a custom number format
> > >
> > > mm/dd/yyyy dddd
> > >
> > > --
> > > Regards,
> > > Tom Ogilvy
> > >
> > >
> > > "Harish" wrote:
> > >
> > > > Hi All
> > > >
> > > > I need your little help here. I have one excel spreadsheet in which in
> > > > column A I enter the date and in column B I want some formula or VBA code to
> > > > tell me which Day it is.
> > > >
> > > > For Example:
> > > > Column A Column B
> > > > 01/04/2007 TUESDAY
> > > > 12/05/2007 SATURDAY
> > > > 30/05/2007 WEDNESDAY
> > > > 16/06/2007 SATURDAY
> > > > 19/07/2007 THURSDAY
> > > >
> > > > Your help would be greatly appreciated.
> > > > Kind Regards
> > > > Harish
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      17th Jun 2007
Another option is to just use one cell and format it so that you see both the
date and the day of week:

Select column A
format|Cells|Number tab|custom category
dd/mm/yyyy dddd



Harish wrote:
>
> Hi All
>
> I need your little help here. I have one excel spreadsheet in which in
> column A I enter the date and in column B I want some formula or VBA code to
> tell me which Day it is.
>
> For Example:
> Column A Column B
> 01/04/2007 TUESDAY
> 12/05/2007 SATURDAY
> 30/05/2007 WEDNESDAY
> 16/06/2007 SATURDAY
> 19/07/2007 THURSDAY
>
> Your help would be greatly appreciated.
> Kind Regards
> Harish


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date calculator? BGM Microsoft Outlook Calendar 1 23rd Apr 2009 09:23 PM
Date Calculator Olduke Microsoft Access Form Coding 5 6th Feb 2008 10:22 PM
Re: Is there a calendar/date calculator form available? Ron2006 Microsoft Access Forms 0 1st Dec 2006 02:16 PM
REQ : Date Calculator WebWalker Freeware 4 19th Nov 2003 06:28 PM
Re: Date Calculator Bruce M. Thompson Microsoft Access Database Table Design 0 30th Sep 2003 10:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:02 AM.