Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default COUNT function... I think!

I have two colomns of data, I need to operate the count function only if the
data in both colomns, within the same row are true i.e

I need to count the how many times the trade "car" happens to be a priority
"2".

Trade Priority
CAR 2
BRI 2
ROO 2a
ELE 2a
PLU 3
CAR 2

I have tried to use =COUNTIF, =COUNT(IF

Is this possible and what is the correct formula/function to use?




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNT function... I think!

Try this:

=SUMPRODUCT(--(A1:A10="car"),--(B1:B10=2))

Better to use cells to hold the criteria:

D1 = car
E1 = 2

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10=E1))

--
Biff
Microsoft Excel MVP


"Rebekah" wrote in message
...
I have two colomns of data, I need to operate the count function only if
the
data in both colomns, within the same row are true i.e

I need to count the how many times the trade "car" happens to be a
priority
"2".

Trade Priority
CAR 2
BRI 2
ROO 2a
ELE 2a
PLU 3
CAR 2

I have tried to use =COUNTIF, =COUNT(IF

Is this possible and what is the correct formula/function to use?






  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default COUNT function... I think!

=SUMPRODUCT(--(A2:A7="Car"),--(B2:B7=2))
If the priority is text, rather than a number, then you'd need quotes, so
=SUMPRODUCT(--(A2:A7="Car"),--(B2:B7="2"))
--
David Biddulph

"Rebekah" wrote in message
...
I have two colomns of data, I need to operate the count function only if
the
data in both colomns, within the same row are true i.e

I need to count the how many times the trade "car" happens to be a
priority
"2".

Trade Priority
CAR 2
BRI 2
ROO 2a
ELE 2a
PLU 3
CAR 2

I have tried to use =COUNTIF, =COUNT(IF

Is this possible and what is the correct formula/function to use?






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 Function Portuga Excel Discussion (Misc queries) 4 May 31st 06 02:08 PM
Count function Liz23 Excel Worksheet Functions 2 March 15th 06 02:21 PM
i need help with the "count" function kippercat Excel Worksheet Functions 1 March 9th 05 09:58 AM
count function Brian Excel Worksheet Functions 8 December 21st 04 09:25 PM
count function ChrisC Excel Worksheet Functions 5 November 9th 04 01:40 AM


All times are GMT +1. The time now is 08:59 PM.

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"