Hi There, I need some help with a formula...
Here's a basic scenario:
...........A.....................B.................C....................D
1| Customers..............Date..........Product...........Quantity (Kg's)
2| ------------------------------------------------------------
3| Kate's Kitchen........1/1/2011.........S110.............100
4| Paul's Pantry..........3/1/2011........GP220.............600
5| Billy's Bakery..........16/1/2011......S110...............250
6| Steve's Shop..........23/1/2011......GH60...............500
7| Gary's Garden..........25/1/2011......GP55...............325
8| Ben's Bistro.............31/1/2011......GP55................411
Now I'd like a formula where i can say for example: if the value from
C3:C8="S110" then it must add the corresponding quantities for "S110" From
D3:D8 and put the answer in a single cell.
Note that "S110" Appears twice! in D3 value is100 and D5 value is 250.
therefor 100+250 = 350.
Id like to end up with the Table below.
...........A...............B
1| Product............"TOTAL" Quantity (Kg's) for the month of JANUARY
2| -------------------------------------
3| S110.............350
4| GP220.............600
5| GH60..............500
6| GH55..............736
Can any1 help me with a formula for this??
I tried: =if((C3:C8), "S110", (D3:D8), 0) but this doesnt work...
Any help would be greatly appreciated!
Thanks
Here's a basic scenario:
...........A.....................B.................C....................D
1| Customers..............Date..........Product...........Quantity (Kg's)
2| ------------------------------------------------------------
3| Kate's Kitchen........1/1/2011.........S110.............100
4| Paul's Pantry..........3/1/2011........GP220.............600
5| Billy's Bakery..........16/1/2011......S110...............250
6| Steve's Shop..........23/1/2011......GH60...............500
7| Gary's Garden..........25/1/2011......GP55...............325
8| Ben's Bistro.............31/1/2011......GP55................411
Now I'd like a formula where i can say for example: if the value from
C3:C8="S110" then it must add the corresponding quantities for "S110" From
D3:D8 and put the answer in a single cell.
Note that "S110" Appears twice! in D3 value is100 and D5 value is 250.
therefor 100+250 = 350.
Id like to end up with the Table below.
...........A...............B
1| Product............"TOTAL" Quantity (Kg's) for the month of JANUARY
2| -------------------------------------
3| S110.............350
4| GP220.............600
5| GH60..............500
6| GH55..............736
Can any1 help me with a formula for this??
I tried: =if((C3:C8), "S110", (D3:D8), 0) but this doesnt work...
Any help would be greatly appreciated!
Thanks
Last edited: