Countif in Googlesheets

josvill2010

New Member
Joined
Jun 1, 2011
Messages
40
Office Version
  1. 365
Hi, I have a straight forward formula to count all string starting with number 7 or 2. The usual Countif works well in most of the tabs.
There is one tab for which the formula appears not not working.
When I use =countif(Range,"7*"). It brings a zero. but I can see many strings starting with number 7 and 2.

When using =sumproduct(--(left(RANGE)="7")). I get #REF!
When I count them manually, i get 24 starting with 7 and 27 starting with number 2.

Any other suggestions to change the formula?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
If you're getting #REF! then that means that the range doesn't exist, if that is referring to a named range then it has not been defined correctly.
 
Upvote 0
If you're getting #REF! then that means that the range doesn't exist, if that is referring to a named range then it has not been defined correctly.
I tried to change the tab name to see if anything changes but nothing. It hasn't worked.
I checked to make sure and there is not named range used.
 
Upvote 0
If you change the tab name then you will need to edit the formula to reflect that. Even something as simple as an extra space can cause the error.

There is nothing else that will cause the error other than an incorrect name or sheet reference, whatever 'Range' refers to in your formulas.

As it's google sheets, you can post a link to your file here and I can take a look at it for you but please remember to allow editing before doing so.
 
Upvote 0

Forum statistics

Threads
1,223,373
Messages
6,171,698
Members
452,418
Latest member
kennettz

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