Correct my formula

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

mrhstn

Active Member
Joined
Jul 25, 2017
Messages
316
Should it count the cells that contain the string ".01:9.99" in range AZ30 to AZ999?
 

ironsides

Well-known Member
Joined
Aug 12, 2002
Messages
575

ADVERTISEMENT

the problem as written, the answer I get is zero when there are at least 150 cells
in col AZ that meet meet the criteria. All cols are formatted number
 

mrhstn

Active Member
Joined
Jul 25, 2017
Messages
316
You will need to provide more information this - ".01:9.99" - is not a number, it's a string with numbers in it. Exactly what are you trying to count in AZ30 through AZ999?
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
5,470
Office Version
  1. 2016
Platform
  1. Windows

ADVERTISEMENT

the problem as written, the answer I get is zero when there are at least 150 cells
in col AZ that meet meet the criteria. All cols are formatted number

Hi,

Maybe you have leading and/or trailing space(s) in the cells containing your criteria in Column AZ.
Assuming you have ".01:9.99" in AZ30, in an unused cell, enter: =LEN(AZ30)
you should get 8 as the answer, if not you have space(s).
 

mrhstn

Active Member
Joined
Jul 25, 2017
Messages
316
I have a feeling this might be a count of any value between 0.01 and 9.99 in the given range

Rich (BB code):
=COUNTIFS(AZ30:AZ999, ">=0.01", AZ30:AZ999, "<=9.99")

Rich (BB code):
=COUNTIF(AZ30:AZ999, {">=0.01","<=9.99"})

And just because I tried it...

Rich (BB code):
=SUMPRODUCT(--(ISNUMBER(MATCH(ROW($A$1:$A$999)/100,AZ30:AZ999,0))))
 

Watch MrExcel Video

Forum statistics

Threads
1,123,318
Messages
5,600,924
Members
414,416
Latest member
Nobu

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
Top