#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Count if help

Hi and thanks in advance for your help!

I have a workbook where I have a listing of "client codes". On another
sheet I have a listing of data that could have many lines for each client
code. I'm looking for a counting formula on the first sheet, that will match
the client code from the second sheet AND, count it only if another column
equals specific text.

so for cell A2 ws1, I want to count how many times on ws 2, there is a match
for A1 ws1, that also meets the criteria of column H = "H98"

It's difficult to explain, but I'm certain there is a way to have multiple
criteria met?

thanks again!!

Cathy
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Count if help

Assuming your 2nd sheet is called Sheet2, and your first sheet (Sheet1) has a
client code in A2, to do your count, type the following formula in the same
row (whatever column, I used B)
B2: =SUMPRODUCT(--(Sheet2!$A$2:$A$100=$A2),--(Sheet2!$H$2:$H$100="H98"))
you could obviously set a different cell for your second criteria, and the 2
ranges, that I have to 100, would need to be expanded to whatever row to meet
your needs on sheet 2.
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"cware" wrote:

Hi and thanks in advance for your help!

I have a workbook where I have a listing of "client codes". On another
sheet I have a listing of data that could have many lines for each client
code. I'm looking for a counting formula on the first sheet, that will match
the client code from the second sheet AND, count it only if another column
equals specific text.

so for cell A2 ws1, I want to count how many times on ws 2, there is a match
for A1 ws1, that also meets the criteria of column H = "H98"

It's difficult to explain, but I'm certain there is a way to have multiple
criteria met?

thanks again!!

Cathy

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count if help

meets the criteria of column H = "H98"

Is "H98" a text code or is it a cell reference?

Try something like this where "H98" is a text code:

=SUMPRODUCT(--(Sheet2!A2:A100=A2),--(Sheet2!H2:H100="H98"))

--
Biff
Microsoft Excel MVP


"cware" wrote in message
...
Hi and thanks in advance for your help!

I have a workbook where I have a listing of "client codes". On another
sheet I have a listing of data that could have many lines for each client
code. I'm looking for a counting formula on the first sheet, that will
match
the client code from the second sheet AND, count it only if another column
equals specific text.

so for cell A2 ws1, I want to count how many times on ws 2, there is a
match
for A1 ws1, that also meets the criteria of column H = "H98"

It's difficult to explain, but I'm certain there is a way to have multiple
criteria met?

thanks again!!

Cathy



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Count if help

John:

thanks for your quick response. I copied this formula into the cell where I
want the answer and replaced the spread so this is what my formula now looks
like:

=SUMPRODUCT(--(Production!A:A=A5),--(Production!J:J="H98"))

the result is showing #NUM!

I don't want to sound too ignorant about formulas, but I'm not sure what the
-- implies? or am I to replace them with a specific keystroke?

thanks again

Cathy

"John C" wrote:

Assuming your 2nd sheet is called Sheet2, and your first sheet (Sheet1) has a
client code in A2, to do your count, type the following formula in the same
row (whatever column, I used B)
B2: =SUMPRODUCT(--(Sheet2!$A$2:$A$100=$A2),--(Sheet2!$H$2:$H$100="H98"))
you could obviously set a different cell for your second criteria, and the 2
ranges, that I have to 100, would need to be expanded to whatever row to meet
your needs on sheet 2.
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"cware" wrote:

Hi and thanks in advance for your help!

I have a workbook where I have a listing of "client codes". On another
sheet I have a listing of data that could have many lines for each client
code. I'm looking for a counting formula on the first sheet, that will match
the client code from the second sheet AND, count it only if another column
equals specific text.

so for cell A2 ws1, I want to count how many times on ws 2, there is a match
for A1 ws1, that also meets the criteria of column H = "H98"

It's difficult to explain, but I'm certain there is a way to have multiple
criteria met?

thanks again!!

Cathy

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count if help

Unless you're using Excel 2007 you *can't* use entire coulmns as range
references. Try using a specific range.

--
Biff
Microsoft Excel MVP


"cware" wrote in message
...
John:

thanks for your quick response. I copied this formula into the cell where
I
want the answer and replaced the spread so this is what my formula now
looks
like:

=SUMPRODUCT(--(Production!A:A=A5),--(Production!J:J="H98"))

the result is showing #NUM!

I don't want to sound too ignorant about formulas, but I'm not sure what
the
-- implies? or am I to replace them with a specific keystroke?

thanks again

Cathy

