ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Regarding SUMIF (https://www.excelbanter.com/excel-discussion-misc-queries/215095-regarding-sumif.html)

Raj

Regarding SUMIF
 
Hi

I have a issue using SUMIF statement my Data is distributed as below

Status Priority Ageing
Closed P1 2
resolved P1 1
Closed P2 3
Closed P2 4

The Data is distributed like this in more than 3000 cells. Now i want a data
like this

priority Total ageing
P1 3
P2 7

If the status is closed and resolved only we have count that for Total
Ageing if the status is other than both above we should not consider. Can
anyone help me to resolve this isuue.


barry houdini[_4_]

Regarding SUMIF
 
Hello Raj,

You can use SUMPRODUCT

Assuming your base data is in columns A, B and C then with your
priorities, P1, P2 etc. listed in E2 down use this formula in F2
copied down

=SUMPRODUCT((A$2:A$100="Closed")+(A$2:A$100="Resol ved"),--(B$2:B
$100=E2),C$2:C$100)

adjust ranges as necessary...

Bernard Liengme

Regarding SUMIF
 
Assuming row 1 has the labels "Status", "Priority", "aging", and the status
data in in A2:A4000
And that P1 and P2 for results are in D1 and D2
=SUMPRODUCT((($A2:$A$4000="Closed")+($A$2:$A$4000= "Resolved"))*($B$2:$B$4000=D1)*($C$2:$C$4000))
Happy New Year
--
Bernard Liengme
Microsoft Excel MVP
people.stfx.ca/bliengme
email address: remove uppercase characters

"Raj" wrote in message
...
Hi

I have a issue using SUMIF statement my Data is distributed as below

Status Priority Ageing
Closed P1 2
resolved P1 1
Closed P2 3
Closed P2 4

The Data is distributed like this in more than 3000 cells. Now i want a
data
like this

priority Total ageing
P1 3
P2 7

If the status is closed and resolved only we have count that for Total
Ageing if the status is other than both above we should not consider. Can
anyone help me to resolve this isuue.




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com