PC Review


Reply
Thread Tools Rate Thread

3 Array Formula

 
 
=?Utf-8?B?U2hhemFt?=
Guest
Posts: n/a
 
      24th Sep 2007
I have an EEO spreadsheet that I need to put an array formula for Sex, Race,
& EEO category. I have Sex in the "C" column, Race in the "D" column, and
EEO in the "G" column, and "H7" for the Male gender match, "I7" for "01" Race
code match, and EEO category 01 is in "J7". I can get my array to work if I
delete the last EEO segment in the formula out, but I cannot get it to work
with it. Do I have too many segments for it to work? Below is my formula:
Please help. Thank you.

=SUM(IF($C$4:$C$443=$H$7,IF($D$4:$D$443=$I$7,IF($G$4:$G$443=$J$7,1,0),0)))

 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      24th Sep 2007
Unless you have Excel 2007 with SUMIFS you need to use SUMPRODUCT

=SUMPRODUCT(--($C$4:$C$443=$H$7),--($D$4:$D$443=$I$7),--($G$4:$G$443=$J$7))

Will tell you how may records have C-cell = H7 and D-cell =I7 and G-cell =
J7
For more details see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Shazam" <(E-Mail Removed)> wrote in message
news:A7006BD1-C907-43AE-9AED-(E-Mail Removed)...
>I have an EEO spreadsheet that I need to put an array formula for Sex,
>Race,
> & EEO category. I have Sex in the "C" column, Race in the "D" column, and
> EEO in the "G" column, and "H7" for the Male gender match, "I7" for "01"
> Race
> code match, and EEO category 01 is in "J7". I can get my array to work if
> I
> delete the last EEO segment in the formula out, but I cannot get it to
> work
> with it. Do I have too many segments for it to work? Below is my
> formula:
> Please help. Thank you.
>
> =SUM(IF($C$4:$C$443=$H$7,IF($D$4:$D$443=$I$7,IF($G$4:$G$443=$J$7,1,0),0)))
>



 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      24th Sep 2007
I would think it very likely that you'd do better with a Pivot Table:

http://peltiertech.com/Excel/Pivots/pivotstart.htm


In article <A7006BD1-C907-43AE-9AED-(E-Mail Removed)>,
Shazam <(E-Mail Removed)> wrote:

> I have an EEO spreadsheet that I need to put an array formula for Sex, Race,
> & EEO category. I have Sex in the "C" column, Race in the "D" column, and
> EEO in the "G" column, and "H7" for the Male gender match, "I7" for "01" Race
> code match, and EEO category 01 is in "J7". I can get my array to work if I
> delete the last EEO segment in the formula out, but I cannot get it to work
> with it. Do I have too many segments for it to work? Below is my formula:
> Please help. Thank you.
>
> =SUM(IF($C$4:$C$443=$H$7,IF($D$4:$D$443=$I$7,IF($G$4:$G$443=$J$7,1,0),0)))

 
Reply With Quote
 
=?Utf-8?B?VG9wcGVycw==?=
Guest
Posts: n/a
 
      24th Sep 2007
try:

=SUMPRODUCT(--($C$4:$C$443=$H$7),--($D$4:$D$443=$I$7),--($G$4:$G$443=$J$7))


"Shazam" wrote:

> I have an EEO spreadsheet that I need to put an array formula for Sex, Race,
> & EEO category. I have Sex in the "C" column, Race in the "D" column, and
> EEO in the "G" column, and "H7" for the Male gender match, "I7" for "01" Race
> code match, and EEO category 01 is in "J7". I can get my array to work if I
> delete the last EEO segment in the formula out, but I cannot get it to work
> with it. Do I have too many segments for it to work? Below is my formula:
> Please help. Thank you.
>
> =SUM(IF($C$4:$C$443=$H$7,IF($D$4:$D$443=$I$7,IF($G$4:$G$443=$J$7,1,0),0)))
>

 
Reply With Quote
 
=?Utf-8?B?U2hhemFt?=
Guest
Posts: n/a
 
      24th Sep 2007
I am reviewing the websites you provided, which I really appreciate. The
formula works great! Thank you so very much!


> Unless you have Excel 2007 with SUMIFS you need to use SUMPRODUCT
>
> =SUMPRODUCT(--($C$4:$C$443=$H$7),--($D$4:$D$443=$I$7),--($G$4:$G$443=$J$7))
>
> Will tell you how may records have C-cell = H7 and D-cell =I7 and G-cell =
> J7
> For more details see
> http://www.xldynamic.com/source/xld.SUMPRODUCT.html
> http://mcgimpsey.com/excel/formulae/doubleneg.html
> best wishes
> --
> Bernard V Liengme
> Microsoft Excel MVP
> www.stfx.ca/people/bliengme
> remove caps from email
>
> "Shazam" <(E-Mail Removed)> wrote in message
> news:A7006BD1-C907-43AE-9AED-(E-Mail Removed)...
> >I have an EEO spreadsheet that I need to put an array formula for Sex,
> >Race,
> > & EEO category. I have Sex in the "C" column, Race in the "D" column, and
> > EEO in the "G" column, and "H7" for the Male gender match, "I7" for "01"
> > Race
> > code match, and EEO category 01 is in "J7". I can get my array to work if
> > I
> > delete the last EEO segment in the formula out, but I cannot get it to
> > work
> > with it. Do I have too many segments for it to work? Below is my
> > formula:
> > Please help. Thank you.
> >
> > =SUM(IF($C$4:$C$443=$H$7,IF($D$4:$D$443=$I$7,IF($G$4:$G$443=$J$7,1,0),0)))
> >

>
>
>

 
Reply With Quote
 
=?Utf-8?B?U2hhemFt?=
Guest
Posts: n/a
 
      24th Sep 2007
Thank you so very much, the formula works great!



"Toppers" wrote:

> try:
>
> =SUMPRODUCT(--($C$4:$C$443=$H$7),--($D$4:$D$443=$I$7),--($G$4:$G$443=$J$7))
>
>
> "Shazam" wrote:
>
> > I have an EEO spreadsheet that I need to put an array formula for Sex, Race,
> > & EEO category. I have Sex in the "C" column, Race in the "D" column, and
> > EEO in the "G" column, and "H7" for the Male gender match, "I7" for "01" Race
> > code match, and EEO category 01 is in "J7". I can get my array to work if I
> > delete the last EEO segment in the formula out, but I cannot get it to work
> > with it. Do I have too many segments for it to work? Below is my formula:
> > Please help. Thank you.
> >
> > =SUM(IF($C$4:$C$443=$H$7,IF($D$4:$D$443=$I$7,IF($G$4:$G$443=$J$7,1,0),0)))
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array formula SUMIF with 2D sum_range array Rich_84 Microsoft Excel Worksheet Functions 3 3rd Apr 2009 10:46 PM
Array formula: how to join 2 ranges together to form one array? Rich_84 Microsoft Excel Worksheet Functions 2 1st Apr 2009 06:38 PM
Difference between results of array formula and non-array, with IF(ISNUMBER) THOMAS CONLON Microsoft Excel Discussion 3 27th Aug 2006 10:22 PM
Tricky array formula issue - Using array formula on one cell, then autofilling down a range aspenbordr Microsoft Excel Programming 0 27th Jul 2005 03:59 PM
Array Formula - Use of OFFSET function with array argument Alan Microsoft Excel Worksheet Functions 2 11th Feb 2004 09:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:14 PM.