Solved

Sumif Function where "criteria" refers to the contents of a cell.

Posted on 2013-11-07
2
371 Views
Last Modified: 2013-11-07
In case of the Sumif function has a following structure SUMIF(range, criteria, [sum_range]). "Criteria" in this case is a condition or expression like "summer" or ">10" etc.

In my application I could have categories like
apple
pear
grape
orange
and I want to sum each of the categories, but I do not want to fill in each of the criteria in seperate sumif functions. I want to paste the Sumif function next to each category in this list and the "criteria" in the formula must refer to the category next to it, instead of being hard coded.

Is there a way to do it?

I hope some clever dude will understand my question.
0
Comment
Question by:Fritz Paul
2 Comments
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39632756
Hi,

You can make a reference to another cell see example

=SUMIF(A1:A2,E1,B1:B2)

Open in new window



Regards
sumif.xlsx
0
 

Author Closing Comment

by:Fritz Paul
ID: 39632809
of course.

I somehow just could not get it right.

Thanks a lot.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question