ROUND a range of values within a COUNTIF before comparison

sparky2205

Active Member
Joined
Feb 6, 2013
Messages
476
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi folks,
I have this formula:
=IF($D$6=$D$26,"n/a",COUNTIF($B$9:$V$18,">"&D7))


I want to convert this so it ROUNDS all cells in the range $B$9:$V$18 before it checks if it is > D7.
The values can be any precision between 1 and 6 places of decimals which is dictated by the value in G7.
So something like:
=IF($D$6=$D$26,"n/a",COUNTIF(ROUND($B$9,$G$7):ROUND($V$18,$G$7),">"&D7))

But this produces an error, error in formula not result, so I'm assuming that syntax is just wrong.

Thanks.
 
Hi, you could try this array formula:

=IF($D$6=$D$26,"n/a",SUM(IF(ISNUMBER($B$9:$V$18),IF(ROUND($B$9:$V$18,G7)>D7,1))))

Which you need to commit with control + shift + enter.
 
Upvote 0
Solution

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
He's got it. By George he's got it.
Works perfectly FormR.

Thanks very much for your time on this.
 
Upvote 0

Forum statistics

Threads
1,214,402
Messages
6,119,301
Members
448,885
Latest member
LokiSonic

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