Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Summing/Counting Data in One Column Based on Criteria Another Col

This level of Excel complexity is a little above my skills, and am hoping
that someone can help.

I have numbered data in one range of cells (e.g., b1:b158) and alpha
criteria in another (e.g., "apples", "oranges", "pears" in c1:c158). I am
trying to sum the data in cells b1:b158 based on the criteria in cells
c1:c158, and put the result in a third cell. So for example, the sum of the
numbers in column b would be put in cell d1 if the criteria in c1:c158 was
equal to "apples"; the sum of the numbers in b would be put in d2 if the
criteria in c1:c158 was "oranges", etc.

Anyone have any suggestions? Thanks in advance for your help.
--
agilek9
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default Summing/Counting Data in One Column Based on Criteria Another Col

In F1, F2,... enter the 'Fruit' names...

Enter this in D1
=Sumproduct(--(C$1:C$158=F1),(B$1:B$158)) and copy down...

If F1 is Apple then it will give you the sum for the rows which have Apple
in Col C...

"agilek9" wrote:

This level of Excel complexity is a little above my skills, and am hoping
that someone can help.

I have numbered data in one range of cells (e.g., b1:b158) and alpha
criteria in another (e.g., "apples", "oranges", "pears" in c1:c158). I am
trying to sum the data in cells b1:b158 based on the criteria in cells
c1:c158, and put the result in a third cell. So for example, the sum of the
numbers in column b would be put in cell d1 if the criteria in c1:c158 was
equal to "apples"; the sum of the numbers in b would be put in d2 if the
criteria in c1:c158 was "oranges", etc.

Anyone have any suggestions? Thanks in advance for your help.
--
agilek9

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Summing/Counting Data in One Column Based on Criteria Another Col

On Nov 6, 3:56*pm, agilek9 wrote:
This level of Excel complexity is a little above my skills, and am hoping
that someone can help.

I have numbered data in one range of cells (e.g., b1:b158) and alpha
criteria in another (e.g., "apples", "oranges", "pears" in c1:c158). *I am
trying to sum the data in cells b1:b158 based on the criteria in cells
c1:c158, and put the result in a third cell. *So for example, the sum of the
numbers in column b would be put in cell d1 if the criteria in c1:c158 was
equal to "apples"; the sum of the numbers in b would be put in d2 if the
criteria in c1:c158 was "oranges", etc.

Anyone have any suggestions? *Thanks in advance for your help.
--
agilek9


SUMIF and COUNTIF.

=SUMIF(C1:C158,"apples",B1:B158)
=COUNTIF(C1:C158,"apples")

But it would be better to put each item in another cell and reference
them.
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
Counting items in one column based on criteria in another kmc103 Excel Worksheet Functions 4 May 15th 08 09:17 PM
summing column c based an column a criteria ndforty Excel Worksheet Functions 2 May 3rd 07 06:57 PM
summing values in a data table based on criteria in another column Dave F Excel Worksheet Functions 7 August 26th 06 04:36 PM
Summing data based on criteria Wendy Excel Discussion (Misc queries) 2 August 1st 06 04:07 PM
Counting & Summing based on criteria on another column Chicago D Excel Discussion (Misc queries) 2 August 25th 05 06:58 PM


All times are GMT +1. The time now is 01:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"