Count Cells depending upon Multiple cell Values -

chippymark

Board Regular
Joined
Aug 2, 2007
Messages
50
Ok well here goes, for those of you advanced I will try to do my best to get across what I am looking to achieve: Please Bear with me.
In what would be Cell E2 I want to post the Total posted set Assuming that the Order Numbers and the OP Numbers are the Same, but only if there is a value in the allowed set,
So I'd expect E2 in the case below to read 1.83, But I would not want double postings ????
Is this feasable or am I expecting too much.

thanks in advance

Mark :biggrin:

Order No OP Posted Set Allowed Set
30761157 0010 0.73 1.500
30761157 0010 0.50 0.000
30761157 0010 0.60 0.000
30764610 0010 0.00 0.000
30764610 0010 1.05 0.500
30765244 0010 0.00 0.000
30765244 0010 0.55 0.500
30766396 0010 0.00 0.000
30766396 0010 1.18 0.500
30768109 0010 0.00 0.000
30768629 0010 0.00 0.000
30768629 0010 0.00 0.000
30768629 0010 0.00 0.000
 
THE LAST FORMULA POSTED A 0 WHERE IT SHOULD OF POSTED 1.83 ????

I HAVE TRIED THE FOLOWWING FORMULA, JUST TO GIVE YOU SOME IDEA OF WHAT i AM TRYING TO ACHIEVE.

=SUMPRODUCT((D2>0)*(A:A=A2)*(B:B=B2),(C:C))

CHEERS..

MARK

Soooo Close yet sooooo far :)
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
EDIT

Hi Mark,

neither formula posted returned a zero value...Both returned 1.83...I made an error but went back and re-edited.
 
Upvote 0
Hello mark,

Did you try my suggestion a few posts back?

in E2 copied down

=IF(D2>0,SUMPRODUCT(--(A$2:A$14=A2),--(B$2:B$14=B2),C$2:C$14),"")

extend ranges beyond row 14 if necessary. You can't use whole column references with SUMPRODUCT
 
Upvote 0
Mate !!! what can I say, but Thank you.....
I think it now works using the =IF(D2>0,SUMPRODUCT(--(A$2:A$14=A2),--(B$2:B$14=B2),C$2:C$14),"")

So I have sat up long enough now on worl related problems, so I am going to hit the sack.. and will return to the job back at work tomorrow.

Cheers...

And thanks :biggrin: :biggrin: :biggrin:
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,726
Members
449,465
Latest member
TAKLAM

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