VAT Contents of Receipts

AllisterB

Board Regular
Joined
Feb 22, 2019
Messages
120
Office Version
  1. 365
Platform
  1. Windows
The attached sheet shows various items that are sold - some are subject to 10% VAT others 0% VAT.

The sales value is received in the third table.

I need a formula that will tell me the VAT content of the receipts for each of the months. i.e. how much VAT is in the $350 received in March.

I would prefer not use an array formula due to the large number of formulae that will be needed.

I have been trying to use SUMPRODUCT but haven't been able to crack it.

Thank You.

Allister

VAT.xlsx
GHIJKLMNOPQRSTUVWXYZAAABACADAEAF
11VAT exclusiveVAT InclusiveReceived
12VATJanFebMarAprMayJanFebMarAprMayJanFebMarAprMay
13A10%10020030040010001102203300440110005010000150
14B0%3003000300000300000000
15C10%20020000022002200022000220
16D10%100100011000011000300030
17E0%20020000200002000800200100
18
190130350200500
Sheet1
Cell Formulas
RangeFormula
R13:V17R13=ROUND(J13*(1+$H13),0)
P13:P17,AF13:AF17,X13:X17P13=SUM(J13:N13)
Z19:AD19,AF19Z19=SUM(Z13:Z18)
 
@ebea

AD15 does appear to be an anomaly if intermediate totals are necessary then Subtotal would be a wiser choice.

I don't see that using Sum instead of Sumproduct will make a difference, it would be marginally less efficient and would still encounter the error of a mathematical operation being attempted on a non numeric value.
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
@ebea

AD15 does appear to be an anomaly if intermediate totals are necessary then Subtotal would be a wiser choice.

I don't see that using Sum instead of Sumproduct will make a difference, it would be marginally less efficient and would still encounter the error of a mathematical operation being attempted on a non numeric value.
If you setup the Fomula a little bit different, he can use Sum. SUM are not affected of Text in cells, but Sumproduct are. If I understand the question correct, he want to find the amount of VAT received in table 3. And if he calculate by using SUM in AD Column, and subtract the Sum he have in Table 2, and set up the right way, he should get the result (if I understand the question correctly ;) )
 
Upvote 0
If you setup the Fomula a little bit different, he can use Sum.
Please, feel free to show us how. If you're seeing something that I'm not, I would like to know what it is.

SUM are not affected of Text in cells, but Sumproduct are.
Both are affected when you perform any operations inside the function, likewise neither are affected if there are no operations performed inside the function.

I can't see any way of doing it differently with Sum, other than setting up an entire table in the same format and using a formula for every row instead of just one at the end of the column, then repeating this for every month. Potentially turning a line of 12 sumproduct formulas into a table of hundreds of sum formulas.
 
Upvote 0
You write: " I need a formula that will tell me the VAT content of the receipts for each of the months. i.e. how much VAT is in the $350 received in March" And if I have understood this correctly, why not use, a SUM formula, as this here: =SUM(AD13:AD19)*$B$2 insert in AD22. The $B$2 in the Formula, are just the percent value insert in B2 (10%). It should give you the amount of the VAT, of the received amount.
 
Upvote 0
You write: " I need a formula that will tell me the VAT content of the receipts for each of the months. i.e. how much VAT is in the $350 received in March"
I actually provided the answer, not the question. Regardless of that, it looks like you may have misunderstood what was asked. Hopefully this will help you to understand a little better.

If you look at the data sample provided by AllisterB you will see that the percentage is variable by row, which is why sumproduct is needed. Your suggestion assumes that the VAT percentage is the same on every row. In order to produce the correct results the calculation needs to be performed on a row by row basis (using an array) which can not be done the way that you suggest.

Also, =SUM(AD13:AD19)*$B$2 is calculating the result as a percentage of the total amount, where the correct result needs to be calculated on the pre-tax amount, e.g. =SUM(AD13:AD19)/(1+$B$2) but again, this incorrectly assumes that the vat is the same on every row.
 
Upvote 0
I actually provided the answer, not the question. Regardless of that, it looks like you may have misunderstood what was asked. Hopefully this will help you to understand a little better.

