LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Remove a criteria from countif based on user selection

Hello!

I am trying to design an output for my spreadsheet which shows the
number of items in a list that match user selected criteria. For
example with the following data set:

A B
1 Male? Over 18?
2 TRUE TRUE
3 TRUE FALSE
4 FALSE TRUE
5 FALSE FALSE
6 FALSE TRUE

I would use the following function:

=COUNTIFS($A$2:$A$6,[User input 1],$B$2:$B$6,[User input 2])

Where the user inputs are TRUE or FALSE drop down boxes that allow the
user to select the gender and age categories they wish to count.

I wish to amend this formula so that I can have a "Don't Care" option
in my user inputs. This would allow the user to count the number of
items that match only one of the criteria.

The real life version of this has a large number of columns all
containing booleans.

I do not want to use a pivot table for this.

Does anybody know how I could achieve this?

Thanks

John
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif based on two criteria MJKelly Excel Worksheet Functions 4 October 13th 08 03:39 PM
Need to combine countIF with AND for selection criteria MikeB Excel Discussion (Misc queries) 1 June 18th 08 01:58 AM
Selection of Cells based on a criteria Scott Excel Discussion (Misc queries) 2 July 27th 07 04:47 PM
Countif based on 2 criteria N E Body Excel Worksheet Functions 5 August 22nd 05 02:15 AM
Compiling values based on selection criteria Bartholomew Simpson Excel Programming 2 August 5th 04 08:30 PM


All times are GMT +1. The time now is 01:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"