#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default 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))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default 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))



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMPRODUCT/HLOOKUP Query luvthavodka Excel Discussion (Misc queries) 6 July 15th 06 06:58 PM
SUMPRODUCT Query penri0_0 Excel Discussion (Misc queries) 7 June 7th 06 12:22 PM
Sumproduct Query shakey1181 Excel Discussion (Misc queries) 6 June 7th 06 11:56 AM
I think its a sumproduct query? Scoosh Excel Discussion (Misc queries) 0 September 8th 05 12:45 AM
SUMPRODUCT(-- Query for Tom Oglivy or others...... marika1981 Excel Discussion (Misc queries) 4 February 21st 05 07:33 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"