I am attemtping to create "two" different types os "SUMPRODUCT" formulas in excel using the DATA BASE below for each problem / formula
RAW Data Base
Col A Col B Col C Col D Col E
1. Sales State Date Apples Oranges
2. 100 CA 1-Jun-10 100 300
3. 200 TX 1-May-10 100 300
4. 300 CA 1-Apr-10 100 300
5. 400 TX 1-Jun-10 100 300
6. 500 CA 1-May-10 100 300
7. 600 TX 1-Apr-10 100 300
8. 700 CA 1-Jun-10 100 300
9. 800 TX 1-May-10 100 300
Formula / Question # 1 - is there a easier way to create the formula below that is used to sum data in Col A based on identifying "3" different dates in Col C? The formula works. I was just wondering is there a way I could write a formula using less code?
=SUMPRODUCT((A10:A17)*(B10:B17="CA")*(C10:C17=C12))+SUMPRODUCT((A10:A17)*(B10:B17="CA")*(C10:C17=C10))+SUMPRODUCT((A10:A17)*(B10:B17="CA")*(C10:C17=C16))
Formula / Question # 2
Below is the "second" question using the same data source above, however range names were used instead of cell references /addresses.
I am attemtping to determine the "percent" of apples to the combined total of apples and oranges.
The formula I tried to write which does not work is indicated below:
I would like the formula to read /say - Apples / (Apples + Oranges)= % of fruits using a data base that SUMPRODUCT is used to separate by state.
=SUMPRODUCT(((Apples)*(State="CA")/((SUMPRODUCT(Apples)*(State="CA")+(SUMPRODUCT(Oanges)*(State="CA")))
RAW Data Base
Col A Col B Col C Col D Col E
1. Sales State Date Apples Oranges
2. 100 CA 1-Jun-10 100 300
3. 200 TX 1-May-10 100 300
4. 300 CA 1-Apr-10 100 300
5. 400 TX 1-Jun-10 100 300
6. 500 CA 1-May-10 100 300
7. 600 TX 1-Apr-10 100 300
8. 700 CA 1-Jun-10 100 300
9. 800 TX 1-May-10 100 300
Formula / Question # 1 - is there a easier way to create the formula below that is used to sum data in Col A based on identifying "3" different dates in Col C? The formula works. I was just wondering is there a way I could write a formula using less code?
=SUMPRODUCT((A10:A17)*(B10:B17="CA")*(C10:C17=C12))+SUMPRODUCT((A10:A17)*(B10:B17="CA")*(C10:C17=C10))+SUMPRODUCT((A10:A17)*(B10:B17="CA")*(C10:C17=C16))
Formula / Question # 2
Below is the "second" question using the same data source above, however range names were used instead of cell references /addresses.
I am attemtping to determine the "percent" of apples to the combined total of apples and oranges.
The formula I tried to write which does not work is indicated below:
I would like the formula to read /say - Apples / (Apples + Oranges)= % of fruits using a data base that SUMPRODUCT is used to separate by state.
=SUMPRODUCT(((Apples)*(State="CA")/((SUMPRODUCT(Apples)*(State="CA")+(SUMPRODUCT(Oanges)*(State="CA")))