Solved

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

Posted on 2013-11-07
2
355 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 49

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

815 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now