Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
zubee
 
Posts: n/a
Default Which formula to use? countif, sumif, sumproduct

I would like to count the number of records that appear in the same column
for example column "A"
A
hat and coat
coat
hat
hat and coat
gloves

The formula that i am looking for would answer the question, how many
records contain ("hat and coat" and "hat") the answer would be 3 records.
Any help would be greatly appreciated!

--
Cheers
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMIF(A:A,"*hat*")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"zubee" wrote in message
...
I would like to count the number of records that appear in the same column
for example column "A"
A
hat and coat
coat
hat
hat and coat
gloves

The formula that i am looking for would answer the question, how many
records contain ("hat and coat" and "hat") the answer would be 3 records.
Any help would be greatly appreciated!

--
Cheers



  #3   Report Post  
Ken Wright
 
Posts: n/a
Default

=COUNTIF(Your_Range,"hat and coat")+COUNTIF(Your_Range,"hat")

or

=SUMPRODUCT((Your_Range="hat and coat")+(Your_Range="hat"))

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------

"zubee" wrote in message
...
I would like to count the number of records that appear in the same column
for example column "A"
A
hat and coat
coat
hat
hat and coat
gloves

The formula that i am looking for would answer the question, how many
records contain ("hat and coat" and "hat") the answer would be 3 records.
Any help would be greatly appreciated!

--
Cheers



  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

meant COUNTIF

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bob Phillips" wrote in message
...
=SUMIF(A:A,"*hat*")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"zubee" wrote in message
...
I would like to count the number of records that appear in the same

column
for example column "A"
A
hat and coat
coat
hat
hat and coat
gloves

The formula that i am looking for would answer the question, how many
records contain ("hat and coat" and "hat") the answer would be 3

records.
Any help would be greatly appreciated!

--
Cheers





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
problems with sumif and countif Simon Shaw Excel Discussion (Misc queries) 6 July 23rd 05 10:02 PM
{} SumIf and CountIf SS Excel Worksheet Functions 5 May 24th 05 09:19 PM
Modifyiing a SumIF Formula to look for "OLA* carl Excel Worksheet Functions 4 January 3rd 05 08:31 PM
use a date range as criteria in a countif formula mbparks Excel Worksheet Functions 3 January 3rd 05 12:06 AM
Sumif not Sumproduct David Excel Worksheet Functions 4 December 8th 04 12:39 PM


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