Computing.Net > Forums > Windows XP > Countifs w/an OR

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Countifs w/an OR

Reply to Message Icon

Name: Stumped
Date: January 30, 2009 at 09:03:52 Pacific
OS: Windows XP
Subcategory: General
Comment:

I am trying to count the number of times where a criteria is satisfied in Column A OR Column B. That is, count the number of times that Age in Column A is <10 or Age in Column B is <10. If I use the Countifs it returns the number of times both criteria are met and I am at a loss for how to say Countif this OR this criteria is met, not countifs this AND this criteria is met. Help!



Sponsored Link
Ads by Google

Response Number 1
Name: Ed in Texas.
Date: January 30, 2009 at 23:28:17 Pacific
Reply:

Stumped, seems to me that you just need a couple of variables. Use the countifs statement in conjunction with an if/then/else statement to determine col. A or col. B so you know which one to increment. Increment variable 'A' or 'B' as each is encountered and then print the variables when you're done and reset so you're ready for next time.
HTH.
Ed in Texas.


0
Reply to Message Icon

Related Posts

See More


Mass Mailing doesn't work... Strange http 501/503 beha...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Countifs w/an OR

1 drive w/60GB or 2 smaller drives? www.computing.net/answers/windows-xp/1-drive-w60gb-or-2-smaller-drives/95890.html

installing win xp w/ an upgrade cd www.computing.net/answers/windows-xp/installing-win-xp-w-an-upgrade-cd/134192.html

Unsolvable crashes. www.computing.net/answers/windows-xp/unsolvable-crashes/106250.html