Simple Addition of Numbers using Criteria

JonesyUK

Board Regular
Joined
Oct 11, 2005
Messages
190
Office Version
  1. 365
Platform
  1. Windows
Hi - I have data in columns "P", "Q" & "R" as follows:
_______"P"__"Q"____"R"
Row22: P7 (9,178) 7,992
Row23: P7 251,253 93,239
Row24: P8 (10,017) 8,879
Row25: P8 241,277 103,603
Row26: P9 (9,715) 8,342
Row27: P9 244,506 97,423
Row28: P10 (9,522) 7,109
Row29: P10 217,718 84,952
Row30: P11 (9,390) 7,602
Row31: P11 218,933 90,884
Row32: P12 (8,754) 7,617
Row33: P12 226,054 91,116

Please help me with a formula.

Depending on the month(P1 to P12), I need to sum up any data that relates to that month, so if it is P8, then I need to sum up 8,879+103,603 (please ignore the data in column "Q"). If the month is P10, then I need to sum up 7,109+84,952.... etc.

The formula goes into cell R35.

Thanks!!!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
=SUM((P22:P23="P8"))*(R22:R33)) enter with Ctrl+Shift+Enter

=SUMPRODUCT(--(P22:P23="P8");R22:R33)
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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