#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default friday date

when iam in week mon-fri , teh date in a cell say J1 should show that week's
friday date . for eg., when im in anyday between 18 and 22, that paticular
cell shud show 22 -Feb-08 and when im anywhere bertween 25 and 29 it should
show 29-Feb-08.
ithat cell shud automatically pick friday adte based on the date which we r
in now.
could u pls help. im doing this for automation purpose..
is VBA req or wat can be done
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default friday date

Try this:

=TODAY()-WEEKDAY(TODAY(),3)+4

--
Biff
Microsoft Excel MVP


"deepika :excel help" wrote in
message ...
when iam in week mon-fri , teh date in a cell say J1 should show that
week's
friday date . for eg., when im in anyday between 18 and 22, that
paticular
cell shud show 22 -Feb-08 and when im anywhere bertween 25 and 29 it
should
show 29-Feb-08.
ithat cell shud automatically pick friday adte based on the date which we
r
in now.
could u pls help. im doing this for automation purpose..
is VBA req or wat can be done



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default friday date

i tried it worked for weekdays yes.
when im on a saturday say(16 th feb) it has to show 22nd feb (friday) but it
shows the prev friday(15 feb)..
any day after a friday it shud show the next friday.
Also is it meaningful to havea code for this inside a macro.. teh reason is
taht whenever i open that cell should giveme friday date

"deepika :excel help" wrote:

when iam in week mon-fri , teh date in a cell say J1 should show that week's
friday date . for eg., when im in anyday between 18 and 22, that paticular
cell shud show 22 -Feb-08 and when im anywhere bertween 25 and 29 it should
show 29-Feb-08.
ithat cell shud automatically pick friday adte based on the date which we r
in now.
could u pls help. im doing this for automation purpose..
is VBA req or wat can be done

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default friday date

"deepika :excel help" wrote in
when iam in week mon-fri , teh date in a cell say J1 should show that
week's friday date . for eg., when im in *anyday between 18 and 22, that
paticular cell shud show 22 -Feb-08 *and when im anywhere bertween 25 and 29 it
should show 29-Feb-08.
ithat cell shud automatically pick friday adte based on the date which we
r in now.


With the weekday date in H1, put this in J1 =H1+(6-WEEKDAY(H1))
It will add the number of days til friday to the date in H1.

Here is the results for the week of February 18th, 2008

Date Fridays date
Sun Feb-17 Fri Feb-22
Mon Feb-18 Fri Feb-22
Tue Feb-19 Fri Feb-22
Wed Feb-20 Fri Feb-22
Thu Feb-21 Fri Feb-22
Fri Feb-22 Fri Feb-22
Sat Feb-23 Fri Feb-22
Sun Feb-24 Fri Feb-29
  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default friday date

On Mon, 18 Feb 2008 05:58:03 -0800, deepika :excel help
wrote:

i tried it worked for weekdays yes.
when im on a saturday say(16 th feb) it has to show 22nd feb (friday) but it
shows the prev friday(15 feb)..
any day after a friday it shud show the next friday.
Also is it meaningful to havea code for this inside a macro.. teh reason is
taht whenever i open that cell should giveme friday date



=A1+7-(WEEKDAY(A1+1))

or substitute TODAY() for A1 in the formula.


--ron
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
How do I calculate the friday before a date? Renee Excel Discussion (Misc queries) 4 April 4th 23 12:37 PM
Friday date of next week.. deepika :excel help[_2_] Excel Discussion (Misc queries) 3 February 13th 08 01:20 PM
How do I get the date for the 2nd friday of each month? dustin Excel Worksheet Functions 8 November 8th 06 10:46 PM
the date always friday Richard New Users to Excel 3 November 28th 05 06:15 AM
date of last friday of previous month tkaplan Excel Discussion (Misc queries) 7 November 14th 05 06:05 PM


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