Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul Dennis
 
Posts: n/a
Default COUNTIF 2 Conditions using Defined Names

SLA_GROUP is a defined name for a COL A
NO_ROLL_NUM is a defined name for COL B

COUNTIF(SLA_GROUP,$C5) works but I'm trying to COUNTIF based on SLA_GROUP =
C% and also were NO_ROLL_NUM = 11.

any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default COUNTIF 2 Conditions using Defined Names

=SUMPRODUCT(--(SLA_GROUP=$C5),--(NO_ROLL_NUM = 11))

those ranges must be the same size.

--

HTH

RP

"Paul Dennis" wrote in message
...
SLA_GROUP is a defined name for a COL A
NO_ROLL_NUM is a defined name for COL B

COUNTIF(SLA_GROUP,$C5) works but I'm trying to COUNTIF based on SLA_GROUP

=
C% and also were NO_ROLL_NUM = 11.

any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul Dennis
 
Posts: n/a
Default COUNTIF 2 Conditions using Defined Names

Getting error #NUM!

"Bob Phillips" wrote:

=SUMPRODUCT(--(SLA_GROUP=$C5),--(NO_ROLL_NUM = 11))

those ranges must be the same size.

--

HTH

RP

"Paul Dennis" wrote in message
...
SLA_GROUP is a defined name for a COL A
NO_ROLL_NUM is a defined name for COL B

COUNTIF(SLA_GROUP,$C5) works but I'm trying to COUNTIF based on SLA_GROUP

=
C% and also were NO_ROLL_NUM = 11.

any ideas?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default COUNTIF 2 Conditions using Defined Names

Hi

Try something like:
=SUMPRODUCT((SLA_GROUP="C%")*(NO_ROLL_NUM=11))

Andy.

"Paul Dennis" wrote in message
...
SLA_GROUP is a defined name for a COL A
NO_ROLL_NUM is a defined name for COL B

COUNTIF(SLA_GROUP,$C5) works but I'm trying to COUNTIF based on SLA_GROUP
=
C% and also were NO_ROLL_NUM = 11.

any ideas?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul Dennis
 
Posts: n/a
Default COUNTIF 2 Conditions using Defined Names

Getting error #NUM!


"Andy" wrote:

Hi

Try something like:
=SUMPRODUCT((SLA_GROUP="C%")*(NO_ROLL_NUM=11))

Andy.

"Paul Dennis" wrote in message
...
SLA_GROUP is a defined name for a COL A
NO_ROLL_NUM is a defined name for COL B

COUNTIF(SLA_GROUP,$C5) works but I'm trying to COUNTIF based on SLA_GROUP
=
C% and also were NO_ROLL_NUM = 11.

any ideas?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default COUNTIF 2 Conditions using Defined Names

Try this:
Redefine the "refers to" ranges of your defined names to include only rows 1
through 65535, instead of the whole column and NOT the whole column. (eg
A1:A65365 instead of A:A)

Then try your formula again.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Paul Dennis" wrote:

Getting error #NUM!


"Andy" wrote:

Hi

Try something like:
=SUMPRODUCT((SLA_GROUP="C%")*(NO_ROLL_NUM=11))

Andy.

"Paul Dennis" wrote in message
...
SLA_GROUP is a defined name for a COL A
NO_ROLL_NUM is a defined name for COL B

COUNTIF(SLA_GROUP,$C5) works but I'm trying to COUNTIF based on SLA_GROUP
=
C% and also were NO_ROLL_NUM = 11.

any ideas?




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul Dennis
 
Posts: n/a
Default COUNTIF 2 Conditions using Defined Names

This worked but I wanted to refer by defined name. It seems the only way
would be to combine both fields as a seperate field which is also something I
didn't want to do.

"Ron Coderre" wrote:

Try this:
Redefine the "refers to" ranges of your defined names to include only rows 1
through 65535, instead of the whole column and NOT the whole column. (eg
A1:A65365 instead of A:A)

Then try your formula again.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Paul Dennis" wrote:

Getting error #NUM!


"Andy" wrote:

Hi

Try something like:
=SUMPRODUCT((SLA_GROUP="C%")*(NO_ROLL_NUM=11))

Andy.

"Paul Dennis" wrote in message
...
SLA_GROUP is a defined name for a COL A
NO_ROLL_NUM is a defined name for COL B

COUNTIF(SLA_GROUP,$C5) works but I'm trying to COUNTIF based on SLA_GROUP
=
C% and also were NO_ROLL_NUM = 11.

any ideas?



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default COUNTIF 2 Conditions using Defined Names

I'm sorry....I must not have been clear. Try redefining the range that is
referred to in your named ranges.

InsertNamesDefine
Select: SLA_GROUP
Refers to: change this from an entire column to rows 1 through 65535 of that
column)

Repeat for the NO_ROLL_NUM named range

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Paul Dennis" wrote:

This worked but I wanted to refer by defined name. It seems the only way
would be to combine both fields as a seperate field which is also something I
didn't want to do.

"Ron Coderre" wrote:

Try this:
Redefine the "refers to" ranges of your defined names to include only rows 1
through 65535, instead of the whole column and NOT the whole column. (eg
A1:A65365 instead of A:A)

Then try your formula again.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Paul Dennis" wrote:

Getting error #NUM!


"Andy" wrote:

Hi

Try something like:
=SUMPRODUCT((SLA_GROUP="C%")*(NO_ROLL_NUM=11))

Andy.

"Paul Dennis" wrote in message
...
SLA_GROUP is a defined name for a COL A
NO_ROLL_NUM is a defined name for COL B

COUNTIF(SLA_GROUP,$C5) works but I'm trying to COUNTIF based on SLA_GROUP
=
C% and also were NO_ROLL_NUM = 11.

any ideas?



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
Rename Defined Names Sige Excel Worksheet Functions 3 January 13th 06 05:44 PM
How to delete all defined names from a workbook? Dmitry Kopnichev Excel Worksheet Functions 15 November 14th 05 03:26 PM
COUNTIF - multiple conditions allphin Excel Worksheet Functions 4 September 18th 05 04:05 PM
How can I use COUNTIF to sum for two conditions? Jeff Excel Worksheet Functions 4 December 30th 04 05:25 AM
Combining Defined Names to New Name For Validation TheSpankster22 Excel Worksheet Functions 0 November 4th 04 01:28 AM


All times are GMT +1. The time now is 02:05 PM.

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"