Sum column values based on multiple criterias - 2 columns & 1 row

AnaLib

New Member
Joined
Feb 1, 2018
Messages
3
Hi! Really need some urgent help with this I need to look up Unit Sales & Retail Sales by Collection but only for the top 10 or bottom - I don't want to SUM all data. Normally I've used a formula like SUM(IF(),IF(,))) but this time I don't know how to add in an additional criteria (Top 10/Bottom). Apologies for the bad cut and paste wanted to add an image or excel file but not sure how to.


COLLECTION TOP 10BOTTOM 10UNIT SALES RETAIL SALES $
Class 5406 MOVE UNO -MS47950TOP 10 ONLYBOTTOM 10 ONLY
Class 5406 MOVE UNO -MS100
Class 5407 BABY MOVE - MS13380CollectionUnit SalesRETAIL SALES $ CollectionUnit SalesRETAIL SALES $
Class 5406 MOVE UNO -MS435912Class 5406 MOVE UNO -MS Class 5406 MOVE UNO -MS
Class 5407 BABY MOVE - MS-11751Class 5407 BABY MOVE - MS Class 5407 BABY MOVE - MS
Class 5406 MOVE UNO -MS00
Class 5406 MOVE UNO -MS448880
Class 5407 BABY MOVE - MS512400
Class 5406 MOVE UNO -MS33192
Class 5406 MOVE UNO -MS122230
Class 5407 BABY MOVE - MS-00
Class 5406 MOVE UNO -MS11120
Class 5407 BABY MOVE - MS-00
Class 5406 MOVE UNO -MS211110
Class 5406 MOVE UNO -MS300
Class 5407 BABY MOVE - MS21026103
Class 5407 BABY MOVE - MS637696
Class 5407 BABY MOVE - MS724120

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi,

What constitutes TOP 10 and BOTTOM 10, are we to rely on Columns B & C for that information?
If so, try this:


Book1
ABCDEFGHIJKLM
1COLLECTIONTOP 10BOTTOM 10UNIT SALESRETAIL SALES $
2Class 5406 MOVE UNO -MS47950TOP 10 ONLYBOTTOM 10 ONLY
3Class 5406 MOVE UNO -MS100
4Class 5407 BABY MOVE - MS13380CollectionUnit SalesRETAIL SALES $CollectionUnit SalesRETAIL SALES $
5Class 5406 MOVE UNO -MS435912Class 5406 MOVE UNO -MS59990Class 5406 MOVE UNO -MS58142
6Class 5407 BABY MOVE - MS-11751Class 5407 BABY MOVE - MS614216Class 5407 BABY MOVE - MS1026103
7Class 5406 MOVE UNO -MS00
8Class 5406 MOVE UNO -MS448880
9Class 5407 BABY MOVE - MS512400
10Class 5406 MOVE UNO -MS33192
11Class 5406 MOVE UNO -MS122230
12Class 5407 BABY MOVE - MS-00
13Class 5406 MOVE UNO -MS11120
14Class 5407 BABY MOVE - MS-00
15Class 5406 MOVE UNO -MS211110
16Class 5406 MOVE UNO -MS300
17Class 5407 BABY MOVE - MS21026103
18Class 5407 BABY MOVE - MS637696
19Class 5407 BABY MOVE - MS724120
Sheet15
Cell Formulas
RangeFormula
H5=SUMIFS(D$2:D$19,A$2:A$19,G5,B$2:B$19,">0",B$2:B$19,"<=10")
I5=SUMIFS(E$2:E$19,A$2:A$19,G5,B$2:B$19,">0",B$2:B$19,"<=10")
L5=SUMIFS(D$2:D$19,A$2:A$19,K5,C$2:C$19,">0",C$2:C$19,"<=10")
M5=SUMIFS(E$2:E$19,A$2:A$19,K5,C$2:C$19,">0",C$2:C$19,"<=10")


Formulae copied down for each column.
 
Upvote 0

Forum statistics

Threads
1,216,031
Messages
6,128,424
Members
449,450
Latest member
gunars

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top