#1   Report Post  
Posted to microsoft.public.excel.misc
TRM TRM is offline
external usenet poster
 
Posts: 9
Default Formula Countif

I have two columns - one with company names in and the other with the word
"premium" or "scheduled". I'm looking for the formula to count the company
name (in one column) and if it is a scheduled or premium service (in another
column) so that I will end up with a count that ABC company used scheduled
service 200 times this month and premium 300. Any assistance greatly
appreciated.

TRM
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Formula Countif

Hi TRM,

assuming you have your data betwwen a2 and b1000

on d2 use =sumproduct(--(a2:a1000=c2)*(b2:b1000="premium")
on e2 use =sumproduct(--(a2:a1000=c2)*(b2:b1000="scheduled")


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



"TRM" escreveu:

I have two columns - one with company names in and the other with the word
"premium" or "scheduled". I'm looking for the formula to count the company
name (in one column) and if it is a scheduled or premium service (in another
column) so that I will end up with a count that ABC company used scheduled
service 200 times this month and premium 300. Any assistance greatly
appreciated.

TRM

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Formula Countif

You can create a helper column that concatenates the company name to the
service type. Sort the data by the helper column and then do subtotal count
on the sorted column.

A B C
1 XYZ Premium =A1&B1
2 ABC Scheduled =A2&B2
3 XYZ Premium =A3&B3

Column C would have the following values:

XYZPremium
ABCScheduled
XYZScheduled

The subtotal would count each of the occurrences for the concatened column

--
Kevin Backmann


"TRM" wrote:

I have two columns - one with company names in and the other with the word
"premium" or "scheduled". I'm looking for the formula to count the company
name (in one column) and if it is a scheduled or premium service (in another
column) so that I will end up with a count that ABC company used scheduled
service 200 times this month and premium 300. Any assistance greatly
appreciated.

TRM

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 formula results in the formula itself being displayed. NewKid Excel Worksheet Functions 9 December 21st 05 11:10 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
countif formula Todd Nelson Excel Discussion (Misc queries) 1 September 21st 05 11:27 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
COUNTIF formula problems artisanpp Excel Discussion (Misc queries) 2 June 5th 05 01:30 AM


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