Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AG
 
Posts: n/a
Default calculate day for day

I need a formula to calculate day for day for a 365 year. The only function
I can find in excel is days360.

For example: If I took a vacation from 1 mar 04 thru 10 mar 04 that would
be 10 days. Which I can do with SUM +1 but if the cells are blank I need the
amount of days to be zero (or blank) not 1.
  #2   Report Post  
 
Posts: n/a
Default

Hi
Try something like this:
=((C8-C7)+AND(C70,C80))*(AND(C70,C80))

--
Andy.


"AG" wrote in message
...
I need a formula to calculate day for day for a 365 year. The only
function
I can find in excel is days360.

For example: If I took a vacation from 1 mar 04 thru 10 mar 04 that would
be 10 days. Which I can do with SUM +1 but if the cells are blank I need
the
amount of days to be zero (or blank) not 1.



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

First of all, no need to use days360, it's an obscure function for accountants,
nor do you need sum, you can just subtract, i.e. A1 holds start date and B1
end date

=IF(OR(A1="",B1=""),0,B1-A1+1)

will take care of blank days as well

format as general

you might also want to look at the networkdays function, it is part of ATP
and comes with excel/office, it will count workdays only


Regards,

Peo Sjoblom



"AG" wrote:

I need a formula to calculate day for day for a 365 year. The only function
I can find in excel is days360.

For example: If I took a vacation from 1 mar 04 thru 10 mar 04 that would
be 10 days. Which I can do with SUM +1 but if the cells are blank I need the
amount of days to be zero (or blank) not 1.

  #4   Report Post  
AG
 
Posts: n/a
Default

Thanks!

"Peo Sjoblom" wrote:

First of all, no need to use days360, it's an obscure function for accountants,
nor do you need sum, you can just subtract, i.e. A1 holds start date and B1
end date

=IF(OR(A1="",B1=""),0,B1-A1+1)

will take care of blank days as well

format as general

you might also want to look at the networkdays function, it is part of ATP
and comes with excel/office, it will count workdays only


Regards,

Peo Sjoblom



"AG" wrote:

I need a formula to calculate day for day for a 365 year. The only function
I can find in excel is days360.

For example: If I took a vacation from 1 mar 04 thru 10 mar 04 that would
be 10 days. Which I can do with SUM +1 but if the cells are blank I need the
amount of days to be zero (or blank) not 1.

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
Calculate time Rao Ratan Singh Excel Discussion (Misc queries) 2 March 17th 05 02:28 PM
How can I calculate Vacation Time earned based on length of emplo. Kim Excel Discussion (Misc queries) 2 March 15th 05 08:04 PM
formula to calculate # of days between dates, excluding holidays abs2299 Excel Discussion (Misc queries) 8 March 3rd 05 02:21 AM
Not able to calculate. mark_kramarczyk Excel Worksheet Functions 1 December 29th 04 08:55 PM
How do you calculate the nth root of a number in Excel 2003? William Excel Worksheet Functions 2 November 17th 04 04:19 PM


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