countifs with a round

MetLife

Active Member
Joined
Jul 2, 2012
Messages
334
Office Version
  1. 365
Hi,

I want to count the times column A is the same as column B, but I want to round to 2 decimal places. Is this possible?

Something like:
=COUNTIFS(Round(AR13:AR30000,2) = Round(AX13:AX30000,2))?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try this:
Excel Formula:
=SUMPRODUCT(--(ROUND(AR13:AR30000,2)=ROUND(AX13:AX30000,2)))
 
Upvote 0
Solution
Try this:
Excel Formula:
=SUMPRODUCT(--(ROUND(AR13:AR30000,2)=ROUND(AX13:AX30000,2)))
That basically works, but the problem is some rows have "#NA" errors. Is there any way to zero those values out?
 
Upvote 0
Are those #N/A errors the result of formulas?
If those, the best thing to do would be to change the formulas to handle the #N/A errors directly there.
Can you post the formula that is resulting in the error?
 
Upvote 0
Are those #N/A errors the result of formulas?
If those, the best thing to do would be to change the formulas to handle the #N/A errors directly there.
Can you post the formula that is resulting in the error?
OK yeah that makes the most sense in my situation
 
Upvote 0
OK, great.

Note that you should mark the post with the formula as the solution, as that is the post that answered your original question.
I have updated this for you.
 
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,337
Members
453,032
Latest member
Pauh

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