Solved

Alternative to SUMIF

Posted on 2015-01-19
4
236 Views
Last Modified: 2015-01-19
Hello

please see attached file.  i need two help to simplify this formula in Column E.
i need help with using any alternative formula or existing one, that eliminates the helper column of "D".

it does not matter if the formula becomes an array formula.
ee.xlsx
0
Comment
Question by:Flora
  • 2
4 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 40557391
Is the formula supposed to sum column DV rather than column B in the "Dairy Products" part? If not, and it's supposed to use B as well, try:

=IF(SUMPRODUCT(--($A$2:$A$1833&$C$2:$C$1833=A2&"Seafood"),$B$2:$B$1833)/SUMIF(A:A,A2,B:B)>=PercentageTT,"Seafood",IF(SUMPRODUCT(--($A$2:$A$1833&$C$2:$C$1833=A2&"Dairy Products"),$B$2:$B$1833)/SUMIF(A:A,A2,B:B)>=PercentageTT,"Dairy Products",IF(SUMPRODUCT(--($A$2:$A$1833&$C$2:$C$1833=A2&"Beverages"),$B$2:$B$1833)/SUMIF(A:A,A2,B:B)>=PercentageTT,"Beverages","Other")))
0
 
LVL 12

Expert Comment

by:James Elliott
ID: 40557394
Try this:

=IF(SUMIFS(B:B,A:A,A2,C:C,"Seafood")/SUMIF(A:A,A2,B:B)>=PercentageTT,"Seafood",IF(SUMIFS(B:B,A:A,A2,C:C,"Dairy Products")/SUMIF(A:A,A2,B:B)>=PercentageTT,"Dairy Products",IF(SUMIFS(B:B,A:A,A2,C:C,"Beverages")/SUMIF(A:A,A2,B:B)>=PercentageTT,"Beverages","Other")))

Open in new window


*btw, I think this also fixes the erroneous reference to column DV in your original formula.
0
 
LVL 5

Author Closing Comment

by:Flora
ID: 40557395
Rory,
thanks A million.

it was a typo on the formula DV is D.  so your solution worked.
0
 
LVL 5

Author Comment

by:Flora
ID: 40557399
Thank you James. your formula worked too.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

919 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

12 Experts available now in Live!

Get 1:1 Help Now