Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
|| cypher ||
 
Posts: n/a
Default SUMIF or SUMPRODUCT or something else?

I would like to return the total amount of commission received per quarter
for different types of transactions. LISTINGS, SALES, REFERRALS, COMBOS

Column 1 has the date of the transaction
Column 2 has the TYPE
Column 3 has the commission amount

What I like to do is return the total commission per quarter, per type.
Hence I am looking for a formula that would evaluate A1:A100 for a date
between 1/1 and 3/31 *AND* B1:B100 for TYPES equal to LISTINGS, and then
total all corresponding dollar amounts in Column C for the rows where column
A & B meet the requirements

1/1 LIST 10,000
3/3 SALE 25,000
3/29 LIST 4,000
4/13 LIST 13,000
5/22 LIST 7,000
7/8 LIST 4,000

So in the example above, 1st QTR LIST TOTAL should return 14,000.

I really don't know how to accomplish this and would appreciate any
guidance.

Thanks!

-cypher


  #2   Report Post  
Domenic
 
Posts: n/a
Default


=SUMPRODUCT(--(A1:A6="1/1/2004"+0),--(A1:A6<="3/31/2004"+0),--(B1:B6="List"),C1:C6)

OR

=SUMPRODUCT(--(A1:A6=D1),--(A1:A6<=E1),--(B1:B6=F1),C1:C6)

...where D1 is the start date, E1 the end date, and F1 the "Type" of
interest.

Hope this helps!


--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=276136

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

When embedding a date, I would suggest using

