XL2010 Quotation Margin Auto Calculation Formula

AliUAE

New Member
Joined
May 7, 2013
Messages
8
Appreciate it in getting assistance with the Formula in XL2010 for <o:p></o:p>
Rate (Sell D11) calculation for different Venders, Products and Sizes.<o:p></o:p>
The margins (profit percentage over the cost price) are different<o:p></o:p>
for each Vender. The Venders and Products list are over 50 numbers.
A
B
C
D
E
F
H
I
J
K
L
M
N
O
P
Q
R
S
No
Products
Size
Rate
Quantity
Line Total
Cost Price
1
Size
XXXL
XXL
XL
L
ML
M
S
SS
2
Margins
Vender
Product
3
1.20
Vender A
T-Shirt
110
100
95
90
85
80
75
70
4
1.30
Vender B
Trousers
200
190
180
170
160
150
140
130
5
1.15
Vender C
Jacket
250
225
200
175
150
125
100
75
*
Jacket
XL
220
2
440
1.40
Vender D
Hat
50
45
40
35
30
25
20
15
*
Shirt
ML
60.5
3
181.5
1.12
Vender E
Shirt
75
70
65
60
55
50
45
40
* Thew above lines 16&17 are examples
Line Total
621.5
1.10
Vender F
Socks
20
18
16
14
12
10
8
6
to how the formula calculation result
Discounts
1.20
Vender G
Underwear
30
29
28
27
26
25
24
23
should be.
Tax
1.50
Price List
Total
621.5

<TBODY>
</TBODY>


<TBODY>
</TBODY>
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Something like this:

Excel 2010
ABCDEFGHIJKLMNOPQ
1ProductsSizeRateQuantityLine TotalCost Price
2SizeXXXLXXLXLLMLMSSS
3MarginsVenderProduct
41.2Vender AT-Shirt110100959085807570
51.3Vender BTrousers200190180170160150140130
61.15Vender CJacket25022520017515012510075
7JacketXL20024401.4Vender DHat5045403530252015
8ShirtML553181.51.12Vender EShirt7570656055504540
9* Thew above lines 16&17 are examplesLine Total621.51.1Vender FSocks20181614121086
10to how the formula calculation resultDiscounts1.2Vender GUnderwear3029282726252423
11should be.Tax1.5Price List
12Total

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C7=INDEX($H$2:$Q$8,MATCH(A7,$H$2:$H$8,0),MATCH(B7,$H$2:$Q$2,0))
C8=INDEX($H$2:$Q$8,MATCH(A8,$H$2:$H$8,0),MATCH(B8,$H$2:$Q$2,0))

<tbody>
</tbody>

<tbody>
</tbody>


In your example you listed ML shirts as 60.5 but your cost price list says 55 and XL Jackets as 220 rather than 200.
Please clarify.
 
Last edited:
Upvote 0
Something like this:
Thanks for your promote response and suggested formulas.Yes the examples are correct:
Vender F margin is 10% over the cost price (costx1.1)
Jacket XL cost price is 200 x 1.1 = 220 (sell price)
Shirt ML cost price is 55 x 1.1 = 60.5 (sell price)



Excel 2010
ABCDEFGHIJKLMNOPQ
1ProductsSizeRateQuantityLine TotalCost Price
2SizeXXXLXXLXLLMLMSSS
3MarginsVenderProduct
41.2Vender AT-Shirt110100959085807570
51.3Vender BTrousers200190180170160150140130
61.15Vender CJacket25022520017515012510075
7JacketXL20024401.4Vender DHat5045403530252015
8ShirtML553181.51.12Vender EShirt7570656055504540
9* Thew above lines 16&17 are examplesLine Total621.51.1Vender FSocks20181614121086
10to how the formula calculation resultDiscounts1.2Vender GUnderwear3029282726252423
11should be.Tax1.5Price List
12Total

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C7=INDEX($H$2:$Q$8,MATCH(A7,$H$2:$H$8,0),MATCH(B7,$H$2:$Q$2,0))
C8=INDEX($H$2:$Q$8,MATCH(A8,$H$2:$H$8,0),MATCH(B8,$H$2:$Q$2,0))

<tbody>
</tbody>

<tbody>
</tbody>


