WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Fill Mon-Wed-Fri dates?

 
   Home -> Office -> Worksheet Functions RSS
Next:  YTD Average Formula to continue on new worksheet  
Author Message
LynneCreek

External


Since: Aug 05, 2008
Posts: 3



(Msg. 1) Posted: Tue Aug 05, 2008 10:14 pm
Post subject: Fill Mon-Wed-Fri dates?
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

I'm a college instructor and would REALLY like to find a way to automatically
fill the dates for MWF classes or for T-Th classes. So far all I can get
excel to do is either weekdays or every-other day. Any suggestions would be
helpful!
Back to top
Login to vote
John C

External


Since: Jun 25, 2008
Posts: 1282



(Msg. 2) Posted: Tue Aug 05, 2008 10:28 pm
Post subject: RE: Fill Mon-Wed-Fri dates? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

down and dirty
A2: 8/4/08 (or some other day that is definitely Mon, Wed, or Fri)
A3: =A2+2*OR(WEEKDAY(A2)=2,WEEKDAY(A2)=4)+3*(WEEKDAY(A2)=6)
Copy A3 down as needed.

or, for Tue / Thu
A2: 8/5/08 (or some other day that is definitely Tue or Thu)
A3: =D2+2*(WEEKDAY(D2)=3)+5*(WEEKDAY(D2)=5)

Hope this helps.
--
John C


"LynneCreek" wrote:

> I'm a college instructor and would REALLY like to find a way to automatically
> fill the dates for MWF classes or for T-Th classes. So far all I can get
> excel to do is either weekdays or every-other day. Any suggestions would be
> helpful!
Back to top
Login to vote
LynneCreek

External


Since: Aug 05, 2008
Posts: 3



(Msg. 3) Posted: Tue Aug 05, 2008 11:15 pm
Post subject: RE: Fill Mon-Wed-Fri dates? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

THANK YOU! This was VERY clever - I use Excel on a regular basis, however, I
learned something new today - I did not know that a function {such as OR in
this case} could be used as you have done - VERY cool! And this works like a
charm - whew! Much appreciated - Thanks again!

"John C" wrote:

> down and dirty
> A2: 8/4/08 (or some other day that is definitely Mon, Wed, or Fri)
> A3: =A2+2*OR(WEEKDAY(A2)=2,WEEKDAY(A2)=4)+3*(WEEKDAY(A2)=6)
> Copy A3 down as needed.
>
> or, for Tue / Thu
> A2: 8/5/08 (or some other day that is definitely Tue or Thu)
> A3: =D2+2*(WEEKDAY(D2)=3)+5*(WEEKDAY(D2)=5)
>
> Hope this helps.
> --
> John C
>
>
> "LynneCreek" wrote:
>
> > I'm a college instructor and would REALLY like to find a way to automatically
> > fill the dates for MWF classes or for T-Th classes. So far all I can get
> > excel to do is either weekdays or every-other day. Any suggestions would be
> > helpful!
Back to top
Login to vote
T. Valko

External


Since: Nov 24, 2006
Posts: 9072



(Msg. 4) Posted: Wed Aug 06, 2008 2:05 am
Post subject: Re: Fill Mon-Wed-Fri dates? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try these...

Enter the first date in a cell. This date must be a weekday in the sequence.

For M-W-F

A1 = 8/6/2008 (which is a Wednesday)

Enter this formula in A2 and copy down as needed:

=A1+LOOKUP(WEEKDAY(A1),{0,2,6},{2,2,3})

For T-Th

A1 = 8/7/2008 (which is a Thursday):

Enter this formula in A2 and copy down as needed:

=A1+LOOKUP(WEEKDAY(A1),{0,5},{2,5})


--
Biff
Microsoft Excel MVP


"LynneCreek" <LynneCreek.TakeThisOut@discussions.microsoft.com> wrote in message
news:34E11BC6-1544-4B79-A83D-1E0C0EED1A1B@microsoft.com...
> I'm a college instructor and would REALLY like to find a way to
> automatically
> fill the dates for MWF classes or for T-Th classes. So far all I can get
> excel to do is either weekdays or every-other day. Any suggestions would
> be
> helpful!
Back to top
Login to vote
LynneCreek

External


Since: Aug 05, 2008
Posts: 3



(Msg. 5) Posted: Wed Aug 06, 2008 2:05 am
Post subject: Re: Fill Mon-Wed-Fri dates? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

THANK YOU! Another very clever fix - I definitely did not think about using
a Lookup function this way - I've learned something ELSE new today! Wahoo!
This also works just GREAT!

Again - my sincere thanks Smile


"T. Valko" wrote:

