I'm afraid that =Weeknum() isn't quite what he'd want in this case.
 
It would work as long as the "Future Date" is in the same year
as today().

But doesn't work if the year of the "future date" is not the current year.

=weeknum() gives the "week number" of the year in the date.

That is, if your week starts on a Sunday,
1/6/2012 is in the FIRST week of year 2012.
but 1/6/2013 is actually in the SECOND week of next year.
In which case, this formula would yield (-1) weeks.

Coincidentally, if your week starts on Monday,
then 1/6/2012 is in week #2
while 1/6/2013 is in week #1

So, using this formula:
=WEEKNUM(Future date,2)-WEEKNUM(today(),2)
 
to find the number of weeks from today (12/7/2012) 
and 1/6/2013,
would yield -49

I don't think this is what he's looking for.

Paul
-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-----------------------------------------




________________________________
From: ravinder negi <ravi_colw...@yahoo.com>
To: excel-macros@googlegroups.com
Sent: Fri, December 7, 2012 1:32:24 AM
Subject: Re: $$Excel-Macros$$ Formula to Calculate Weeks


Hi,


=WEEKNUM(Future date,2)-WEEKNUM(today(),2)
Weeknum gives number of week

you can change option (2) in formula as per your requirement, formula will 
prompt you when you enter formula.

If this works otherwise tell us more detail

--- On Thu, 12/6/12, t vinay <vinaytu...@gmail.com>wrote:


>From: t vinay <vinaytu...@gmail.com>
>Subject: $$Excel-Macros$$ Formula to Calculate Weeks
>To: excel-macros@googlegroups.com
>Date: Thursday, December 6, 2012, 8:48 PM
>
>
>Hi Team, 
>
>
>can you please help me with a formula to calculate the number of weeks from 
>today to a future date.
>
>
>
>
>
>-- 
>
>Regards,
>
>Vinay. T
>-- 
>Join official Facebook page of this forum @ 
>https://www.facebook.com/discussexcel
> 
>FORUM RULES
> 
>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
>quick attention or may not be answered.
>2) Don't post a question in the thread of another member.
>3) Don't post questions regarding breaking or bypassing any security measure.
>4) Acknowledge the responses you receive, good or bad.
>5) Jobs posting is not allowed.
>6) Sharing copyrighted material and their links is not allowed.
> 
>NOTE : Don't ever post confidential data in a workbook. Forum owners and 
>members 
>are not responsible for any loss.
>--- 
>You received this message because you are subscribed to the Google Groups "MS 
>EXCEL AND VBA MACROS" group.
>To post to this group, send email to excel-macros@googlegroups.com.
>To unsubscribe from this group, send email to 
>excel-macros+unsubscr...@googlegroups.com.
>Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> 
> 
> -- 
Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members 
are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.

-- 
Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.


Reply via email to