Hello
My SUMIF works fine alone and my VLOOKUP works fine alone but I am unable to combine them successfully....
Main data looks like this (I've left out the row data not relevant to this problem):
[pre]
A B C D E F G
6 Supplier No Supplier Our Ref Your Ref Code CCNo Amount
7
18 12345 ABC Company xxx xxx xxx xxx
[/pre]
Normally we add in the amounts manually but I want to automate if possible.
The source data looks like this: currently it's sitting on the same worksheet....
[pre]
J K L M N
21 Office xxxxx xxxxx Amount xxxxx
22 ABC Company xxxxx xxxxx £4.88 xxxxx
23 ABC Company xxxxx xxxxx £19.91 xxxxx
24 ABC Company xxxxx xxxxx £42.62 xxxxx
25 ABC Company xxxxx xxxxx £16.99 xxxxx
26 XYZ Company xxxxx xxxxx £17.46 xxxxx
[/pre]
In Cell G18 I can have the following formula:
=SUMIF(table,J22,M22:M26) and it gives me the answer £84.40 Table is the name of the source data from J22:N26.
or I can have
= VLOOKUP (B18,table,4,false) gives me the answer of £4.88.
But what I actually want to do is add up all the totals in Table for ABC Company and put the total into G18.
I've had a look online and there are some examples, but I just can't get them to work for me, and I can't see where I'm going wrong. I either get the message that I've got too many arguments or it thinks I'm trying to enter text rather than a formula.
Can someone point me in the right direction please?
Thank you
thank you for helping
____________
Pendle
My SUMIF works fine alone and my VLOOKUP works fine alone but I am unable to combine them successfully....
Main data looks like this (I've left out the row data not relevant to this problem):
[pre]
A B C D E F G
6 Supplier No Supplier Our Ref Your Ref Code CCNo Amount
7
18 12345 ABC Company xxx xxx xxx xxx
[/pre]
Normally we add in the amounts manually but I want to automate if possible.
The source data looks like this: currently it's sitting on the same worksheet....
[pre]
J K L M N
21 Office xxxxx xxxxx Amount xxxxx
22 ABC Company xxxxx xxxxx £4.88 xxxxx
23 ABC Company xxxxx xxxxx £19.91 xxxxx
24 ABC Company xxxxx xxxxx £42.62 xxxxx
25 ABC Company xxxxx xxxxx £16.99 xxxxx
26 XYZ Company xxxxx xxxxx £17.46 xxxxx
[/pre]
In Cell G18 I can have the following formula:
=SUMIF(table,J22,M22:M26) and it gives me the answer £84.40 Table is the name of the source data from J22:N26.
or I can have
= VLOOKUP (B18,table,4,false) gives me the answer of £4.88.
But what I actually want to do is add up all the totals in Table for ABC Company and put the total into G18.
I've had a look online and there are some examples, but I just can't get them to work for me, and I can't see where I'm going wrong. I either get the message that I've got too many arguments or it thinks I'm trying to enter text rather than a formula.
Can someone point me in the right direction please?
Thank you
thank you for helping
____________
Pendle