View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SwtHapa8 SwtHapa8 is offline
external usenet poster
 
Posts: 2
Default sun total of one column using criteria in another column

Hello, I have a similar issue. In my situation, I'm trying to say," If A1:A5
= CA or DE or NJ or NY or PA or WI, then sum B1:B5"

Can anyone help?

Column A Column B
CA 2
NJ 3
DE 4
SC 5
TN 6

"Elkar" wrote:

Try the SUMIF function:

=SUMIF(A1:A3,"Apples",B1:B3)

HTH,
Elkar


"Ben" wrote:

how do you add up a series of numbers in one column using a critera of
another column?

Column A Column B
Apples 1,112
Pears 1,548
Apples 2,544

What is the total number of apples...??? What is the right formula

if(a1:a3=Apples then add B 1:b3)