> Try these...
>
> Enter the first date in a cell. This date must be a weekday in the sequence.
>
> For M-W-F
>
> A1 = 8/6/2008 (which is a Wednesday)
>
> Enter this formula in A2 and copy down as needed:
>
> =A1+LOOKUP(WEEKDAY(A1),{0,2,6},{2,2,3})
>
> For T-Th
>
> A1 = 8/7/2008 (which is a Thursday):
>
> Enter this formula in A2 and copy down as needed:
>
> =A1+LOOKUP(WEEKDAY(A1),{0,5},{2,5})
>
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "LynneCreek" <LynneCreek RemoveThis @discussions.microsoft.com> wrote in message
> news:34E11BC6-1544-4B79-A83D-1E0C0EED1A1B@microsoft.com...
> > I'm a college instructor and would REALLY like to find a way to
> > automatically
> > fill the dates for MWF classes or for T-Th classes. So far all I can get
> > excel to do is either weekdays or every-other day. Any suggestions would
> > be
> > helpful!
>
>
>
Back to top
Login to vote
T. Valko

External


Since: Nov 24, 2006
Posts: 9072



(Msg. 6) Posted: Wed Aug 06, 2008 2:31 am
Post subject: Re: Fill Mon-Wed-Fri dates? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"LynneCreek" <LynneCreek RemoveThis @discussions.microsoft.com> wrote in message
news:BD53D9B4-6982-4D59-A5D5-0A234198F2DC@microsoft.com...
> THANK YOU! Another very clever fix - I definitely did not think about
> using
> a Lookup function this way - I've learned something ELSE new today!
> Wahoo!
> This also works just GREAT!
>
> Again - my sincere thanks Smile
>
>
> "T. Valko" wrote:
>
>> Try these...
>>
>> Enter the first date in a cell. This date must be a weekday in the
>> sequence.
>>
>> For M-W-F
>>
>> A1 = 8/6/2008 (which is a Wednesday)
>>
>> Enter this formula in A2 and copy down as needed:
>>
>> =A1+LOOKUP(WEEKDAY(A1),{0,2,6},{2,2,3})
>>
>> For T-Th
>>
>> A1 = 8/7/2008 (which is a Thursday):
>>
>> Enter this formula in A2 and copy down as needed:
>>
>> =A1+LOOKUP(WEEKDAY(A1),{0,5},{2,5})
>>
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "LynneCreek" <LynneCreek RemoveThis @discussions.microsoft.com> wrote in message
>> news:34E11BC6-1544-4B79-A83D-1E0C0EED1A1B@microsoft.com...
>> > I'm a college instructor and would REALLY like to find a way to
>> > automatically
>> > fill the dates for MWF classes or for T-Th classes. So far all I can
>> > get
>> > excel to do is either weekdays or every-other day. Any suggestions
>> > would
>> > be
>> > helpful!
>>
>>
>>
Back to top
Login to vote
Dana DeLouis

External


Since: Feb 02, 2006
Posts: 465



(Msg. 7) Posted: Fri Aug 08, 2008 11:00 pm
Post subject: Re: Fill Mon-Wed-Fri dates? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

SGkuICBKdXN0IGFub3RoZXIgb3B0aW9uLg0KDQpJZiBBMSBoYXMgYSBNLFcsIG9yIEYgZGF0ZSwg
dGhlbiBwZXJoYXBzLi4uDQo9QTErTU9EKDE3LFdFRUtEQVkoQTEpKzEpDQoNCklmIEExIGhhcyBh
IFR1ZXMsIG9yIFRodXIgZGF0ZS4uLg0KPUExK01PRCgxMixXRUVLREFZKEExKSsyKQ0KDQotLSAN
CkhUSCAgOj4pDQpEYW5hIERlTG91aXMNCg0KDQoiTHlubmVDcmVlayIgPEx5bm5lQ3JlZWtAZGlz
Y3Vzc2lvbnMubWljcm9zb2Z0LmNvbT4gd3JvdGUgaW4gbWVzc2FnZSBuZXdzOjM0RTExQkM2LTE1
NDQtNEI3OS1BODNELTFFMEMwRUVEMUExQkBtaWNyb3NvZnQuY29tLi4uDQo+IEknbSBhIGNvbGxl
Z2UgaW5zdHJ1Y3RvciBhbmQgd291bGQgUkVBTExZIGxpa2UgdG8gZmluZCBhIHdheSB0byBhdXRv
bWF0aWNhbGx5IA0KPiBmaWxsIHRoZSBkYXRlcyBmb3IgTVdGIGNsYXNzZXMgb3IgZm9yIFQtVGgg
Y2xhc3Nlcy4gIFNvIGZhciBhbGwgSSBjYW4gZ2V0IA0KPiBleGNlbCB0byBkbyBpcyBlaXRoZXIg
d2Vla2RheXMgb3IgZXZlcnktb3RoZXIgZGF5LiAgQW55IHN1Z2dlc3Rpb25zIHdvdWxkIGJlIA0K
PiBoZWxwZnVsIQ==
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET