bombergrindman
New Member
- Joined
- Aug 5, 2011
- Messages
- 1
Hi all,
I'm having trouble summing an index function. I have two worksheets, WS 1 is a summary worksheet, worksheet 2 is a database
WS1
A........ ...........B ..................C
1 Client .........Product .........Sum
2 Bob ............Shoes ................?
3 Bob............. T Shirts ............?
4 Bob ............Jeans ..............?
5 Joe ............Shoes
6 Joe ............T Shirts
7 Ken .............Jeans
WS2
A B C D
Transaction .........Client .......Product ........Amount
1 521................. Bob .........T Shirt ............10
2 522 ................Bob .........T Shirt .............12
3 523................. Ken......... Jeans............. 75
4 524............... Bob ............Shoes ...........50
5 525 ...............Bob............. Shoes........... 62
6 526 ...............Joe ..............T Shirts ......15
7 527 ..............Joe ...........T Shirt................. 20
8 528 ..............Bob .............Jeans ..............100
I need to be able to total the transactions on WS1 sorted by client and product.
So if I wanted to find all the transactions in WS2 that were Bob and Shoes, and my formula is in C1 I have unsuccesfully so far
and
Any help is greatly appreciated, I've been working on this for 6 hours now and it's incredibly frustrating.
I'm having trouble summing an index function. I have two worksheets, WS 1 is a summary worksheet, worksheet 2 is a database
WS1
A........ ...........B ..................C
1 Client .........Product .........Sum
2 Bob ............Shoes ................?
3 Bob............. T Shirts ............?
4 Bob ............Jeans ..............?
5 Joe ............Shoes
6 Joe ............T Shirts
7 Ken .............Jeans
WS2
A B C D
Transaction .........Client .......Product ........Amount
1 521................. Bob .........T Shirt ............10
2 522 ................Bob .........T Shirt .............12
3 523................. Ken......... Jeans............. 75
4 524............... Bob ............Shoes ...........50
5 525 ...............Bob............. Shoes........... 62
6 526 ...............Joe ..............T Shirts ......15
7 527 ..............Joe ...........T Shirt................. 20
8 528 ..............Bob .............Jeans ..............100
I need to be able to total the transactions on WS1 sorted by client and product.
So if I wanted to find all the transactions in WS2 that were Bob and Shoes, and my formula is in C1 I have unsuccesfully so far
PHP:
{=sum(index(WS2!D1:D8,match(WS1!A1&B1,WS2!B1:B8&WS2!C1:C8,0),0))}
PHP:
=sumif(WS2!D1:D8,WS1!A1=WS2!B1:B8,WS1!B1=WS2!C1:C8,)
Any help is greatly appreciated, I've been working on this for 6 hours now and it's incredibly frustrating.