Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2017, 12:57 PM
janielsean janielsean is offline Countif returns 0 value Windows 10 Countif returns 0 value Office 2010 64bit
Novice
Countif returns 0 value
 
Join Date: Feb 2017
Posts: 3
janielsean is on a distinguished road
Default Countif returns 0 value

I have a range of numbers in a column (example below)

I tried =COUNTIF(A2:A9,"120????") and it returned a zero result,
I want to count how many cell value starts with 120

1202616
1201925
805230
630154
1103057
1202559
1156971
1201577
1163681

thanks
Reply With Quote
  #2  
Old 02-07-2017, 01:06 PM
xor xor is offline Countif returns 0 value Windows 10 Countif returns 0 value Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Try

=SUMPRODUCT(--(--(LEFT(A2:A10,3))=120))
Reply With Quote
  #3  
Old 02-07-2017, 09:13 PM
janielsean janielsean is offline Countif returns 0 value Windows 10 Countif returns 0 value Office 2010 64bit
Novice
Countif returns 0 value
 
Join Date: Feb 2017
Posts: 3
janielsean is on a distinguished road
Default

Thanks xor, tried it nothing happened but "#value!" error...


Quote:
Originally Posted by xor View Post
Try

=SUMPRODUCT(--(--(LEFT(A2:A10,3))=120))
Reply With Quote
  #4  
Old 02-07-2017, 10:46 PM
xor xor is offline Countif returns 0 value Windows 10 Countif returns 0 value Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Take a look here.
Attached Files
File Type: xlsx janielsean.xlsx (15.1 KB, 12 views)
Reply With Quote
  #5  
Old 02-08-2017, 08:56 AM
janielsean janielsean is offline Countif returns 0 value Windows 10 Countif returns 0 value Office 2010 64bit
Novice
Countif returns 0 value
 
Join Date: Feb 2017
Posts: 3
janielsean is on a distinguished road
Default

Quote:
Originally Posted by xor View Post
Take a look here.
thanks xor, it seems the values in each cells were not recognized by the formula somehow, I manually entered the numbers and the formula works just fine....

thanks much...

Jan
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif returns 0 value How to release hard returns? markg2 Word 13 05-08-2023 01:38 PM
Countif returns 0 value Formula returns wrong value bobsone1 Excel 2 08-19-2014 12:12 AM
Selection.InlineShapes(1).ScaleHeight returns '0' NobodysPerfect Word VBA 1 06-29-2014 03:59 PM
Countif returns 0 value No tabbing, no returns in forms? rdowney1 Word 7 06-29-2012 08:35 AM
IF formula returns TRUE instead of evaluating COUNTIF ColinC Excel 4 12-28-2011 08:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft