Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kelly
 
Posts: n/a
Default Add cells from a range based on 2 conditions from 2 other ranges

Hi,
I am trying to add cells from a column based on two conditions.
For example:
the chart below is on one worksheet and on another I am consolidating the
info.
What I want to see if how many types of Black there are with a forecast 0.
Answer should be 3, it should count the 4 without $ owned.
So the two conditions are "Black" and "0", then add the cells together that
meet those two conditions from the 2nd column.

Types $ owned
Black 3 1500
Black 4 0

Can anyone help?
Kelly

  #2   Report Post  
 
Posts: n/a
Default

Hi

Try something like:
=SUMPRODUCT(--(A2:A50="Black")*(C2:C500),(B2:B50))

Hope this helps - or is a guide, at least!
Andy.

"Kelly" wrote in message
...
Hi,
I am trying to add cells from a column based on two conditions.
For example:
the chart below is on one worksheet and on another I am consolidating the
info.
What I want to see if how many types of Black there are with a forecast
0.

Answer should be 3, it should count the 4 without $ owned.
So the two conditions are "Black" and "0", then add the cells together
that
meet those two conditions from the 2nd column.

Types $ owned
Black 3 1500
Black 4 0

Can anyone help?
Kelly



  #3   Report Post  
Kelly
 
Posts: n/a
Default

Thanks! Worked perfectly :)

"Andy" wrote:

Hi

Try something like:
=SUMPRODUCT(--(A2:A50="Black")*(C2:C500),(B2:B50))

Hope this helps - or is a guide, at least!
Andy.

"Kelly" wrote in message
...
Hi,
I am trying to add cells from a column based on two conditions.
For example:
the chart below is on one worksheet and on another I am consolidating the
info.
What I want to see if how many types of Black there are with a forecast
0.

Answer should be 3, it should count the 4 without $ owned.
So the two conditions are "Black" and "0", then add the cells together
that
meet those two conditions from the 2nd column.

Types $ owned
Black 3 1500
Black 4 0

Can anyone help?
Kelly




  #4   Report Post  
 
Posts: n/a
Default

Thanks for the feedback!!

Andy.

"Kelly" wrote in message
...
Thanks! Worked perfectly :)

"Andy" wrote:

Hi

Try something like:
=SUMPRODUCT(--(A2:A50="Black")*(C2:C500),(B2:B50))

Hope this helps - or is a guide, at least!
Andy.

"Kelly" wrote in message
...
Hi,
I am trying to add cells from a column based on two conditions.
For example:
the chart below is on one worksheet and on another I am consolidating
the
info.
What I want to see if how many types of Black there are with a forecast
0.
Answer should be 3, it should count the 4 without $ owned.
So the two conditions are "Black" and "0", then add the cells together
that
meet those two conditions from the 2nd column.

Types $ owned
Black 3 1500
Black 4 0

Can anyone help?
Kelly






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
locking cells based on results at runtime aken Excel Worksheet Functions 3 June 22nd 05 02:01 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM
Auto populate cells based on 2 cells division. Chance224 Excel Discussion (Misc queries) 0 April 4th 05 09:35 PM
How can I dynamically eliminate blank cells in a given range in E. Scott Steele Excel Worksheet Functions 6 December 17th 04 03:23 AM


All times are GMT +1. The time now is 02:20 AM.

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"