Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ann ann is offline
external usenet poster
 
Posts: 210
Default Date function - need help

Hello -

I have a column that has a date in it and I would like to create a function
that will display the following Wednesday's date in the next column.

Is this possible? If so, can someone please tell me how to write the
function?

Thanks in advance. Any help is greatly appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Date function - need help

If your dates are in column A, try this in B1 and copy down:

=IF(WEEKDAY(A6,1)<4,4-WEEKDAY(A6,1)+A6,IF(WEEKDAY(A6,1)=4,7+A6,11-WEEKDAY(A6,1)+A6))

HTH,
Jim

"Ann" wrote:

Hello -

I have a column that has a date in it and I would like to create a function
that will display the following Wednesday's date in the next column.

Is this possible? If so, can someone please tell me how to write the
function?

Thanks in advance. Any help is greatly appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Date function - need help

With dates in column A:

=A1+CHOOSE(WEEKDAY(A1),3,2,1,7,6,5,4,3,2,1)
--
Gary''s Student - gsnu2007f


"Ann" wrote:

Hello -

I have a column that has a date in it and I would like to create a function
that will display the following Wednesday's date in the next column.

Is this possible? If so, can someone please tell me how to write the
function?

Thanks in advance. Any help is greatly appreciated!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Date function - need help

=A1+MOD(11-WEEKDAY(A1),7)
I have assumed that if the date is a Wednesday you will show that date, not
a week hence?
--
David Biddulph

"Ann" wrote in message
...
Hello -

I have a column that has a date in it and I would like to create a
function
that will display the following Wednesday's date in the next column.

Is this possible? If so, can someone please tell me how to write the
function?

Thanks in advance. Any help is greatly appreciated!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Date function - need help

On Mon, 10 Mar 2008 15:38:01 -0700, Ann wrote:

Hello -

I have a column that has a date in it and I would like to create a function
that will display the following Wednesday's date in the next column.

Is this possible? If so, can someone please tell me how to write the
function?

Thanks in advance. Any help is greatly appreciated!


=A1+8-WEEKDAY(A1+4)

--ron


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Date function - need help

On Mon, 10 Mar 2008 23:05:44 -0000, "David Biddulph" <groups [at]
biddulph.org.uk wrote:

=A1+MOD(11-WEEKDAY(A1),7)
I have assumed that if the date is a Wednesday you will show that date, not
a week hence?
--
David Biddulph


WEEKDAY already does a MOD(n,7) function.

So if you make that assumption about NOT advancing a week if the date is a
Wednesday, simpler would be:

=A1+7-WEEKDAY(A1-4)

--ron
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Date function - need help

Yes, that makes sense. I thought there must be an easier way. :-)
--
David Biddulph

"Ron Rosenfeld" wrote in message
...

WEEKDAY already does a MOD(n,7) function.

So if you make that assumption about NOT advancing a week if the date is a
Wednesday, simpler would be:

=A1+7-WEEKDAY(A1-4)


On Mon, 10 Mar 2008 23:05:44 -0000, "David Biddulph" <groups [at]
biddulph.org.uk wrote:

=A1+MOD(11-WEEKDAY(A1),7)
I have assumed that if the date is a Wednesday you will show that date,
not
a week hence?
--
David Biddulph



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pai pai is offline
external usenet poster
 
Posts: 13
Default Date function - need help

On Mar 11, 3:38 am, Ann wrote:
Hello -

I have a column that has a date in it and I would like to create a function
that will display the following Wednesday's date in the next column.

Is this possible? If so, can someone please tell me how to write the
function?

Thanks in advance. Any help is greatly appreciated!


I am not sure what u want let take this example

A1 =11/march/2008 and if you want Tuesday in B1

Then The formula is =A1

Select the column
Go to Format
Then Cells
Numbers
Customs
Type DDD

Then Ok

Hopefully this will help You

Cheers
Hardeep Kanwar
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
Date function in ACCRINTM requires date format not available Pev Excel Worksheet Functions 4 October 13th 07 12:20 PM
MAX figure within a date range as a function of today()'s date irvine79 Excel Worksheet Functions 6 February 20th 07 03:28 PM
SUMIF within date range as a function of today()'s date irvine79 Excel Worksheet Functions 8 August 6th 06 05:55 PM
Date Function formula that will return the date of a specific week Greg Excel Worksheet Functions 4 June 12th 06 05:07 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM


All times are GMT +1. The time now is 07:50 PM.

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

About Us

"It's about Microsoft Excel"