SpoctorDock
New Member
- Joined
- May 17, 2011
- Messages
- 4
Hi there,
I'm trying to sum the values of one column based on conditions in another column, for example:
A------B
No.----Cash
3------£1.10
4------£1.80
23-----£30.10
No.----Cash
0------£0.00
Where A is the number of copies and B is the payment method (cash or invoice).
There are blank cells in both the Cash and Invoice since it's one or the other and never both, so I'm trying to filter out any instances of "Cash", blank cells or those with £0.00 values.
So far I've managed to do
and
as an alternative, both of which count the correct number of copies, but when I attempt using things like SUMIF etc to count the total copies sold based on the code above, I always get 0.
Does anyone have any other ways of getting the right total?
Cheers
I'm trying to sum the values of one column based on conditions in another column, for example:
A------B
No.----Cash
3------£1.10
4------£1.80
23-----£30.10
No.----Cash
0------£0.00
Where A is the number of copies and B is the payment method (cash or invoice).
There are blank cells in both the Cash and Invoice since it's one or the other and never both, so I'm trying to filter out any instances of "Cash", blank cells or those with £0.00 values.
So far I've managed to do
Code:
=COUNTIFS(F6:F95,"<>0",F6:F95,"<>Cash",F6:F95,"<>"&"")
Code:
=COUNTIF(F6:F95, "<>Cash")-COUNTIF(F6:F95,"")
Does anyone have any other ways of getting the right total?
Cheers