Count of days between dates

S

Simon Lloyd

I've not looked at your links, if its a follow on from that thread then
you should post in that thread so people can follow it easy, that said,
take a look at Chip Pearsons site it is well explained with working
examples 'Dates And Times In Excel'
(http://www.cpearson.com/excel/datetime.htm)

Andy;308505 said:
Following on from here...
'Discussion Groups Home' (http://tinyurl.com/cskmr8)

I'm still struggling. I've uploaded a file here in anyone would be able
to
help further?

'Copy of NGH Ortho Ward Occupancy.xls' (http://tinyurl.com/cjpuxv)

Thanks in advance.


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
 
R

Roger Govier

Hi Andy

Your problem is the column. You are using Column(C2) as your staring test
value, which returns 3.
Sunday is day 1 with Weekday().
Change your start to Column(A2) and copy across and all works fine.
{=IF($F2="SAME DAY",0,
SUM(IF(WEEKDAY($C2-1+ROW(INDIRECT("1:"&TRUNC($F2-$C2)+1)))
=COLUMN(A2),1,0)))}
 
A

Andy

Roger, thank you so much. You cannot imagine how frustrating it was to get
sorted, but thanks
A
 

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

Top