Counting dates including the beginning date.

  • Thread starter Thread starter chapy354
  • Start date Start date
C

chapy354

I am trying to set up a formula to count days from start date to end date
including the start day. I have a total of 30 date sets that I need to track
and total. I have used =SUM(B3-A3)+1 and it accomplishes the task, but it
also adds 1 for every set regardless of the presence of dates in the cells. I
need it to only add what has been entered. Any help is greatly appreciated.
 
You don't need the SUM function to subtract two cell values SUM(B3-A3) is
the same as B3-A3.

As for you +1 problem, try this...

=IF(AND(A3<>"",B3<>""),B3-A3,"")

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top