#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default sumif

hi community

can community assist me to solve this.....

A B C E
1 ITTCHG ADV 5.00
2 MER ADV 3.00
3 TRFCPU ADV 5.00
4 MER ADV 5.00
5 BILL ATP 12.00
6 CHQ 5.00
7 QCDM CHQ 6.00
8 CHQ 5.00
9 QCDM CHQ 2.00
10 21334 CHQ 10.00

what i want to do with the above range are these format:

e.g 1
If Col B = "CHQ" & Col = ""
sum(E?:E?)

e.g 2
If Col B = "CHQ" & Col A = "QCDM"
sum(E?:E?)
and in this e.g 2
if Col = "CHQ"
sum(e.g1'sum' + e.g2'sum')

e.g 3
If Col B = "ADV" & Col A = "MER"
sum(E?:E?)


can the above to done ?

thanks community :)
oldLearner57
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sumif

One way is to use sumproduct for the multi-criteria summing

These 3 should give you a good start ..

e.g 1 If Col B = "CHQ" & Col A = "" sum(E?:E?)

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10=""),C1:C10)

e.g 2 If Col B = "CHQ" & Col A = "QCDM" sum(E?:E?)

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10="QCDM"),C1:C10)

e.g 3 If Col B = "ADV" & Col A = "MER" sum(E?:E?)

=SUMPRODUCT((B1:B10="ADV")*(A1:A10="MER"),C1:C10)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"oldLearner57" wrote:
hi community

can community assist me to solve this.....

A B C E
1 ITTCHG ADV 5.00
2 MER ADV 3.00
3 TRFCPU ADV 5.00
4 MER ADV 5.00
5 BILL ATP 12.00
6 CHQ 5.00
7 QCDM CHQ 6.00
8 CHQ 5.00
9 QCDM CHQ 2.00
10 21334 CHQ 10.00

what i want to do with the above range are these format:

e.g 1
If Col B = "CHQ" & Col = ""
sum(E?:E?)

e.g 2
If Col B = "CHQ" & Col A = "QCDM"
sum(E?:E?)
and in this e.g 2
if Col = "CHQ"
sum(e.g1'sum' + e.g2'sum')

e.g 3
If Col B = "ADV" & Col A = "MER"
sum(E?:E?)


can the above to done ?

thanks community :)
oldLearner57

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sumif

Oops, C1:C10 in the earlier sumproducts should have read as E1:E10, ie

e.g 1 If Col B = "CHQ" & Col A = "" sum(E?:E?)

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10=""),E1:E10)

e.g 2 If Col B = "CHQ" & Col A = "QCDM" sum(E?:E?)

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10="QCDM"),E1:E10)

e.g 3 If Col B = "ADV" & Col A = "MER" sum(E?:E?)

=SUMPRODUCT((B1:B10="ADV")*(A1:A10="MER"),E1:E10)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default sumif

thanks Max, that really helps :)
and

is there possible for me to combined all the three formulae into 1 so as I
can use these 3 formula as 1.. (if can, how do i do that??)
hope u understand what I am trying to say....?? :)

thanks again for the help very appreciated

thanks community as well
--
oldLearner57


"Max" wrote:

Oops, C1:C10 in the earlier sumproducts should have read as E1:E10, ie

e.g 1 If Col B = "CHQ" & Col A = "" sum(E?:E?)

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10=""),E1:E10)

e.g 2 If Col B = "CHQ" & Col A = "QCDM" sum(E?:E?)

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10="QCDM"),E1:E10)

e.g 3 If Col B = "ADV" & Col A = "MER" sum(E?:E?)

=SUMPRODUCT((B1:B10="ADV")*(A1:A10="MER"),E1:E10)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default sumif

Hi

Try amending Max's formula to

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10={"","QCDM","MER "})*E1:E10)


--
Regards

Roger Govier


"oldLearner57" wrote in message
...
thanks Max, that really helps :)
and

is there possible for me to combined all the three formulae into 1 so
as I
can use these 3 formula as 1.. (if can, how do i do that??)
hope u understand what I am trying to say....?? :)

thanks again for the help very appreciated

thanks community as well
--
oldLearner57


"Max" wrote:

Oops, C1:C10 in the earlier sumproducts should have read as E1:E10,
ie

e.g 1 If Col B = "CHQ" & Col A = "" sum(E?:E?)

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10=""),E1:E10)

