Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 313
Default Week Ended Friday

Hi

Could anyone help me that I am writing a formula the allow me to bring the
date onto week ended Friday, for example cell A1=3 Sep 07 (Monday) cell B1
(where the formula will be) wil show me a result 7 Sep 07 (Friday) and/or
A1=7 Sep 07 (Monday) cell B1 will also show me the result 7 Sep 07 (Friday).
I use vlookup on it doesn't work especailly the date on Friday. Please help.
Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Week Ended Friday

Give this formula a try...

=A1+6-WEEKDAY(A1)

Rick

Could anyone help me that I am writing a formula the allow me to bring the
date onto week ended Friday, for example cell A1=3 Sep 07 (Monday) cell B1
(where the formula will be) wil show me a result 7 Sep 07 (Friday) and/or
A1=7 Sep 07 (Monday) cell B1 will also show me the result 7 Sep 07
(Friday).
I use vlookup on it doesn't work especailly the date on Friday. Please
help.
Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 313
Default Week Ended Friday

Thank you so much Rick. It works perfectly





"Rick Rothstein (MVP - VB)" wrote:

Give this formula a try...

=A1+6-WEEKDAY(A1)

Rick

Could anyone help me that I am writing a formula the allow me to bring the
date onto week ended Friday, for example cell A1=3 Sep 07 (Monday) cell B1
(where the formula will be) wil show me a result 7 Sep 07 (Friday) and/or
A1=7 Sep 07 (Monday) cell B1 will also show me the result 7 Sep 07
(Friday).
I use vlookup on it doesn't work especailly the date on Friday. Please
help.
Thank you.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Week Ended Friday

On Thu, 20 Sep 2007 02:00:20 -0400, "Rick Rothstein \(MVP - VB\)"
wrote:

Give this formula a try...

=A1+6-WEEKDAY(A1)

Rick

Could anyone help me that I am writing a formula the allow me to bring the
date onto week ended Friday, for example cell A1=3 Sep 07 (Monday) cell B1
(where the formula will be) wil show me a result 7 Sep 07 (Friday) and/or
A1=7 Sep 07 (Monday) cell B1 will also show me the result 7 Sep 07
(Friday).
I use vlookup on it doesn't work especailly the date on Friday. Please
help.
Thank you.


I'm not sure if it's what the OP wants, but your formula:

Saturday, Sep 01, 2007 -- Friday, Aug 31, 2007

Whereas

=A1+7-WEEKDAY(A1-6)

Saturday, Sep 01, 2007 -- Friday, Sep 07, 2007



--ron
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Week Ended Friday

Give this formula a try...

=A1+6-WEEKDAY(A1)

Rick

Could anyone help me that I am writing a formula the allow me to bring
the
date onto week ended Friday, for example cell A1=3 Sep 07 (Monday) cell
B1
(where the formula will be) wil show me a result 7 Sep 07 (Friday)
and/or
A1=7 Sep 07 (Monday) cell B1 will also show me the result 7 Sep 07
(Friday).
I use vlookup on it doesn't work especailly the date on Friday. Please
help.
Thank you.


I'm not sure if it's what the OP wants, but your formula:

Saturday, Sep 01, 2007 -- Friday, Aug 31, 2007

Whereas

=A1+7-WEEKDAY(A1-6)

Saturday, Sep 01, 2007 -- Friday, Sep 07, 2007


That's a fair point. My impression when I first read the OP's post was that
his dates where weekdays only (no weekends), but that is only a gut-feeling.

Rick

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
Trial ended after 4-5 days donnalou50 New Users to Excel 0 April 18th 07 11:40 PM
Finding Friday in week number DavidS New Users to Excel 5 October 24th 06 10:04 AM
Need open ended cell for Sum range. Cris B. Excel Worksheet Functions 9 October 14th 05 04:52 PM
open ended multi page sum AlZee Excel Worksheet Functions 2 November 1st 04 10:53 PM
open ended multi page sum AlZee Excel Worksheet Functions 3 October 30th 04 11:30 PM


All times are GMT +1. The time now is 12:23 AM.

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"