Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2014, 08:12 AM
Alaska1 Alaska1 is offline count if statements Windows 7 64bit count if statements Office 2007
Competent Performer
count if statements
 
Join Date: Nov 2011
Posts: 110
Alaska1 is on a distinguished road
Default count if statements

I am trying to add two countif statements together. I need to set the criteria for column H for Real Estate and then add countif for Column M for Promote.

If I use the statement below it is adding the both columns together.



=COUNTIFS('2014'!$H:$H,"Real Estate")+COUNTIFS('2014'!$M:$M,"Promote")
Reply With Quote
  #2  
Old 05-14-2014, 08:21 AM
BobBridges's Avatar
BobBridges BobBridges is offline count if statements Windows 7 64bit count if statements Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Alaska, my first reaction is "but he said he wants to add the two COUNTIFs together, and he told it to add the two COUNTIFs together, and it's adding the two COUNTIFs together—so what's the problem?"

This formula will produce the number of "Real Estate"s in column H plus the number of "Promote"s in column M. Since you're not happy with it, I'm guessing what you want must be the number of lines that have both values—{AND}, not {OR}.

If so, I've never used it but I think what you want is this:
Code:
=COUNTIFS('2014'!$H:$H,"Real Estate",'2014'!$M:$M,"Promote")
And only now I notice you actually did use COUNTIFS, not COUNTIF; you just used two of them.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
count if statements Multiple If statements, Jamal NUMAN Excel 16 11-15-2022 11:59 PM
If Statements in a form Sammie0Sue Word VBA 4 03-12-2014 01:16 AM
Multiple If statements bremen22 Excel 2 10-15-2013 06:37 AM
count if statements showing results of If statements in a mail merge m&co Mail Merge 3 01-06-2012 07:27 PM
IF statements that shifts to right. kent Excel 0 01-19-2006 02:23 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:00 PM.


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