Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default 2 Conditions + Sum of a colum matching those conditions

Ok.. I've spent the last 2 hours reading this area trying to find a close
enough match to what I am looking for. I know this will be simple.. but I've
ended up having to post.. I'm sorry :(.

This is what I have..

Col c = windows desktop or windows laptop
Col g = It's monthly $ charge
Col o = Who it is owned by (Finance companies)

I would like to have a breakdown of Desktops laptops with a cost item.. For
example

If col c = "Windows Desktop" & Col o = "HP Finance" Sum(g:g) (what's left
after the 2 conditions are met.

Hope that makes sense.. I'd love some help :)
Regards,

Jeffrey
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default 2 Conditions + Sum of a colum matching those conditions

=SUMPRODUCT(--(C2:C200="Windows Desktop"),--(O2:O200="HP Finance"),G2:G200)

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Jeffa" wrote in message
...
Ok.. I've spent the last 2 hours reading this area trying to find a close
enough match to what I am looking for. I know this will be simple.. but
I've
ended up having to post.. I'm sorry :(.

This is what I have..

Col c = windows desktop or windows laptop
Col g = It's monthly $ charge
Col o = Who it is owned by (Finance companies)

I would like to have a breakdown of Desktops laptops with a cost item..
For
example

If col c = "Windows Desktop" & Col o = "HP Finance" Sum(g:g) (what's left
after the 2 conditions are met.

Hope that makes sense.. I'd love some help :)
Regards,

Jeffrey



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default 2 Conditions + Sum of a colum matching those conditions

You can use an array* formula like this:

=SUM(IF((C1:C100="Windows desktop")*(O1:O100="HP Finance"),G1:G100,0))

* As this is an array formula, then when you type it in (or
subsequently edit it) you must use CTRL-SHIFT-ENTER to commit it
rather than just ENTER. If you do this correctly then Excel will wrap
curly braces { } around the formula when viewed in the formula bar -
you must not type these yourself.

An alternative (non-array) formula is:

=SUMPRODUCT(--(C1:C100="Windows desktop"),--(O1:O100="HP
Finance"),G1:G100)

In both cases the array ranges should be the same size, but cannot be
a complete column - I've assumed you have 100 of them, so adjust this
to suit your data.

Hope this helps.

Pete

On Jun 7, 5:27 am, Jeffa wrote:
Ok.. I've spent the last 2 hours reading this area trying to find a close
enough match to what I am looking for. I know this will be simple.. but I've
ended up having to post.. I'm sorry :(.

This is what I have..

Col c = windows desktop or windows laptop
Col g = It's monthly $ charge
Col o = Who it is owned by (Finance companies)

I would like to have a breakdown of Desktops laptops with a cost item.. For
example

If col c = "Windows Desktop" & Col o = "HP Finance" Sum(g:g) (what's left
after the 2 conditions are met.

Hope that makes sense.. I'd love some help :)
Regards,

Jeffrey



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default 2 Conditions + Sum of a colum matching those conditions

Pete,

You don't need the ,0 at the end of this formula, FALSE doesn't sum. Saves a
bit of typing <G

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pete_UK" wrote in message
ups.com...
You can use an array* formula like this:

=SUM(IF((C1:C100="Windows desktop")*(O1:O100="HP Finance"),G1:G100,0))

* As this is an array formula, then when you type it in (or
subsequently edit it) you must use CTRL-SHIFT-ENTER to commit it
rather than just ENTER. If you do this correctly then Excel will wrap
curly braces { } around the formula when viewed in the formula bar -
you must not type these yourself.

An alternative (non-array) formula is:

=SUMPRODUCT(--(C1:C100="Windows desktop"),--(O1:O100="HP
Finance"),G1:G100)

In both cases the array ranges should be the same size, but cannot be
a complete column - I've assumed you have 100 of them, so adjust this
to suit your data.

Hope this helps.

Pete

On Jun 7, 5:27 am, Jeffa wrote:
Ok.. I've spent the last 2 hours reading this area trying to find a close
enough match to what I am looking for. I know this will be simple.. but
I've
ended up having to post.. I'm sorry :(.

This is what I have..

Col c = windows desktop or windows laptop
Col g = It's monthly $ charge
Col o = Who it is owned by (Finance companies)

I would like to have a breakdown of Desktops laptops with a cost item..
For
example

If col c = "Windows Desktop" & Col o = "HP Finance" Sum(g:g) (what's left
after the 2 conditions are met.

Hope that makes sense.. I'd love some help :)
Regards,

Jeffrey





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default 2 Conditions + Sum of a colum matching those conditions

Hi Bob,

yes, I know, and you have pointed it out to me in the past - I keep
doing it, it's ingrained in my psyche !! <bg

Pete

On Jun 7, 10:16 am, "Bob Phillips" wrote:
Pete,

You don't need the ,0 at the end of this formula, FALSE doesn't sum. Saves a
bit of typing <G

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pete_UK" wrote in message

ups.com...



You can use an array* formula like this:


=SUM(IF((C1:C100="Windows desktop")*(O1:O100="HP Finance"),G1:G100,0))


* As this is an array formula, then when you type it in (or
subsequently edit it) you must use CTRL-SHIFT-ENTER to commit it
rather than just ENTER. If you do this correctly then Excel will wrap
curly braces { } around the formula when viewed in the formula bar -
you must not type these yourself.


An alternative (non-array) formula is:


=SUMPRODUCT(--(C1:C100="Windows desktop"),--(O1:O100="HP
Finance"),G1:G100)


In both cases the array ranges should be the same size, but cannot be
a complete column - I've assumed you have 100 of them, so adjust this
to suit your data.


Hope this helps.


Pete


On Jun 7, 5:27 am, Jeffa wrote:
Ok.. I've spent the last 2 hours reading this area trying to find a close
enough match to what I am looking for. I know this will be simple.. but
I've
ended up having to post.. I'm sorry :(.


This is what I have..


Col c = windows desktop or windows laptop
Col g = It's monthly $ charge
Col o = Who it is owned by (Finance companies)


I would like to have a breakdown of Desktops laptops with a cost item..
For
example


If col c = "Windows Desktop" & Col o = "HP Finance" Sum(g:g) (what's left
after the 2 conditions are met.


Hope that makes sense.. I'd love some help :)
Regards,


Jeffrey- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default 2 Conditions + Sum of a colum matching those conditions

Bob,

Thank you so much for your help.. You are a stress saver!! :o)

"Bob Phillips" wrote:

=SUMPRODUCT(--(C2:C200="Windows Desktop"),--(O2:O200="HP Finance"),G2:G200)

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Jeffa" wrote in message
...
Ok.. I've spent the last 2 hours reading this area trying to find a close
enough match to what I am looking for. I know this will be simple.. but
I've
ended up having to post.. I'm sorry :(.

This is what I have..

Col c = windows desktop or windows laptop
Col g = It's monthly $ charge
Col o = Who it is owned by (Finance companies)

I would like to have a breakdown of Desktops laptops with a cost item..
For
example

If col c = "Windows Desktop" & Col o = "HP Finance" Sum(g:g) (what's left
after the 2 conditions are met.

Hope that makes sense.. I'd love some help :)
Regards,

Jeffrey




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
shade cells based on conditions - i have more than 3 conditions Mo2 Excel Worksheet Functions 3 March 30th 07 07:19 AM
If's conditions about matching 0-0 Wai Wai ^-^ Excel Worksheet Functions 8 May 12th 06 06:27 PM
sum on conditions..... pimar Excel Discussion (Misc queries) 6 May 31st 05 05:00 AM
IF, AND, OR conditions? MEJ Excel Worksheet Functions 3 March 30th 05 05:37 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


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