Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MANDY
 
Posts: n/a
Default How do I combine 2 COUNTIF formulas??

These are my formulas: =COUNTIF(Mo!D8:D53,"PM") =COUNTIF(J8:J53,"100%")
Both formulas work how I want them to separately, but I can't combine them.
I need them to only count if both are true. I need it only to count if it is
a "PM" and "100%", it needs to be both! Help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default How do I combine 2 COUNTIF formulas??

Try this:

=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53="100%"))

If the values in ColJ are numeric, then you may need to use this:
=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53=100%))

Does that help?

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

XL2002, WinXP-Pro


"MANDY" wrote:

These are my formulas: =COUNTIF(Mo!D8:D53,"PM") =COUNTIF(J8:J53,"100%")
Both formulas work how I want them to separately, but I can't combine them.
I need them to only count if both are true. I need it only to count if it is
a "PM" and "100%", it needs to be both! Help!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MANDY
 
Posts: n/a
Default How do I combine 2 COUNTIF formulas??

It didn't work, came up #NAME?

"Ron Coderre" wrote:

Try this:

=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53="100%"))

If the values in ColJ are numeric, then you may need to use this:
=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53=100%))

Does that help?

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

XL2002, WinXP-Pro


"MANDY" wrote:

These are my formulas: =COUNTIF(Mo!D8:D53,"PM") =COUNTIF(J8:J53,"100%")
Both formulas work how I want them to separately, but I can't combine them.
I need them to only count if both are true. I need it only to count if it is
a "PM" and "100%", it needs to be both! Help!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default How do I combine 2 COUNTIF formulas??

#NAME sounds unlikely. Did you spell the function correctly?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"MANDY" wrote in message
...
It didn't work, came up #NAME?

"Ron Coderre" wrote:

Try this:

=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53="100%"))

If the values in ColJ are numeric, then you may need to use this:
=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53=100%))

Does that help?

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

XL2002, WinXP-Pro


"MANDY" wrote:

These are my formulas: =COUNTIF(Mo!D8:D53,"PM")

=COUNTIF(J8:J53,"100%")
Both formulas work how I want them to separately, but I can't combine

them.
I need them to only count if both are true. I need it only to count if

it is
a "PM" and "100%", it needs to be both! Help!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MANDY
 
Posts: n/a
Default How do I combine 2 COUNTIF formulas??

Yes I did. I've tried just about everything I can think of. Thanks for the
help.

"Bob Phillips" wrote:

#NAME sounds unlikely. Did you spell the function correctly?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"MANDY" wrote in message
...
It didn't work, came up #NAME?

"Ron Coderre" wrote:

Try this:

=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53="100%"))

If the values in ColJ are numeric, then you may need to use this:
=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53=100%))

Does that help?

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

XL2002, WinXP-Pro


"MANDY" wrote:

These are my formulas: =COUNTIF(Mo!D8:D53,"PM")

=COUNTIF(J8:J53,"100%")
Both formulas work how I want them to separately, but I can't combine

them.
I need them to only count if both are true. I need it only to count if

it is
a "PM" and "100%", it needs to be both! Help!






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MANDY
 
Posts: n/a
Default How do I combine 2 COUNTIF formulas??

It did work!! There was a problem in the spreadsheet, not the formula! Thanks
guys you've been great.

"MANDY" wrote:

Yes I did. I've tried just about everything I can think of. Thanks for the
help.

"Bob Phillips" wrote:

#NAME sounds unlikely. Did you spell the function correctly?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"MANDY" wrote in message
...
It didn't work, came up #NAME?

"Ron Coderre" wrote:

Try this:

=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53="100%"))

If the values in ColJ are numeric, then you may need to use this:
=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53=100%))

Does that help?

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

XL2002, WinXP-Pro


"MANDY" wrote:

These are my formulas: =COUNTIF(Mo!D8:D53,"PM")

=COUNTIF(J8:J53,"100%")
Both formulas work how I want them to separately, but I can't combine

them.
I need them to only count if both are true. I need it only to count if

it is
a "PM" and "100%", it needs to be both! Help!




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
Countif formulas change after doing a sort Bob Smith Excel Worksheet Functions 3 January 3rd 06 11:17 PM
Combine 2 formulas Steved Excel Worksheet Functions 3 August 8th 05 10:09 PM
Help combine 2 formulas into 1 Robert Excel Worksheet Functions 5 April 1st 05 08:55 AM
Combine two formulas in one cell T.R. Excel Discussion (Misc queries) 1 March 9th 05 11:55 PM
combining countif formulas Liz G Excel Worksheet Functions 3 November 1st 04 09:34 PM


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