Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
locking cells based on results at runtime | Excel Worksheet Functions | |||
Counting empty cells within a range of cells | New Users to Excel | |||
Counting empty cells within a range of cells | New Users to Excel | |||
Auto populate cells based on 2 cells division. | Excel Discussion (Misc queries) | |||
How can I dynamically eliminate blank cells in a given range in E. | Excel Worksheet Functions |