e.g 2 If Col B = "CHQ" & Col A = "QCDM" sum(E?:E?)

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10="QCDM"),E1:E10)

e.g 3 If Col B = "ADV" & Col A = "MER" sum(E?:E?)

=SUMPRODUCT((B1:B10="ADV")*(A1:A10="MER"),E1:E10)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---





  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sumif

Roger, thanks for the help.
Thought it might be something like:
=SUMPRODUCT((B1:B10="CHQ")*(A1:A10={"","QCDM"})*E1 :E10)
+SUMPRODUCT((B1:B10="ADV")*(A1:A10="MER"),E1:E10)
since the OP's other value within B1:B10 is "ADV"
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Roger Govier" wrote in message
...
Hi

Try amending Max's formula to

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10={"","QCDM","MER "})*E1:E10)


--
Regards

Roger Govier



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default sumif

thanks Roger Govier that's great
ur formula works but
short of the last sumproduct ?

thanks :)

thanks community

--
oldLearner57


"Roger Govier" wrote:

Hi

Try amending Max's formula to

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10={"","QCDM","MER "})*E1:E10)


--
Regards

Roger Govier


"oldLearner57" wrote in message
...
thanks Max, that really helps :)
and

is there possible for me to combined all the three formulae into 1 so
as I
can use these 3 formula as 1.. (if can, how do i do that??)
hope u understand what I am trying to say....?? :)

thanks again for the help very appreciated

thanks community as well
--
oldLearner57


"Max" wrote:

Oops, C1:C10 in the earlier sumproducts should have read as E1:E10,
ie

e.g 1 If Col B = "CHQ" & Col A = "" sum(E?:E?)
=SUMPRODUCT((B1:B10="CHQ")*(A1:A10=""),E1:E10)

e.g 2 If Col B = "CHQ" & Col A = "QCDM" sum(E?:E?)
=SUMPRODUCT((B1:B10="CHQ")*(A1:A10="QCDM"),E1:E10)

e.g 3 If Col B = "ADV" & Col A = "MER" sum(E?:E?)
=SUMPRODUCT((B1:B10="ADV")*(A1:A10="MER"),E1:E10)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default sumif

hi Max

10s again, now
I got all the 3 sumproduct formula and combined into 1 test
:)
very much appreciated :)

thanks community as well
:)
--
oldLearner57


"Max" wrote:

Roger, thanks for the help.
Thought it might be something like:
=SUMPRODUCT((B1:B10="CHQ")*(A1:A10={"","QCDM"})*E1 :E10)
+SUMPRODUCT((B1:B10="ADV")*(A1:A10="MER"),E1:E10)
since the OP's other value within B1:B10 is "ADV"
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Roger Govier" wrote in message
...
Hi

Try amending Max's formula to

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10={"","QCDM","MER "})*E1:E10)


--
Regards

Roger Govier




  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default sumif

Sorry both.
Had not read the thread carefully enough and didn't notice the other
criteria.

--
Regards

Roger Govier


"Max" wrote in message
...
Roger, thanks for the help.
Thought it might be something like:
=SUMPRODUCT((B1:B10="CHQ")*(A1:A10={"","QCDM"})*E1 :E10)
+SUMPRODUCT((B1:B10="ADV")*(A1:A10="MER"),E1:E10)
since the OP's other value within B1:B10 is "ADV"
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Roger Govier" wrote in message
...
Hi

Try amending Max's formula to

=SUMPRODUCT((B1:B10="CHQ")*(A1:A10={"","QCDM","MER "})*E1:E10)


--
Regards

Roger Govier





  #10   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sumif

Welcome, good to hear that. It was a combined effort with Roger's inputs
which paved the path here <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"oldLearner57" wrote in message
...
hi Max

10s again, now
I got all the 3 sumproduct formula and combined into 1 test
:)
very much appreciated :)





  #11   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sumif

Thought your earlier input to the OP's follow-through Q was key.
I just did the simple follow-through <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Roger Govier" wrote in message
...
Sorry both.
Had not read the thread carefully enough and didn't notice the other
criteria.

--
Regards

Roger Govier



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
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF Not vanjohnson Excel Discussion (Misc queries) 1 March 4th 05 08:42 PM
SUMIF Help JC Excel Discussion (Misc queries) 1 February 21st 05 05:17 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 05:06 PM.

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

About Us

"It's about Microsoft Excel"