"John C" wrote:

Assuming your 2nd sheet is called Sheet2, and your first sheet (Sheet1)
has a
client code in A2, to do your count, type the following formula in the
same
row (whatever column, I used B)
B2: =SUMPRODUCT(--(Sheet2!$A$2:$A$100=$A2),--(Sheet2!$H$2:$H$100="H98"))
you could obviously set a different cell for your second criteria, and
the 2
ranges, that I have to 100, would need to be expanded to whatever row to
meet
your needs on sheet 2.
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"cware" wrote:

Hi and thanks in advance for your help!

I have a workbook where I have a listing of "client codes". On another
sheet I have a listing of data that could have many lines for each
client
code. I'm looking for a counting formula on the first sheet, that will
match
the client code from the second sheet AND, count it only if another
column
equals specific text.

so for cell A2 ws1, I want to count how many times on ws 2, there is a
match
for A1 ws1, that also meets the criteria of column H = "H98"

It's difficult to explain, but I'm certain there is a way to have
multiple
criteria met?

thanks again!!

Cathy





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Count if help

You can't use full-column references with SUMPRODUCT if you have Excel
2003 or earlier, so change the ranges to suit the extent of your data.

Hope this helps.

Pete

On Nov 5, 5:35*pm, cware wrote:
John:

thanks for your quick response. *I copied this formula into the cell where I
want the answer and replaced the spread so this is what my formula now looks
like:

=SUMPRODUCT(--(Production!A:A=A5),--(Production!J:J="H98"))

the result is showing *#NUM!

I don't want to sound too ignorant about formulas, but I'm not sure what the
-- implies? *or am I to replace them with a specific keystroke?

thanks again

Cathy



"John C" wrote:
Assuming your 2nd sheet is called Sheet2, and your first sheet (Sheet1) has a
client code in A2, to do your count, type the following formula in the same
row (whatever column, I used B)
B2: =SUMPRODUCT(--(Sheet2!$A$2:$A$100=$A2),--(Sheet2!$H$2:$H$100="H98"))
you could obviously set a different cell for your second criteria, and the 2
ranges, that I have to 100, would need to be expanded to whatever row to meet
your needs on sheet 2.
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"cware" wrote:


Hi and thanks in advance for your help!


I have a workbook where I have a listing of "client codes". *On another
sheet I have a listing of data that could have many lines for each client
code. *I'm looking for a counting formula on the first sheet, that will match
the client code from the second sheet AND, count it only if another column
equals specific text.


so for cell A2 ws1, I want to count how many times on ws 2, there is a match
for A1 ws1, that also meets the criteria of column H = "H98"


It's difficult to explain, but I'm certain there is a way to have multiple
criteria met?


thanks again!!


Cathy- Hide quoted text -


- Show quoted text -


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Count if help

Yeah, what Biff and Pete said. Remember, when you give the specific ranges,
they must be of equal length, and you want to be sure to use the $ for column
and row in the named ranges (especially the row).
--
** John C **

"cware" wrote:

John:

thanks for your quick response. I copied this formula into the cell where I
want the answer and replaced the spread so this is what my formula now looks
like:

=SUMPRODUCT(--(Production!A:A=A5),--(Production!J:J="H98"))

the result is showing #NUM!

I don't want to sound too ignorant about formulas, but I'm not sure what the
-- implies? or am I to replace them with a specific keystroke?

thanks again

Cathy

"John C" wrote:

Assuming your 2nd sheet is called Sheet2, and your first sheet (Sheet1) has a
client code in A2, to do your count, type the following formula in the same
row (whatever column, I used B)
B2: =SUMPRODUCT(--(Sheet2!$A$2:$A$100=$A2),--(Sheet2!$H$2:$H$100="H98"))
you could obviously set a different cell for your second criteria, and the 2
ranges, that I have to 100, would need to be expanded to whatever row to meet
your needs on sheet 2.
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"cware" wrote:

Hi and thanks in advance for your help!

I have a workbook where I have a listing of "client codes". On another
sheet I have a listing of data that could have many lines for each client
code. I'm looking for a counting formula on the first sheet, that will match
the client code from the second sheet AND, count it only if another column
equals specific text.

so for cell A2 ws1, I want to count how many times on ws 2, there is a match
for A1 ws1, that also meets the criteria of column H = "H98"

It's difficult to explain, but I'm certain there is a way to have multiple
criteria met?

thanks again!!

Cathy

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
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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