=SUMPRODUCT(--(A1:A6=--"2004/01/01"),--(A1:A6<=--"2004/03/31"),--(B1:B6="Li
st"),C1:C6)

it uses a more standard date format, and avoids any confusion with US and
European dates.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Domenic" wrote in message
...


=SUMPRODUCT(--(A1:A6="1/1/2004"+0),--(A1:A6<="3/31/2004"+0),--(B1:B6="List"
),C1:C6)

OR

=SUMPRODUCT(--(A1:A6=D1),--(A1:A6<=E1),--(B1:B6=F1),C1:C6)

..where D1 is the start date, E1 the end date, and F1 the "Type" of
interest.

Hope this helps!


--
Domenic
------------------------------------------------------------------------
Domenic's Profile:

http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=276136



  #4   Report Post  
Domenic
 
Posts: n/a
Default


Thanks Bob! I appreciate the advice! And yes, it can be confusing at
times. :)

Cheers mate!

Bob Phillips Wrote:
When embedding a date, I would suggest using

=SUMPRODUCT(--(A1:A6=--"2004/01/01"),--(A1:A6<=--"2004/03/31"),--(B1:B6="Li
st"),C1:C6)

it uses a more standard date format, and avoids any confusion with US
and
European dates.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Domenic" wrote in message
...


=SUMPRODUCT(--(A1:A6="1/1/2004"+0),--(A1:A6<="3/31/2004"+0),--(B1:B6="List"
),C1:C6)

OR

=SUMPRODUCT(--(A1:A6=D1),--(A1:A6<=E1),--(B1:B6=F1),C1:C6)

..where D1 is the start date, E1 the end date, and F1 the "Type" of
interest.

Hope this helps!


--
Domenic

------------------------------------------------------------------------
Domenic's Profile:

http://www.excelforum.com/member.php...o&userid=10785
View this thread:

http://www.excelforum.com/showthread...hreadid=276136



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=276136

  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Won't work for Scandinavian dates though, may I suggest

=SUMPRODUCT(--(A1:A6=DATE(2004,1,1)),--(A1:A6<=DATE(2004,3,31)),--(B1:B6="List"),C1:C6)

this way all the functions will be translated into local versions and work

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Domenic" wrote in message
...

Thanks Bob! I appreciate the advice! And yes, it can be confusing at
times. :)

Cheers mate!

Bob Phillips Wrote:
When embedding a date, I would suggest using

=SUMPRODUCT(--(A1:A6=--"2004/01/01"),--(A1:A6<=--"2004/03/31"),--(B1:B6="Li
st"),C1:C6)

it uses a more standard date format, and avoids any confusion with US
and
European dates.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Domenic" wrote in message
...


=SUMPRODUCT(--(A1:A6="1/1/2004"+0),--(A1:A6<="3/31/2004"+0),--(B1:B6="List"
),C1:C6)

OR

=SUMPRODUCT(--(A1:A6=D1),--(A1:A6<=E1),--(B1:B6=F1),C1:C6)

..where D1 is the start date, E1 the end date, and F1 the "Type" of
interest.

Hope this helps!


--
Domenic

------------------------------------------------------------------------
Domenic's Profile:

http://www.excelforum.com/member.php...o&userid=10785
View this thread:

http://www.excelforum.com/showthread...hreadid=276136



--
Domenic
------------------------------------------------------------------------
Domenic's Profile:
http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=276136





  #6   Report Post  
Domenic
 
Posts: n/a
Default


Peo Sjoblom Wrote:
Won't work for Scandinavian dates though, may I suggest

=SUMPRODUCT(--(A1:A6=DATE(2004,1,1)),--(A1:A6<=DATE(2004,3,31)),--(B1:B6="List"),C1:C6)

this way all the functions will be translated into local versions and
work


That's great! Thanks Peo!


--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=276136

  #7   Report Post  
Bob Phillips
 
Posts: n/a
Default

Why not Peo?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Peo Sjoblom" wrote in message
...
Won't work for Scandinavian dates though, may I suggest


=SUMPRODUCT(--(A1:A6=DATE(2004,1,1)),--(A1:A6<=DATE(2004,3,31)),--(B1:B6="L
ist"),C1:C6)

this way all the functions will be translated into local versions and work

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Domenic" wrote in message
...

Thanks Bob! I appreciate the advice! And yes, it can be confusing at
times. :)

Cheers mate!

Bob Phillips Wrote:
When embedding a date, I would suggest using


=SUMPRODUCT(--(A1:A6=--"2004/01/01"),--(A1:A6<=--"2004/03/31"),--(B1:B6="Li
st"),C1:C6)

it uses a more standard date format, and avoids any confusion with US
and
European dates.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Domenic" wrote in message
...



=SUMPRODUCT(--(A1:A6="1/1/2004"+0),--(A1:A6<="3/31/2004"+0),--(B1:B6="List"
),C1:C6)

OR

=SUMPRODUCT(--(A1:A6=D1),--(A1:A6<=E1),--(B1:B6=F1),C1:C6)

..where D1 is the start date, E1 the end date, and F1 the "Type" of
interest.

Hope this helps!


--
Domenic


------------------------------------------------------------------------
Domenic's Profile:
http://www.excelforum.com/member.php...o&userid=10785
View this thread:
http://www.excelforum.com/showthread...hreadid=276136



--
Domenic
------------------------------------------------------------------------
Domenic's Profile:
http://www.excelforum.com/member.php...o&userid=10785
View this thread:

http://www.excelforum.com/showthread...hreadid=276136





  #8   Report Post  
|| cypher ||
 
Posts: n/a
Default

Perfect! Peo thank you very much!!
-cypher

"Peo Sjoblom" wrote in message
...
Won't work for Scandinavian dates though, may I suggest


=SUMPRODUCT(--(A1:A6=DATE(2004,1,1)),--(A1:A6<=DATE(2004,3,31)),--(B1:B6="L
ist"),C1:C6)

this way all the functions will be translated into local versions and work

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Domenic" wrote in message
...

Thanks Bob! I appreciate the advice! And yes, it can be confusing at
times. :)

Cheers mate!

Bob Phillips Wrote:
When embedding a date, I would suggest using


=SUMPRODUCT(--(A1:A6=--"2004/01/01"),--(A1:A6<=--"2004/03/31"),--(B1:B6="Li
st"),C1:C6)

it uses a more standard date format, and avoids any confusion with US
and
European dates.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Domenic" wrote in message
...



=SUMPRODUCT(--(A1:A6="1/1/2004"+0),--(A1:A6<="3/31/2004"+0),--(B1:B6="List"
),C1:C6)

OR

=SUMPRODUCT(--(A1:A6=D1),--(A1:A6<=E1),--(B1:B6=F1),C1:C6)

..where D1 is the start date, E1 the end date, and F1 the "Type" of
interest.

Hope this helps!


--
Domenic


------------------------------------------------------------------------
Domenic's Profile:
http://www.excelforum.com/member.php...o&userid=10785
View this thread:
http://www.excelforum.com/showthread...hreadid=276136



--
Domenic
------------------------------------------------------------------------
Domenic's Profile:
http://www.excelforum.com/member.php...o&userid=10785
View this thread:

http://www.excelforum.com/showthread...hreadid=276136





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 on filtered cells Ndel40 Excel Worksheet Functions 19 January 20th 05 10:17 PM
Sumproduct ... Empty Cells vs Spaces? Ken Excel Discussion (Misc queries) 9 December 17th 04 08:03 PM
SUMIF with only one criteria cell within range Stan Excel Discussion (Misc queries) 5 December 16th 04 10:12 PM
SUMPRODUCT using offset from ROW if X marks the spot The Shaffer s Excel Worksheet Functions 3 November 2nd 04 06:14 AM
Conditional Format With SUMIF Minitman Excel Worksheet Functions 3 November 1st 04 02:58 PM


All times are GMT +1. The time now is 12:42 PM.

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"