In your example you listed ML shirts as 60.5 but your cost price list says 55 and XL Jackets as 220 rather than 200.
Please clarify.
Thanks for your promote response and suggested formulas.Yes the examples are correct:
Vender F margin is 10% over the cost price (costx1.1)
Jacket XL cost price is 200 x 1.1 = 220 (sell price)
Shirt ML cost price is 55 x 1.1 = 60.5 (sell price)
 
Upvote 0
Ah, ok. I understand. It wasn't clear due to the layout of the tables.

I have moved the tables a little so that it is clearer but you can obv change the layout back.


Excel 2010
ABCDEFGHIJKLMNOPQRST
1VenderProductsSizeRateQuantityLine Total
2FJacketXL2202440VenderMarginsCost PriceSizeXXXLXXLXLLMLMSSS
3FShirtML60.53181.5A1.2Product
4CHatS23492B1.3T-Shirt110100959085807570
5GSocksXL19.2119.2C1.15Trousers200190180170160150140130
6  D1.4Jacket25022520017515012510075
7  E1.12Hat5045403530252015
8  F1.1Shirt7570656055504540
9Line Total732.7G1.2Socks20181614121086
10DiscountsUnderwear3029282726252423
11Tax
12Total732.7
Sheet1
Cell Formulas
RangeFormula
D2=IF(ISNA(INDEX($K$2:$T$10,MATCH(B2,$K$2:$K$10,0),MATCH(C2,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A2,$H$2:$H$9,0),2)),"",INDEX($K$2:$T$10,MATCH(B2,$K$2:$K$10,0),MATCH(C2,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A2,$H$2:$H$9,0),2))
D3=IF(ISNA(INDEX($K$2:$T$10,MATCH(B3,$K$2:$K$10,0),MATCH(C3,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A3,$H$2:$H$9,0),2)),"",INDEX($K$2:$T$10,MATCH(B3,$K$2:$K$10,0),MATCH(C3,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A3,$H$2:$H$9,0),2))
D4=IF(ISNA(INDEX($K$2:$T$10,MATCH(B4,$K$2:$K$10,0),MATCH(C4,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A4,$H$2:$H$9,0),2)),"",INDEX($K$2:$T$10,MATCH(B4,$K$2:$K$10,0),MATCH(C4,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A4,$H$2:$H$9,0),2))
D5=IF(ISNA(INDEX($K$2:$T$10,MATCH(B5,$K$2:$K$10,0),MATCH(C5,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A5,$H$2:$H$9,0),2)),"",INDEX($K$2:$T$10,MATCH(B5,$K$2:$K$10,0),MATCH(C5,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A5,$H$2:$H$9,0),2))
D6=IF(ISNA(INDEX($K$2:$T$10,MATCH(B6,$K$2:$K$10,0),MATCH(C6,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A6,$H$2:$H$9,0),2)),"",INDEX($K$2:$T$10,MATCH(B6,$K$2:$K$10,0),MATCH(C6,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A6,$H$2:$H$9,0),2))
D7=IF(ISNA(INDEX($K$2:$T$10,MATCH(B7,$K$2:$K$10,0),MATCH(C7,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A7,$H$2:$H$9,0),2)),"",INDEX($K$2:$T$10,MATCH(B7,$K$2:$K$10,0),MATCH(C7,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A7,$H$2:$H$9,0),2))
D8=IF(ISNA(INDEX($K$2:$T$10,MATCH(B8,$K$2:$K$10,0),MATCH(C8,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A8,$H$2:$H$9,0),2)),"",INDEX($K$2:$T$10,MATCH(B8,$K$2:$K$10,0),MATCH(C8,$K$2:$T$2,0))*INDEX($H$2:$I$9,MATCH(A8,$H$2:$H$9,0),2))
F2=IFERROR(D2*E2,"")
F3=IFERROR(D3*E3,"")
F4=IFERROR(D4*E4,"")
F5=IFERROR(D5*E5,"")
F6=IFERROR(D6*E6,"")
F7=IFERROR(D7*E7,"")
F8=IFERROR(D8*E8,"")
F9=SUM(F2:F8)
F12=F9-F10+F11
 
Upvote 0
Dear Comfy
I appreciate the time you have taken to rearrange the table, which is much neater now.
Also like to thank you for setting out the formulas, specially for the rate cell.
Couldn't figure out that it's going to be this long, I really appreciate the time you have spend on it.
Already tried it, it's working great. I am happy man now. Cheeeerssss Comfy.
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

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