Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DTomSimpson
 
Posts: n/a
Default Using COUNTIF to check values in multiple columns

I want to be able to check those identified as Male in Column A who voted YES
in Column G. COUNTIF appears to work to check count of males or who voted
YES but I can't seem to figure out how to find out how many MALES voted YES.

I'm new to this, so I'm confident this is something easy that I just haven't
found yet.
Your help is appreciated.
  #2   Report Post  
RagDyer
 
Posts: n/a
Default

Enter the gender you're looking up in B1 (Male, Female),
And the answer (Yes, No) in H1,

And try this formula:


=SUMPRODUCT((A2:A100=B1)*(G2:G100=H1))
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"DTomSimpson" wrote in message
...
I want to be able to check those identified as Male in Column A who voted
YES
in Column G. COUNTIF appears to work to check count of males or who voted
YES but I can't seem to figure out how to find out how many MALES voted YES.

I'm new to this, so I'm confident this is something easy that I just haven't
found yet.
Your help is appreciated.

  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

=SUMPRODUCT(--(A1:A100="Male"),--(G1:G100="Yes"))

Or, use cells to hold the criteria:

H1 = Male
I1 = Yes

=SUMPRODUCT(--(A1:A100=H1),--(G1:G100=I1))

Biff

-----Original Message-----
I want to be able to check those identified as Male in

Column A who voted YES
in Column G. COUNTIF appears to work to check count of

males or who voted
YES but I can't seem to figure out how to find out how

many MALES voted YES.

I'm new to this, so I'm confident this is something easy

that I just haven't
found yet.
Your help is appreciated.
.

Reply
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
Formula to compare multiple rows values based on another column? Murph Excel Worksheet Functions 4 February 21st 05 02:44 AM
Multiple X-Axis Values Rob Herrmann Charts and Charting in Excel 2 January 23rd 05 10:57 PM
Convert multiple columns to rows Lois Lane Excel Worksheet Functions 8 January 10th 05 12:47 AM
COUNTIF With Multiple Dates, Columns and Text Shannon Excel Worksheet Functions 4 November 26th 04 11:12 PM
Need to sum values of columns 1 - 13 and 4 - 15 ExcelHelp Excel Worksheet Functions 1 October 27th 04 07:03 PM


All times are GMT +1. The time now is 02:25 AM.

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

About Us

"It's about Microsoft Excel"