PC Review


Reply
Thread Tools Rate Thread

how can I have a formula result based on multiple criteria/columns

 
 
=?Utf-8?B?bmlja3lfcA==?=
Guest
Posts: n/a
 
      5th Jul 2006
I have an expenses sheet set up as follows:

A/status B/date C/expense type D/amount

1 allowed 05/07/06 car £20.00
2 notallowed 05/07/06 car £450.00
3 notallowed 05/07/06 car £15.00
4 notallowed 05/07/06 car £26.00
5 allowed 05/07/06 post £20.00
6 allowed 05/07/06 post £20.00
7
8 total car allowed
£--.--
9 total post allowed
£--.--
10
11 total car notallowed
£--.--
12 total post notallowed £--.--


what formula can I use to say total all instances of "car" & "allowed"...
or of "car" & "not allowed"

I have tried =SUMIF, but it will only recognise the first column in the
range..
eg in D8 I wrote:

=SUMIF(A1:C6, "allowed""car", D16)

but it will not recognise multiple criteria ie "allowed" & "car".

how can i total the values based on multiple criteria in different columns?

thanks in advance

nicky
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sk1C?=
Guest
Posts: n/a
 
      5th Jul 2006
=SUMPRODUCT(--(A1:A6="allowed"), --(C1:C6="car"), D16)
=SUMPRODUCT(--(A1:A6="notallowed"), --(C1:C6="car"), D16)


"nicky_p" wrote:

> I have an expenses sheet set up as follows:
>
> A/status B/date C/expense type D/amount
>
> 1 allowed 05/07/06 car £20.00
> 2 notallowed 05/07/06 car £450.00
> 3 notallowed 05/07/06 car £15.00
> 4 notallowed 05/07/06 car £26.00
> 5 allowed 05/07/06 post £20.00
> 6 allowed 05/07/06 post £20.00
> 7
> 8 total car allowed
> £--.--
> 9 total post allowed
> £--.--
> 10
> 11 total car notallowed
> £--.--
> 12 total post notallowed £--.--
>
>
> what formula can I use to say total all instances of "car" & "allowed"...
> or of "car" & "not allowed"
>
> I have tried =SUMIF, but it will only recognise the first column in the
> range..
> eg in D8 I wrote:
>
> =SUMIF(A1:C6, "allowed""car", D16)
>
> but it will not recognise multiple criteria ie "allowed" & "car".
>
> how can i total the values based on multiple criteria in different columns?
>
> thanks in advance
>
> nicky

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula result based on Multiple IFs Neil M Microsoft Excel Worksheet Functions 6 23rd Jun 2008 10:44 PM
Conditional Result based on Multiple Columns AnnArborBrian Microsoft Excel Worksheet Functions 6 10th May 2008 02:29 PM
hiding columns in excel based on formula result hjbrooks2002 Microsoft Excel Programming 1 5th May 2008 05:42 PM
Automatically resize columns based on new formula result Kevin Ward Microsoft Excel Misc 2 13th Feb 2006 06:08 PM
Return value based on certain criteria in multiple columns kilaalaa Microsoft Excel Programming 0 3rd Nov 2005 03:51 PM


Features
 

Advertising
 

Newsgroups
 


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