Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MBS MBS is offline
external usenet poster
 
Posts: 2
Default COUNTIF or COUNT.... IF

Working on Sheet 2, I need to count records from Sheet1 but only want if ColA
= "text1" and ColB = "text2".

COUNTIF(('Sheet1'!A1:A10,"text1")*('Sheet1'!B1:B10 ,"text2"))

This is the formula I have been playing with that obviously is not working!
--
MBS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default COUNTIF or COUNT.... IF

=SUMPRODUCT(--('Sheet1'!A1:A10,"text1"),--('Sheet1'!B1:B10,"text2"))


"MBS" wrote:

Working on Sheet 2, I need to count records from Sheet1 but only want if ColA
= "text1" and ColB = "text2".

COUNTIF(('Sheet1'!A1:A10,"text1")*('Sheet1'!B1:B10 ,"text2"))

This is the formula I have been playing with that obviously is not working!
--
MBS

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default COUNTIF or COUNT.... IF

=sumproduct(--(sheet1!a1:a10="text1")*(sheet1!b1:b10="text2"))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"MBS" escreveu:

Working on Sheet 2, I need to count records from Sheet1 but only want if ColA
= "text1" and ColB = "text2".

COUNTIF(('Sheet1'!A1:A10,"text1")*('Sheet1'!B1:B10 ,"text2"))

This is the formula I have been playing with that obviously is not working!
--
MBS

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
Please help with Count or Countif... [email protected] Excel Discussion (Misc queries) 7 May 24th 07 08:19 PM
how can I count (countif) the character: * Mousquito Excel Worksheet Functions 1 October 9th 06 12:20 PM
count many with COUNTIF? Bob Excel Worksheet Functions 4 October 2nd 06 07:06 AM
Count, Countif, Sumif?? benjam_in Excel Worksheet Functions 6 July 12th 06 06:29 PM
COUNTIF-how do I count the quantity of 'H', as opposed to 'h'? Suza Excel Worksheet Functions 3 January 11th 06 02:40 PM


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