View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier[_3_] Roger Govier[_3_] is offline
external usenet poster
 
Posts: 2,480
Default Conditional formatting for data in 2 columns

Is that right?
Almost <bg

=sumif(G1:G8,"w",H1:H8)


--
Regards
Roger Govier

"ldenning" wrote in message
...
So, if my data looked like this:

Column G Column H
w 2
w 1
w 3
b 1
w 4
b 3
h 1
w 2

Then my formula would need to look like this:

=sumif(G1:G8, "w", count H1:H8)

Is that right?

"Roger Govier" wrote:

Hi

Use Sumif instead
=SUMIF(Ethnicity_column,Ethnicity,Count_column)

--
Regards
Roger Govier

"ldenning" wrote in message
...
I need a formula that will calculate the number of contacts that I make
within a particular ethinicity. I have two columns, with the household
ethnicity in one column and then the number of contacts in that
household
in
the second. What formula can I use count the total number of contacts
within
an ethnicity? I first tried the CountIf function, but realized that I
was
only receiving a count of the instances of a particular ethnicity and
not
the
actual number of contacts.