SUMIF

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi,

Can i please ask for some help, i am looking for a formula to show a sum of column C if E4 is matched in column D and F24 is matched in column E

Any help appreciated

Thanks
 
I am not clear on your challenge.
The information below shows two formulas; you can try either or both.
I converted your extract to a Table.
You can use appropriate headings for the table.

T202008a.xlsm
ABCDE
12OldGray2
2ColumnAAmtColumnCColumnDColumnE
3885-113957OldGrayAntenna 4H (Pic)
20886-113957OldGrayAntenna 4H (Pic)
38
3b
Cell Formulas
RangeFormula
C1C1=SUMIFS(B3:B200,D3:D200,D1,E3:E200,F1)
E1E1=SUBTOTAL(9,Table1[Amt])
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
ExcelRoy2.xlsx
ABCDEF
1From B
2885-1
3886-1
4889-13957
24 OldGray
37 885-113957OldGrayAntenna 4H (Pic)
38 885-123062aTrBlueBrick 1 x 1 Round with Solid Stud (Pic)
39 885-113633OldGrayFence 1 x 4 x 1 (Pic)
40 885-113838RedMinifig Accessory Airtanks (Pic)
41 885-113626ap01YellowMinifig Head with Solid Stud and Standard Grin Pattern (Pic)
42 885-11970c00RedMinifig Hips and Legs (Complete) (Pic)
43 885-11973p90RedMinifig Torso with Classic Space Pattern (Pic)
44 885-123024TrRedPlate 1 x 1 (Pic)
45 885-113839aOldGrayPlate 1 x 2 with Handles Type 1 (Pic)
46 885-113460OldGrayPlate 1 x 8 (Pic)
47 885-123022OldGrayPlate 2 x 2 (Pic)
48 885-113034OldGrayPlate 2 x 8 (Pic)
49 885-113298p90OldGraySlope Brick 33 3 x 2 with Classic Space Logo Pattern (Pic)
50 885-113933OldGrayWing 4 x 8 Left (Pic)
51 885-113934OldGrayWing 4 x 8 Right (Pic)
52 885-113829OldGray~Moved to 3829c01 (Pic)
53 885-11193aRed~Moved to 3842a (Pic)
54 886-113957OldGrayAntenna 4H (Pic)
55 886-113062aTrGreenBrick 1 x 1 Round with Solid Stud (Pic)
56 886-113838OldGrayMinifig Accessory Airtanks (Pic)
57 886-113838WhiteMinifig Accessory Airtanks (Pic)
58 886-113959OldGrayMinifig Accessory Torch (Pic)
59 886-113626ap01YellowMinifig Head with Solid Stud and Standard Grin Pattern (Pic)
60 886-11970c00WhiteMinifig Hips and Legs (Complete) (Pic)
61 886-11973p90WhiteMinifig Torso with Classic Space Pattern (Pic)
62 886-113794OldGrayPlate 1 x 2 with 1 Stud (Pic)
63 886-12122c01OldGrayPlate 2 x 2 with Wheels in Red (Pic)
64 886-113020OldGrayPlate 2 x 4 (Pic)
65 886-113795OldGrayPlate 2 x 6 (Pic)
66 886-113039OldGraySlope Brick 45 2 x 2 (Pic)
67 886-143641BlackTyre (Pic)
68 886-113829OldGray~Moved to 3829c01 (Pic)
69 886-11193aWhite~Moved to 3842a (Pic
70 889-113956OldGrayBracket 2 x 2 - 2 x 2 (Pic)
71 889-123787OldGrayCar Mudguard 2 x 4 without Studs (Pic)
72 889-123957OldGrayToadstool test data
Sheet1 (2)
Cell Formulas
RangeFormula
A37:A72,A24,A2:A4A2=IF(COUNTIFS($D$1:$D$9999,$E$4,$E$1:$E$9999,$F$24)<ROW()-ROW($A$1),"",INDEX($B$1:$B$9999,AGGREGATE(15,6,ROW($B$1:$B$9999)/(($D$1:$D$9999=$E$4)*($E$1:$E$9999=$F$24)),ROW()-ROW($A$1))))
 
Upvote 0
Hi Fluff,

E4 is a selection from Column D (Item) and F24 is a selection from column E (Colour)

Thanks
 
Upvote 0
Does Toadstool's formula give you what you want?
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,739
Members
449,050
Latest member
excelknuckles

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