LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Andy
 
Posts: n/a
Default Array Formula w/ Multiple SumIf Criteria

Hello!
I'm trying to find a more elegant way to accomplish a conditional sum and
formula with multiple conditions.

Sample data is below. Column A is Product, range named Product. Column B
is Location, range named Location. Column C is Total number, range named
TotalNum. Column D is number in stock, range named Stock. Column E is
Number sold, range named Sold. Column F is % Sold, range named Percentage
with the simple formula being (D1-E1)/D1 for % Sold.

I want to find % Sold for multiple conditions. As in example, % Sold of
Toasters in New York.

Here is the formula I have now, but it seems overly cumbersome using two
conditional statements that repeat the same criteria.

=SUM(IF(Product="Toaster",IF(Location="New
York",Sold,0),0))/SUM(IF(Product="Toaster",IF(Location="New
York",TotalNum,0),0))

Answer for New York Toasters = 71% is correct.

I tried the following, but it only sums incorrectly:

=SUM(IF(Product="Toaster",IF(Location="New York",Percentage,0),0))

Answer for New York Toasters = 130% is incorrect.

I am sure that with array formulas that there must be an easier way to do
this, but can't seem to figure it out. I was also thinking of using a
drop-down control for user selects with a macro returning the answer based on
selections.

Thanks for any assistance!!!!

Product Location Total Sold Completed Percentage
Toaster New York 4 2 2 50%
Oven Philly 17 0 17 100%
Toaster New York 10 2 8 80%
Microwave Pittsburgh 10 5 5 50%
Microwave Toledo 5 0 5 100%
Sink New York 4 1 3 75%
Toaster Philly 4 1 3 75%
Toaster Philly 87 15 72 83%
Oven Pittsburgh 9 8 1 11%
Sink Toledo 10 5 5 50%



 
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
How do I use the sumif if I have multiple criteria (i.e. greater . Kellyatisl Excel Worksheet Functions 3 June 4th 06 06:33 AM
Modify SumIF... Array Formula Peo Sjoblom Excel Worksheet Functions 0 May 17th 05 06:15 PM
"criteria" in a sumif refering to the value in another cell mark Excel Discussion (Misc queries) 1 January 31st 05 07:39 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM
SUMIF multiple criteria in 1 range Mike@Q Excel Worksheet Functions 5 November 26th 04 03:55 PM


All times are GMT +1. The time now is 10:02 PM.

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"