Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2016, 10:11 AM
Ted C Ted C is offline COUNTIFS with two criteria returns wrong result Windows XP COUNTIFS with two criteria returns wrong result Office 2007
Novice
COUNTIFS with two criteria returns wrong result
 
Join Date: Oct 2011
Posts: 18
Ted C is on a distinguished road
Question COUNTIFS with two criteria returns wrong result

My coworker is trying to count documents of particular criteria for reporting purposes. We do reviews of documents submitted to our client, although the review is sometimes waived. We want to be able to count total documents of each type, and how many were waived of that type.

This issue occurs in cell C:4 of the Metric Totals tab. It should return the number of code documents for which the review was waived. The correct number is 15, but the function returns 0.

The function is written as follows:



=COUNTIFS('Combined 2015'!C:C, "Code", 'Combined 2015'!B:B, "WPR" )

The "Combined 2015" tab contains aggregate data on reviews.
Column C contains the document type.
Column B contains whether the document was reviewed or waived: "WPR" indicates it was reviewed.

There are 15 "Code" reviews the the "WPR" value in the "Combined 2015" tab.

The file exceeds the 500 KB upload limit. If this information is not sufficient, I can upload a reduced version of the Excel file.
Reply With Quote
  #2  
Old 01-16-2016, 12:39 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline COUNTIFS with two criteria returns wrong result Windows 7 64bit COUNTIFS with two criteria returns wrong result Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

By all means post a small sample on the board - Thx
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 01-18-2016, 02:34 AM
Debaser's Avatar
Debaser Debaser is offline COUNTIFS with two criteria returns wrong result Windows 7 64bit COUNTIFS with two criteria returns wrong result Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

Most probable cause is leading or trailing spaces. What do:
=COUNTIF('Combined 2015'!C:C, "Code")
and
=COUNTIF('Combined 2015'!B:B, "WPR")
return respectively?
Reply With Quote
  #4  
Old 01-19-2016, 07:50 AM
Ted C Ted C is offline COUNTIFS with two criteria returns wrong result Windows XP COUNTIFS with two criteria returns wrong result Office 2007
Novice
COUNTIFS with two criteria returns wrong result
 
Join Date: Oct 2011
Posts: 18
Ted C is on a distinguished road
Default

While trying to reduce the file size enough to post a copy, I apparently deleted something that kept the function from working. The COUNTIFS function returns correct values in the 497 KB sample I was going to send.
Reply With Quote
Reply

Tags
countifs



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a VLOOKUP - when 2 rows match criteria it returns the first value in the cel only how 2 change djrobst Excel 4 10-28-2015 01:32 AM
COUNTIFS with two criteria returns wrong result Clicking the selected Content Control checkbox returns wrong control in vba event DougsGraphics Word VBA 2 06-24-2015 07:31 AM
COUNTIFS with two criteria returns wrong result formula, 2 criteria, one result cjdstephenson Excel 4 06-02-2015 09:17 PM
COUNTIFS with two criteria returns wrong result Formula returns wrong value bobsone1 Excel 2 08-19-2014 12:12 AM
IF formula returns wrong result mashley Excel 3 09-07-2012 07:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:24 PM.


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