Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default Weekending Function

Hello

I have a worksheet with 15000 lines and we have a date field. I now need to
work out the weekending date (Fridays)

so if the date is 07 Apr 09 the weekending date should read 10 Apr 09

Any help would be appreciated

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default Weekending Function

I've tried the following formula

=7-WEEKDAY(A1)+A1

but it also returns the time 01/01/09 00:00:00

how do I get it to return just the DATE and not the time as I need to pivot
on this set of data?

Many thanks

"Tracey" wrote:

Hello

I have a worksheet with 15000 lines and we have a date field. I now need to
work out the weekending date (Fridays)

so if the date is 07 Apr 09 the weekending date should read 10 Apr 09

Any help would be appreciated

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Weekending Function

It looks as if you have got just the date, as the time is showing as zero.
Just choose an appropriate format for the cell.

If A1 is non-integer you could change =7-WEEKDAY(A1)+A1 to
=7-WEEKDAY(A1)+INT(A1) or =INT(7-WEEKDAY(A1)+A1)
--
David Biddulph


"Tracey" wrote in message
...
I've tried the following formula

=7-WEEKDAY(A1)+A1

but it also returns the time 01/01/09 00:00:00

how do I get it to return just the DATE and not the time as I need to
pivot
on this set of data?

Many thanks

"Tracey" wrote:

Hello

I have a worksheet with 15000 lines and we have a date field. I now need
to
work out the weekending date (Fridays)

so if the date is 07 Apr 09 the weekending date should read 10 Apr 09

Any help would be appreciated

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Weekending Function

Hi,

Try

=A1-WEEKDAY(A1+1)+7

If it returns the time then change the format to date

Mike

"Tracey" wrote:

I've tried the following formula

=7-WEEKDAY(A1)+A1

but it also returns the time 01/01/09 00:00:00

how do I get it to return just the DATE and not the time as I need to pivot
on this set of data?

Many thanks

"Tracey" wrote:

Hello

I have a worksheet with 15000 lines and we have a date field. I now need to
work out the weekending date (Fridays)

so if the date is 07 Apr 09 the weekending date should read 10 Apr 09

Any help would be appreciated

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Weekending Function

=A1+(5-WEEKDAY(A1,2))
and format the result cell like "dd mm yy"

Regards,
Stefi

€˛Tracey€¯ ezt Ć*rta:

I've tried the following formula

=7-WEEKDAY(A1)+A1

but it also returns the time 01/01/09 00:00:00

how do I get it to return just the DATE and not the time as I need to pivot
on this set of data?

Many thanks

"Tracey" wrote:

Hello

I have a worksheet with 15000 lines and we have a date field. I now need to
work out the weekending date (Fridays)

so if the date is 07 Apr 09 the weekending date should read 10 Apr 09

Any help would be appreciated

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default Weekending Function

Thank you!

That is exactly what was needed! Greatly Appreciated!


"David Biddulph" wrote:

It looks as if you have got just the date, as the time is showing as zero.
Just choose an appropriate format for the cell.

If A1 is non-integer you could change =7-WEEKDAY(A1)+A1 to
=7-WEEKDAY(A1)+INT(A1) or =INT(7-WEEKDAY(A1)+A1)
--
David Biddulph


"Tracey" wrote in message
...
I've tried the following formula

=7-WEEKDAY(A1)+A1

but it also returns the time 01/01/09 00:00:00

how do I get it to return just the DATE and not the time as I need to
pivot
on this set of data?

Many thanks

"Tracey" wrote:

Hello

I have a worksheet with 15000 lines and we have a date field. I now need
to
work out the weekending date (Fridays)

so if the date is 07 Apr 09 the weekending date should read 10 Apr 09

Any help would be appreciated

Thanks




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
Weekending Saturday tze Excel Worksheet Functions 4 April 30th 08 02:25 PM
Weekending date issue mgkaam Excel Discussion (Misc queries) 1 January 31st 07 06:46 AM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Summing weekending dates Jim Excel Worksheet Functions 1 January 17th 06 02:42 AM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM


All times are GMT +1. The time now is 03:24 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"