Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2007

Tip: Looking for answers? Try searching our database.

calculate in a yet unknown range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fanny - 09 Feb 2007 20:03 GMT
Hi,
I want to calculate weeks based on days. Days are in column H, weeks should
come in column I, a so far empty column. I don't know the amount of rows in
H (days). I put in a macro Worksheets("sheet1").Activate,
ActiveCell.CurrentRegion.Select, because if want for each activated
worksheet the same lay-out (bounders). But this doesn't work for formula's.
So, it should be a formula which says something like: as long as the value
in whatever cell in column H (to begin with H,2) is equal to or greater than
0, tell me this value in weeks (days/7) for the cell in column I in the
corresponding row.
Anybody who can help me??

Fanny
tristan.huxley@prox-e-mics.eu - 13 Feb 2007 12:29 GMT
Hi Fanny,

I am going to attempt to answer this for you, but am not really sure
of what you are asking for... So I am making the assumption, that you
have a date in cell H2!

So I would suspect that you would want something like

=IF(H2>0,DAY(H2),0)

The DAY() function will only show the day of the month, so if the date
was 10/02/07, it would say the DAY() as 10... If it happens to be the
difference from another date, you would simply have it as =IF(H2>0,H2-
[Other Cell Referene],0)

If this is not what you are after, please feel free to contact me

Good Luck!

> Hi,
> I want to calculate weeks based on days. Days are in column H, weeks should
[quoted text clipped - 9 lines]
>
> Fanny
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.