Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ben
 
Posts: n/a
Default sun total of one column using criteria in another column

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)

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default sun total of one column using criteria in another column

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)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sun total of one column using criteria in another column

List the criteria in a range of cells.

D1:D6 = CA, DE, NJ, NY, PA, WI

Then:

=SUMPRODUCT(--(ISNUMBER(MATCH(A1:A5,D1:D6,0))),B1:B5)

--
Biff
Microsoft Excel MVP


"SwtHapa8" wrote in message
...
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)



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur
 
Posts: n/a
Default sun total of one column using criteria in another column

Hi,

While, sumif is definitely a better formula to use, you can also use an
array formula (Ctrl+Shift+Enter) here (i would not advise you to use an array
formula though). This is purely for your understanding

=sum(if((rangeA="Apples",RangeB))

Regards

Ashish Mathur

"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)



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RAZA
 
Posts: n/a
Default sun total of one column using criteria in another column


In my opinion instead of deriving solutions using formulas in such type
of situation, inbuilt tool like pivot table can be used, this will
-inter alia- sum all the Apples in your database and lend you
flexibility to alter your reports any time.

REGARDS
RAZA


--
RAZA
------------------------------------------------------------------------
RAZA's Profile: http://www.excelforum.com/member.php...o&userid=34186
View this thread: http://www.excelforum.com/showthread...hreadid=540494

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
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
Arithmetical Mode of Criteria in Multiple Non-Adjacent columns Sam via OfficeKB.com Excel Worksheet Functions 4 July 14th 05 09:15 PM
Adding total dollars based on specific data from another column Espo Excel Discussion (Misc queries) 1 June 13th 05 07:52 PM


All times are GMT +1. The time now is 08:18 AM.

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"