ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   SUMPRODUCT IF query (https://www.excelbanter.com/excel-discussion-misc-queries/133543-sumproduct-if-query.html)

sdg8481

SUMPRODUCT IF query
 
Hi,

I've been tring to add an extra IF statement into the following query but
can't figure out how, what i want is for a count to be returned if cell A2 on
sheet2 is the same as sheet1 where the M colunm in Sheet 1 = "on Time", but
also where the N column on sheet1 = "EXEMPT".

=SUMPRODUCT(--(Sheet1!M2:M11="On Time"),--(Sheet1!F2:F11=Sheet2!A2))

Don Guillett

SUMPRODUCT IF query
 
try
=SUMPRODUCT(--(Sheet1!M2:M11="On Time"),--(Sheet1!F2:F11=Sheet2!A2))
=SUMPRODUCT(--(Sheet1!M2:M11="On Time"),--(sheet1!n2:n11="on
time"),--(Sheet1!F2:F11=Sheet2!A2))
--
Don Guillett
SalesAid Software

"sdg8481" wrote in message
...
Hi,

I've been tring to add an extra IF statement into the following query but
can't figure out how, what i want is for a count to be returned if cell A2
on
sheet2 is the same as sheet1 where the M colunm in Sheet 1 = "on Time",
but
also where the N column on sheet1 = "EXEMPT".

=SUMPRODUCT(--(Sheet1!M2:M11="On Time"),--(Sheet1!F2:F11=Sheet2!A2))





All times are GMT +1. The time now is 01:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com