View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
barry houdini[_4_] barry houdini[_4_] is offline
external usenet poster
 
Posts: 57
Default calculate number of days

Sorry, it needs a -1 too, i.e.

=MAX(0,MIN(C2,D$1)-MAX(B2-1,D$1-DAY(D$1)))