Multiplication As Countifs Criteria

andybason

Board Regular
Joined
Jan 7, 2012
Messages
217
Office Version
  1. 2016
I am trying to use a multiplication formula in a Countifs formula. It's not working, just returning 0. Can anyone see what I am doing wrong?

=COUNTIFS(BallByBallTable[inningsNo],1,BallByBallTable[ballRank],$A26,BallByBallTable[currentWkts],0,BallByBallTable[currentRuns],">(B26*5)")

Thanks
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try it like
Excel Formula:
=COUNTIFS(BallByBallTable[inningsNo],1,BallByBallTable[ballRank],$A26,BallByBallTable[currentWkts],0,BallByBallTable[currentRuns],">"&(B26*5))
 
Upvote 0
Solution
Thanks Fluff, that works. What I am actually trying to do is say greater than B26*5 and less than B26*6. When I add BallByBallTable[currentRuns],"<"&(B26*6) it goes back to returning 0 again.

Is there some sort of limit? I'm using Excel 2016.
 
Upvote 0
You should be able to do that. What is your current formula?
 
Upvote 0
Hi Fluff, this is what I tried:

Excel Formula:
=COUNTIFS(BallByBallTable[inningsNo],1,BallByBallTable[ballRank],$A26,BallByBallTable[currentWkts],0,BallByBallTable[currentRuns],">"&($B26*5),BallByBallTable[currentRuns],"<"&($B26*5.99))
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0
I've been using Countifs to count up the number of times a particular UPC comes up relative to a certain Register to crosscheck our store staff accuracy with physical bills. However, our POS system recently updated and now no longer lists each instance of the UPC separately. They've added a quantity column for each UPC for each transaction. Is there a way to multiply the counted UPC occurrence by the quantity listed in that column?
 
Upvote 0
As this is a totally different question, you need to start a new thread. when you do that please provide samples of your data.
Thanks
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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