Hi
I look for way to merge amounts for each name based on adjacent cell
in sheet1 every name in column B contains the total value in lastrow in column A contains TOTAL word and correspond amount in column E . so I want matching F2 in sheet2 with column B in sheet1, if it's matched then I want summing the amounts in cell for clumn E where is adjacent for TOTAL cell for the same name and show the result in F5 in sheet2 .
for instance :
Mussaila1=4900+300=5200
before
should be
thank you
I look for way to merge amounts for each name based on adjacent cell
in sheet1 every name in column B contains the total value in lastrow in column A contains TOTAL word and correspond amount in column E . so I want matching F2 in sheet2 with column B in sheet1, if it's matched then I want summing the amounts in cell for clumn E where is adjacent for TOTAL cell for the same name and show the result in F5 in sheet2 .
for instance :
Mussaila1=4900+300=5200
aw | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | ITEM | NAME | INVOICE NO | ORDER NO | AMOUNT | ||
2 | 1 | Mussaila1 | INA00 | OR00 | 1000 | ||
3 | 2 | Mussaila1 | INA00 | OR00 | 1200 | ||
4 | 3 | Mussaila1 | INA00 | OR00 | 1300 | ||
5 | 4 | Mussaila1 | INA00 | OR00 | 1400 | ||
6 | TOTAL | Mussaila1 | INA00 | OR00 | 4900 | ||
7 | 1 | Mussaila2 | INA01 | OR01 | 100 | ||
8 | 2 | Mussaila2 | INA01 | OR01 | 200 | ||
9 | TOTAL | Mussaila2 | INA01 | OR01 | 300 | ||
10 | 1 | Mussaila1 | INA02 | OR02 | 300 | ||
11 | TOTAL | Mussaila1 | INA02 | OR02 | 300 | ||
Sheet1 |
before
aw | |||
---|---|---|---|
F | |||
1 | NAME | ||
2 | Mussaila1 | ||
3 | |||
4 | AMOUNT | ||
5 | |||
sheet2 |
should be
aw | |||
---|---|---|---|
F | |||
1 | NAME | ||
2 | Mussaila1 | ||
3 | |||
4 | AMOUNT | ||
5 | 5200 | ||
sheet2 |
thank you