Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JP SIngh
 
Posts: n/a
Default Sumif on two criteria

Hi All

I have a three column worksheet

Date Type Amount

01/01/2005 NEIL SCHNEIDER HOUR
02/01/2005 JAMES (MEMBER) HALF DAY
03/01/2005 SHANDON PARK ONE DAY
04/01/2005 SHANDON PARK TWO DAY
05/01/2005 EDWARD BOX PERSONAL
06/01/2005 JUNE BENSON SHORT


I want to be able to do a formula so I can sum all the amounts for say
January and "HOUR".

Any help is appreciated.

Regards



  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

try
=sumproduct((month(a2:a22)=1)*(d2:d22="hour"))
to count all instances of hour in january
you do NOT give an amount column but this will sum col e that meets the
criteria.
=sumproduct((month(a2:a22)=1)*(d2:d22="hour")*e2:e 22)

--
Don Guillett
SalesAid Software

"JP SIngh" wrote in message
...
Hi All

I have a three column worksheet

Date Type Amount

01/01/2005 NEIL SCHNEIDER HOUR
02/01/2005 JAMES (MEMBER) HALF DAY
03/01/2005 SHANDON PARK ONE DAY
04/01/2005 SHANDON PARK TWO DAY
05/01/2005 EDWARD BOX PERSONAL
06/01/2005 JUNE BENSON SHORT


I want to be able to do a formula so I can sum all the amounts for say
January and "HOUR".

Any help is appreciated.

Regards





  #3   Report Post  
JP SIngh
 
Posts: n/a
Default

I used that formula but it gives me "3" which is counting the enteries.

01/01/2005 NEIL SCHNEIDER HOUR £50 CASH
02/01/2005 JAMES (MEMBER) HALF DAY £75 CASH
03/01/2005 SHANDON PARK ONE DAY £140 CHEQUE
04/01/2005 SHANDON PARK TWO DAY £250 CC
05/01/2005 EDWARD BOX PERSONAL £275 CC
06/01/2005 JUNE BENSON SHORT £50 CASH


For example in the above example I would like to sum all the amounts for
cash in january

any help


"Don Guillett" wrote in message
...
try
=sumproduct((month(a2:a22)=1)*(d2:d22="hour"))
to count all instances of hour in january
you do NOT give an amount column but this will sum col e that meets the
criteria.
=sumproduct((month(a2:a22)=1)*(d2:d22="hour")*e2:e 22)

--
Don Guillett
SalesAid Software

"JP SIngh" wrote in message
...
Hi All

I have a three column worksheet

Date Type Amount

01/01/2005 NEIL SCHNEIDER HOUR
02/01/2005 JAMES (MEMBER) HALF DAY
03/01/2005 SHANDON PARK ONE DAY
04/01/2005 SHANDON PARK TWO DAY
05/01/2005 EDWARD BOX PERSONAL
06/01/2005 JUNE BENSON SHORT


I want to be able to do a formula so I can sum all the amounts for say
January and "HOUR".

Any help is appreciated.

Regards







  #6   Report Post  
Don Guillett
 
Posts: n/a
Default

glad you thought it out

--
Don Guillett
SalesAid Software

"JP SIngh" wrote in message
...
it works indeed.

thanks a lot.


"Don Guillett" wrote in message
...
RE-Read my post and adapt to suit your needs. If that doesn't work, read

it
again. If that doesn't work, copy your formula here for help.

--
Don Guillett
SalesAid Software

"JP SIngh" wrote in message
...
I used that formula but it gives me "3" which is counting the

enteries.

01/01/2005 NEIL SCHNEIDER HOUR £50 CASH
02/01/2005 JAMES (MEMBER) HALF DAY £75 CASH
03/01/2005 SHANDON PARK ONE DAY £140 CHEQUE
04/01/2005 SHANDON PARK TWO DAY £250 CC
05/01/2005 EDWARD BOX PERSONAL £275 CC
06/01/2005 JUNE BENSON SHORT £50 CASH


For example in the above example I would like to sum all the amounts

for
cash in january

any help


"Don Guillett" wrote in message
...
try
=sumproduct((month(a2:a22)=1)*(d2:d22="hour"))
to count all instances of hour in january
you do NOT give an amount column but this will sum col e that meets

the
criteria.
=sumproduct((month(a2:a22)=1)*(d2:d22="hour")*e2:e 22)

--
Don Guillett
SalesAid Software

"JP SIngh" wrote in message
...
Hi All

I have a three column worksheet

Date Type Amount

01/01/2005 NEIL SCHNEIDER HOUR
02/01/2005 JAMES (MEMBER) HALF DAY
03/01/2005 SHANDON PARK ONE DAY
04/01/2005 SHANDON PARK TWO DAY
05/01/2005 EDWARD BOX PERSONAL
06/01/2005 JUNE BENSON SHORT


I want to be able to do a formula so I can sum all the amounts for

say
January and "HOUR".

Any help is appreciated.

Regards













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
How do I use the sumif if I have multiple criteria (i.e. greater . Kellyatisl Excel Worksheet Functions 3 June 4th 06 06:33 AM
SUMIF using VLOOKUP as criteria Telly Excel Worksheet Functions 1 February 18th 05 10:17 PM
"criteria" in a sumif refering to the value in another cell mark Excel Discussion (Misc queries) 1 January 31st 05 07:39 PM
How do I ask for multiple criteria when creating a "sumif" formul. Rachelle Excel Worksheet Functions 3 December 1st 04 11:49 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


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