If you look at the data sample provided by AllisterB you will see that the percentage is variable by row, which is why sumproduct is needed. Your suggestion assumes that the VAT percentage is the same on every row. In order to produce the correct results the calculation needs to be performed on a row by row basis (using an array) which can not be done the way that you suggest.

Also, =SUM(AD13:AD19)*$B$2 is calculating the result as a percentage of the total amount, where the correct result needs to be calculated on the pre-tax amount, e.g. =SUM(AD13:AD19)/(1+$B$2) but again, this incorrectly assumes that the vat is the same on every row.
What I wrote in Cursive, was to the OP, not to you Jason ;). Yes, if he has varying VAT I agree, but that's not what I see in he's example. He only set Null or 10%
 
Upvote 0
If that was the case, you should have preceded your cursive quote with a reference to the OP instead of the pronoun 'you', which implies that you are saying it to the author of the previous reply.
It would appear that a dictionary is the only place where 'clarity' comes before 'confusion'.

He is varying VAT, null / 0% is not the same as 10%. You're taking 10% off of the items that have 0% VAT as well o_O

Simplified version of the OP's data showing the Sumproduct formula and your Sum formula, notice the difference?
Book2
AB
1
210%20
30%30
410%40
5
690
75.454545
89
Sheet14
Cell Formulas
RangeFormula
B6B6=SUM(B2:B5)
B7B7=B6-SUMPRODUCT(B2:B4/(1+$A2:$A4))
B8B8=SUM(B2:B4)*$A$2
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
If that was the case, you should have preceded your cursive quote with a reference to the OP instead of the pronoun 'you', which implies that you are saying it to the author of the previous reply.
It would appear that a dictionary is the only place where 'clarity' comes before 'confusion'.

He is varying VAT, null / 0% is not the same as 10%. You're taking 10% off of the items that have 0% VAT as well o_O

Simplified version of the OP's data showing the Sumproduct formula and your Sum formula, notice the difference?
Book2
AB
1
210%20
30%30
410%40
5
690
75.454545
89
Sheet14
Cell Formulas
RangeFormula
B6B6=SUM(B2:B5)
B7B7=B6-SUMPRODUCT(B2:B4/(1+$A2:$A4))
B8B8=SUM(B2:B4)*$A$2
Press CTRL+SHIFT+ENTER to enter array formulas.
The Sum for columns without an amount (january), will also show a 0 in result.
I assume, that the numbers you refer to in the B Column in your example, must be from table 2, and not 3. In Table 3, it's what he receive in amount, and they are inclusive VAT. If they should be in varying amount, (some inclusive, some exclusive), it would be a problem for the accountant. So I see Table 3 as all inclusive VAT (10%)
IF it really should be so, that VAT should differ in Table 3 (different VAT amount), I would personally put a sum for each row, in a Column in the end of Table 3, and calculate it in that way.
 
Upvote 0
Thats how I see the received amount, and all inclusive VAT (10% as only option).

Mappe1
ABCDEF
1Table 3
210%
3Received
4SourceJanFebMarAprMay
5Sales05010000
6Sales00000
7
8Text
9Sales0022000
10Sales003000
11Sales0800200
12
130130350,00200
140133520
Ark2
Cell Formulas
RangeFormula
B13:F13B13=SUM(B5:B11)
B14:F14B14=SUM(B5:B11)*$B$2
 
Upvote 0
I would personally put a sum for each row, in a Column in the end of Table 3, and calculate it in that way.
That would require a column for each month which I believe is what the OP is trying to avoid.

I agree that the layout is not ideal in regard to what it does and doesn't contain, personally I would say that to avoid the extra columns something like this might work (I've used 5% instead of 0% for the second amount but it works with anything).

Book2
ABC
1
2Item 110%20
3Item 25%30
4Item 310%40
5
6Received inc vat10%60
75%40
8Received exc vat10%54.55
95%38.10
10Vat10%5.45
115%1.90
Sheet14
Cell Formulas
RangeFormula
C6:C7C6=SUMIF($B$2:$B$4,B6,C2:C4)
C8:C9C8=C6/(1+B6)
C10:C11C10=C6-C8
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,729
Members
449,049
Latest member
MiguekHeka

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top