Sponsor for PC Pals Forum

Author Topic: Excel - CountIf - Multiple Criteria  (Read 1408 times)

Offline DJ

  • Established Member
  • ****
  • Posts: 1448
Excel - CountIf - Multiple Criteria
« on: February 20, 2006, 15:27 »
Hi All,

Another excel questions  :laugh:

I have one sheet that is in the format of (basically);

Month     Cust    Invoice No     Fees     Exp


Months are Jan, Feb etc. Cust is a choice of 5.

I want (on another sheet) to count the number of invoices done for each customer on a certain month.

So I thought I could do a coutif function, but unsure how to use it for multiple criteria.

Any ideas?

Thanks

DJ

Offline sam

  • Administrator
  • *****
  • Posts: 19977
Excel - CountIf - Multiple Criteria
« Reply #1 on: February 20, 2006, 22:06 »
ummm im unsure, ill have a think for ya tomorrow when my mind is actually awake.
- sam | @starrydude --

Offline DJ

  • Established Member
  • ****
  • Posts: 1448
Excel - CountIf - Multiple Criteria
« Reply #2 on: February 20, 2006, 22:38 »
Think I've got it

Code: [Select]
{=SUM(('Sheet1'!$C$5:$C$600=CustA)*('Sheet1'!$U$5:$U$600=June))}


Now another one!!....

How do I change this so that it Sums a certain column, if the Cust is CustA, Month is June and the values I to sum are in E5:E600

Cheers :thumb:

DJ

Offline sam

  • Administrator
  • *****
  • Posts: 19977
Excel - CountIf - Multiple Criteria
« Reply #3 on: February 21, 2006, 18:15 »
ummm
- sam | @starrydude --

Offline DJ

  • Established Member
  • ****
  • Posts: 1448
Excel - CountIf - Multiple Criteria
« Reply #4 on: February 21, 2006, 22:31 »
Don't worry - think I'm getting somewhere - slowly....  will post back soon.

I have this habit of posting a question then working out the answer myself !  :blush:

DJ

Offline sam

  • Administrator
  • *****
  • Posts: 19977
Excel - CountIf - Multiple Criteria
« Reply #5 on: February 21, 2006, 22:55 »
oh no thats a good thing.... and if you dont sort it by tomorrow i'm sure my mind will have a moment of inspiration.... i could write you an idl script that would do it in no time, but thats useless to u
- sam | @starrydude --

Offline TR

  • Forum Fanatic
  • ******
  • Posts: 7149
Excel - CountIf - Multiple Criteria
« Reply #6 on: February 22, 2006, 17:38 »
Quote from: "DJ"
Think I've got it

Code: [Select]
{=SUM(('Sheet1'!$C$5:$C$600=CustA)*('Sheet1'!$U$5:$U$600=June))}


Now another one!!....

How do I change this so that it Sums a certain column, if the Cust is CustA, Month is June and the values I to sum are in E5:E600

Cheers :thumb:

DJ


DJ sorry I missed this one  :blush:

I have tyried this out on my spread sheets and it works with mine but dont know if it does on yours?

{=SUM(('Sheet1'!$C$5:$C$600=CustA)*('Sheet1'!$U$5:$U$600=June))}($u$5:$u$600)


tr

Offline DJ

  • Established Member
  • ****
  • Posts: 1448
Excel - CountIf - Multiple Criteria
« Reply #7 on: February 22, 2006, 21:20 »
Yes - sorry forgot to update this.

Everything is working. Forgot to CTRL + SHIFT + Enter to make the array formula work.

Cheers :thumb:

DJ


Show unread posts since last visit.
Sponsor for PC Pals Forum