View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Problem with SUMPRODUCT....help please!

The ranges have to be the same size

=SUMPRODUCT(('[DAILY ADMITS WORKSHEET.xls]dly wrksht'!$D$2:$D$136=B3)*
('[DAILY ADMITS WORKSHEET.xls]dly wrksht'!$B$2:$B$136=D2))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Tasha" wrote in message
...
I am having trouble getting a count from a worksheet with multiple
criteria.
Can someone look at this and see what I am doing wrong?

I have two worksheets, [DAILY ADMITS WORKSHEET.xls].[dly wrksht] is the
daily worksheet that changes every day, [PHYS_STATS_MTD] is the one I am
putting the calculation into for each day of the month. In
[PHYS_STATS_MTD],
column B lists the PHYNO down(starting in cell B3) and column D lists the
date of the month across starting with cell D2, however is only the number
of
the month. Formated to only show 'd'. Date is also set up that way in
the
Daily Admits worksheet. I am trying to get a count of all physicians that
had admits for that day. It keeps giving me a 0.

=SUMPRODUCT(('[DAILY ADMITS WORKSHEET.xls]dly wrksht'!$D$136=B3)*('[DAILY
ADMITS WORKSHEET.xls]dly wrksht'!$B$2:$B$136=D2))