Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF & OR
Dear all,
I wish to use a SUMIF(range, criteria, sum range) forumula utlising OR for the criteria, e.g. =SUMIF(A1:J1,OR(A10:A20),B2:J2) It would appear however that this does not work. Can you please point out the error of my ways, thank-you. Yours in appreciation (as always), Neil |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF & OR
Can you tell us in words what you want?
Is it: to sum B values when corresponding A value matches anything in A10:A20? best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Neil Pearce" wrote in message ... Dear all, I wish to use a SUMIF(range, criteria, sum range) forumula utlising OR for the criteria, e.g. =SUMIF(A1:J1,OR(A10:A20),B2:J2) It would appear however that this does not work. Can you please point out the error of my ways, thank-you. Yours in appreciation (as always), Neil |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF & OR
Hi Bernard,
That is indeed the situation that I require solving. Cheers, Neil "Bernard Liengme" wrote: Can you tell us in words what you want? Is it: to sum B values when corresponding A value matches anything in A10:A20? best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Neil Pearce" wrote in message ... Dear all, I wish to use a SUMIF(range, criteria, sum range) forumula utlising OR for the criteria, e.g. =SUMIF(A1:J1,OR(A10:A20),B2:J2) It would appear however that this does not work. Can you please point out the error of my ways, thank-you. Yours in appreciation (as always), Neil |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF & OR
I think this is what you want
=SUMPRODUCT(--(A1:J1=TRANSPOSE(A10:A20)),A2:J2) best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Neil Pearce" wrote in message ... Hi Bernard, That is indeed the situation that I require solving. Cheers, Neil "Bernard Liengme" wrote: Can you tell us in words what you want? Is it: to sum B values when corresponding A value matches anything in A10:A20? best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Neil Pearce" wrote in message ... Dear all, I wish to use a SUMIF(range, criteria, sum range) forumula utlising OR for the criteria, e.g. =SUMIF(A1:J1,OR(A10:A20),B2:J2) It would appear however that this does not work. Can you please point out the error of my ways, thank-you. Yours in appreciation (as always), Neil |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF & OR
I was too quick to hit Send:
1) this is an array formula and needs CTRL+SHIFT+ENTER 2) the vector A10:20 has 11 elements while A1:J1 and A2:J2 have only 10 each so use =SUMPRODUCT(--(A1:J1=TRANSPOSE(A10:A19)),A2:J2) best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Bernard Liengme" wrote in message ... I think this is what you want =SUMPRODUCT(--(A1:J1=TRANSPOSE(A10:A20)),A2:J2) best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Neil Pearce" wrote in message ... Hi Bernard, That is indeed the situation that I require solving. Cheers, Neil "Bernard Liengme" wrote: Can you tell us in words what you want? Is it: to sum B values when corresponding A value matches anything in A10:A20? best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Neil Pearce" wrote in message ... Dear all, I wish to use a SUMIF(range, criteria, sum range) forumula utlising OR for the criteria, e.g. =SUMIF(A1:J1,OR(A10:A20),B2:J2) It would appear however that this does not work. Can you please point out the error of my ways, thank-you. Yours in appreciation (as always), Neil |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF & OR
Use:
=SUMPRODUCT(SUMIF(A1:J1,A10:A20,A2:J2) HTH Kostis Vezerides On 2 , 14:38, Neil Pearce wrote: Dear all, I wish to use a SUMIF(range, criteria, sum range) forumula utlising OR for the criteria, e.g. =SUMIF(A1:J1,OR(A10:A20),B2:J2) It would appear however that this does not work. *Can you please point out the error of my ways, thank-you. Yours in appreciation (as always), Neil |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF & OR
Oops, one more parenthesis in the end:
=SUMPRODUCT(SUMIF(A1:J1,A10:A20,A2:J2)) HTH Kostis On 2 Δεκ, 14:57, vezerid wrote: Use: =SUMPRODUCT(SUMIF(A1:J1,A10:A20,A2:J2) HTH Kostis Vezerides On 2 Äåê, 14:38, Neil Pearce wrote: Dear all, I wish to use a SUMIF(range, criteria, sum range) forumula utlising OR for the criteria, e.g. =SUMIF(A1:J1,OR(A10:A20),B2:J2) It would appear however that this does not work. *Can you please point out the error of my ways, thank-you. Yours in appreciation (as always), Neil- Απόκρυψη κειμ*νου σε παράθεση - - Εμφάνιση κειμ*νου σε παράθεση - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" | Excel Worksheet Functions | |||
Embedding a Sumif in a sumif | Excel Worksheet Functions | |||
SUMIF | Excel Discussion (Misc queries) | |||
nested sumif or sumif with two criteria | Excel Worksheet Functions | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions |