Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Let's say I have values in range A1:A26.
Next I have some values in range Z1:Z7. I'd like to do some sort of SUMIF or SUMPRODUCT that if any of the values in Z1:Z7 are in the range A1:A26, I'd like to SUM the corresponding values in O1:O26. Is there a simpler way to do this than daisy-chaining a bunch of SUMIFs together? Thanks, Paul -- |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sure is.
=SUMPRODUCT(ISNUMBER(MATCH(A1:A26,Z1:Z7,0))*O1:O26 ) -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "PCLIVE" wrote: Let's say I have values in range A1:A26. Next I have some values in range Z1:Z7. I'd like to do some sort of SUMIF or SUMPRODUCT that if any of the values in Z1:Z7 are in the range A1:A26, I'd like to SUM the corresponding values in O1:O26. Is there a simpler way to do this than daisy-chaining a bunch of SUMIFs together? Thanks, Paul -- |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks. That's what I was looking for.
Paul -- "Luke M" wrote in message ... Sure is. =SUMPRODUCT(ISNUMBER(MATCH(A1:A26,Z1:Z7,0))*O1:O26 ) -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "PCLIVE" wrote: Let's say I have values in range A1:A26. Next I have some values in range Z1:Z7. I'd like to do some sort of SUMIF or SUMPRODUCT that if any of the values in Z1:Z7 are in the range A1:A26, I'd like to SUM the corresponding values in O1:O26. Is there a simpler way to do this than daisy-chaining a bunch of SUMIFs together? Thanks, Paul -- |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Wed, 15 Jul 2009 12:17:15 -0400, "PCLIVE"
wrote: Let's say I have values in range A1:A26. Next I have some values in range Z1:Z7. I'd like to do some sort of SUMIF or SUMPRODUCT that if any of the values in Z1:Z7 are in the range A1:A26, I'd like to SUM the corresponding values in O1:O26. Is there a simpler way to do this than daisy-chaining a bunch of SUMIFs together? Thanks, Paul This could probably be written more simple, but anyway. Assuming the values in Z1:Z7 are all different, try this: =SUMPRODUCT(MMULT(--(MMULT(A1:A26,--(COLUMN(OFFSET(Z1,,,7))0))-TRANSPOSE(Z1:Z7)=0),--(ROW(Z1:Z7)0)),O1:O26) Note: This is an array formula that has to be confirmed with CTRL+SHIFT+ENTER rather than just ENTER Hope this helps / Lars-Åke |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SUMIF result including values not specified in sum-range | Excel Worksheet Functions | |||
adding values if the same - SUMIF in range of cells? | Excel Worksheet Functions | |||
sumif for a range of values | Excel Discussion (Misc queries) | |||
using sumif to sum a range of values | Excel Worksheet Functions | |||
Selecting values from a range that equal a specific total | Excel Worksheet Functions |