Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default Help with Excel 2007 Formula

=SUM(COUNTIF(D36:D606,"$L5$L6$L7"))+(COUNTIF(H36:H 606,"hC"))
Trying to count the number of L5,L6,L7 in column range D36:D606, for a total
count. Then I want that total number of L5,L6,L7 (one sum)to display the
total hC count shown in column H36:H606. I can't seem to get the total
number of hC for L5,L6,L7.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Help with Excel 2007 Formula

Well, to start with, I don't understand what you are trying to do with the
SUM function.
What is it that you want the SUM function to add to
COUNTIF(D36:D606,"$L5$L6$L7")?
If you don't understand what the SUM function does, look it up in Excel
help.

In the COUNTIF you are looking in cloumn D for the string "$L5$L6$L7", but I
have a feeling that you didn't want to do that.
If what you are trying to do is count the number of rows in which:
a column D contains either the value from L5 or the value from L6 or the
value from L7
and
b column H contains the striong "hC"
then you could try
=SUMPRODUCT(((D36:D606=$L5)+(D36:D606=$L6)+(D36:D6 06=$L7)),--(H36:H606="hC"))
if L5,L6,L7 contain no duplicates, or
=SUMPRODUCT(((D36:D606=$L5)+(D36:D606=$L6)+(D36:D6 06=$L7))0,--(H36:H606="hC"))
if there might be duplicates.
--
David Biddulph


"Marilyn" wrote in message
...
=SUM(COUNTIF(D36:D606,"$L5$L6$L7"))+(COUNTIF(H36:H 606,"hC"))
Trying to count the number of L5,L6,L7 in column range D36:D606, for a
total
count. Then I want that total number of L5,L6,L7 (one sum)to display the
total hC count shown in column H36:H606. I can't seem to get the total
number of hC for L5,L6,L7.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Help with Excel 2007 Formula

Not very clear what you are trying to do. Are you simply adding up the
total number of L5, L6, L7 and hC instances in the 2 columns (as your formula
would suggest)? Or is there more to it than that? To achieve the above then
the formula should read:

=SUM(COUNTIF(D36:D606,"=L5") + COUNTIF( D36:D606,"=L6") + COUNTIF( D36:D606,
"=L7") + COUNTIF(H36:H606, "=hC"))

Please explain more if this is not what you are trying to do.

If this was helpful, click Yes.

"Marilyn" wrote:

=SUM(COUNTIF(D36:D606,"$L5$L6$L7"))+(COUNTIF(H36:H 606,"hC"))
Trying to count the number of L5,L6,L7 in column range D36:D606, for a total
count. Then I want that total number of L5,L6,L7 (one sum)to display the
total hC count shown in column H36:H606. I can't seem to get the total
number of hC for L5,L6,L7.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Help with Excel 2007 Formula

I think you've missed something, Geoff.

One argument for your SUM function is
COUNTIF(D36:D606,"=L5") + COUNTIF( D36:D606,"=L6") + COUNTIF( D36:D606,
"=L7") + COUNTIF(H36:H606, "=hC")
but it isn't clear what you want to SUM to that.
Or did you intend your formula not to be
=SUM(COUNTIF(D36:D606,"=L5") + COUNTIF( D36:D606,"=L6") + COUNTIF( D36:D606,
"=L7") + COUNTIF(H36:H606, "=hC"))
but just
=COUNTIF(D36:D606,"=L5") + COUNTIF( D36:D606,"=L6") + COUNTIF( D36:D606,
"=L7") + COUNTIF(H36:H606, "=hC") ?

If you don't understand what the SUM function does, look it up in Excel
help.

And are you sure that the OP wanted for look for the text string L5 (or L6,
or L7)? I had assumed that she was looking in column D for a value equal to
the value in cell L5 or L6 or L7.
I agree with you that it wasn't clear what the OP was trying to do. I made
a guess in my reply to the thread, but we are all guessing.
--
David Biddulph


"Geoff_L" wrote in message
...
Not very clear what you are trying to do. Are you simply adding up the
total number of L5, L6, L7 and hC instances in the 2 columns (as your
formula
would suggest)? Or is there more to it than that? To achieve the above
then
the formula should read:

=SUM(COUNTIF(D36:D606,"=L5") + COUNTIF( D36:D606,"=L6") + COUNTIF(
D36:D606,
"=L7") + COUNTIF(H36:H606, "=hC"))

Please explain more if this is not what you are trying to do.

If this was helpful, click Yes.

"Marilyn" wrote:

=SUM(COUNTIF(D36:D606,"$L5$L6$L7"))+(COUNTIF(H36:H 606,"hC"))
Trying to count the number of L5,L6,L7 in column range D36:D606, for a
total
count. Then I want that total number of L5,L6,L7 (one sum)to display the
total hC count shown in column H36:H606. I can't seem to get the total
number of hC for L5,L6,L7.



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
Excel 2007 Formula and VBA help Preschool Mike Excel Discussion (Misc queries) 5 August 25th 09 12:45 AM
Formula bar - Excel 2007 Idoia Excel Discussion (Misc queries) 6 April 21st 09 07:24 PM
formula excel 2007 john Excel Discussion (Misc queries) 3 November 28th 08 10:14 PM
I need a formula for excel 2007 colwyn Excel Discussion (Misc queries) 7 October 20th 08 04:30 PM
excel 2007 formula STEVE THE PARTS GUY Excel Worksheet Functions 1 August 20th 07 02:20 PM


All times are GMT +1. The time now is 04:40 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"