Home |
Search |
Today's Posts |
#14
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Try this =SUMPRODUCT((A20:A29=A20)+(A20:A29=A23),B20:B29) A20 holds Apples and A23 holds oranges -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "RollieG" wrote in message ... Instead of {"apples","oranges"} for criteria, can you use something like {$C$1, $D$1} ? I am trying to use the criteria to refer to one of two values, where the values in the cells are strings. "Dave Peterson" wrote: One mo =SUM(SUMIF(A1:A10,{"apples","oranges"},B1:B10)) Nan wrote: I'm trying to set up a criteria range using SUMIF. ColA ColB apples 1 carrots 2 apples 5 oranges 1 celery 2 apples 1 onions 2 apples 5 oranges 1 celery 2 I hoped something like =SUMIF(A1:A10,(OR("apples","oranges")),B1:B10) would work, but the result is 0, not 14. Any help is appreciated. -- TIA, Nan -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SUMIF multiple criteria | Excel Worksheet Functions | |||
SumIf with Multiple Criteria | Excel Worksheet Functions | |||
SUMIF for Multiple Criteria | Excel Worksheet Functions | |||
sumif for multiple criteria | Excel Discussion (Misc queries) | |||
SUMIF multiple criteria | Excel Discussion (Misc queries) |