Cost Pricing Formula

bobzy20

New Member
Joined
Feb 5, 2018
Messages
41
Office Version
  1. 2010
Hi

I’m looking for a formula that can be used with my costing table tab to produce the correct prices in the sales tab when different quantities are added based on their prices.

I have an example excel sheet but don’t know how to add it?

Thanks

Bob
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
This is my Sales Tab > Costing tab below.

When entering a higher quantity, i would like to unit prices to change based on the costing tab format.

Examples below
5x 501 with a quantity of 2 should show a unit price of £24.30
501 with a quantity of 1 should show a unit price of £6.99
501 with a quantity of 2 should show a price of £6.29

Test.xlsx
ABCD
1DescriptionQuantityUnitTotal
25x 5011£27.00£27.00
310x 5011£40.00£40.00
420x 5011£70.00£70.00
530x 5011£90.00£90.00
650x 5011£150.00£150.00
7
85x 5031£27.00£27.00
910x 5031£40.00£40.00
1020x 5031£70.00£70.00
1130x 5031£90.00£90.00
1250x 5031£150.00£150.00
13
145x 5071£27.00£27.00
1510x 5071£40.00£40.00
1620x 5071£70.00£70.00
1730x 5071£90.00£90.00
1850x 5071£150.00£150.00
19
205011£6.99£6.99
215012£6.99£13.98
225013£6.99£20.97
235014£6.99£27.96
Sales
Cell Formulas
RangeFormula
D20:D23,D14:D18,D8:D12,D2:D6D2=SUM(C2*B2)


Costing Tab Example - Reduced as it was too long but not needed to get formula.

Test.xlsx
ABCD
1DescriptionQtyUnitTotal
25x 5011£27.00£27.00
35x 5012£24.30£48.60
45x 5013£22.95£68.85
55x 5014£21.60£86.40
6
75x 5031£27.00£27.00
85x 5032£24.30£48.60
95x 5033£22.95£68.85
105x 5034£21.60£86.40
11
125x 5071£27.00£27.00
135x 5072£24.30£48.60
145x 5073£22.95£68.85
155x 5074£21.60£86.40
16
175011£6.99£6.99
185012£6.29£12.58
195013£5.94£17.82
205014£5.59£22.36
21
225031£6.99£6.99
235032£6.29£12.58
245033£5.94£17.82
255034£5.59£22.36
26
275071£6.99£6.99
285072£6.29£12.58
295073£5.94£17.82
305074£5.59£22.36
Costing Table (Sent)
Cell Formulas
RangeFormula
D27:D30,D22:D25,D17:D20,D12:D15,D7:D10,D2:D5D2=SUM(C2*B2)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
2010 - Also updated.

Thanks
 
Upvote 0
Thanks for that, how about
Excel Formula:
=INDEX('Costing Table (sent)'!$C$2:$C$30,MATCH(A2&"|"&B2,'Costing Table (sent)'!$A$2:$A$30&"|"&'Costing Table (sent)'!$B$2:$B$30,0))

This is an array formula & needs to be confirmed with Ctrl Shift Enter, not just Enter.
 
Upvote 0
Solution
Thanks for that, how about
Excel Formula:
=INDEX('Costing Table (sent)'!$C$2:$C$30,MATCH(A2&"|"&B2,'Costing Table (sent)'!$A$2:$A$30&"|"&'Costing Table (sent)'!$B$2:$B$30,0))

This is an array formula & needs to be confirmed with Ctrl Shift Enter, not just Enter.
Hi

Thanks very much. It works for the first row but doesn't work on the rest.

Test.xlsx
ABCD
1DescriptionQuantityUnitTotal
25x 50110£21.60£216.00
310x 5011#N/A#N/A
420x 5011#N/A#N/A
530x 5011#N/A#N/A
650x 5011#N/A#N/A
7
85x 5031£27.00£27.00
910x 5031#N/A#N/A
1020x 5031#N/A#N/A
1130x 5031#N/A#N/A
1250x 5031#N/A#N/A
13
145x 5071£27.00£27.00
1510x 5071#N/A#N/A
1620x 5071#N/A#N/A
1730x 5071#N/A#N/A
1850x 5071#N/A#N/A
19
205011#N/A#N/A
215012#N/A#N/A
225013#N/A#N/A
235014#N/A#N/A
Sales
Cell Formulas
RangeFormula
C20:C23,C14:C18,C8:C12,C2:C6C2=INDEX('[Costing Table (sent)]Costing Table'!$C$2:$C$30,MATCH(A2&"|"&B2,'[Costing Table (sent)]Costing Table'!$A$2:$A$30&"|"&'[Costing Table (sent)]Costing Table'!$B$2:$B$30,0))
D20:D23,D14:D18,D8:D12,D2:D6D2=SUM(C2*B2)
Press CTRL+SHIFT+ENTER to enter array formulas.


Will this formula work with my extended costing table listed below to pick up all prices?

Test.xlsx
ABCD
1DescriptionQtyUnitTotal
25x 5011£27.00£27.00
35x 5012£24.30£48.60
45x 5013£22.95£68.85
55x 5014£21.60£86.40
65x 5015£21.60£108.00
75x 5016£21.60£129.60
85x 5017£21.60£151.20
95x 5018£21.60£172.80
105x 5019£21.60£194.40
115x 50110£21.60£216.00
12
135x 5031£27.00£27.00
145x 5032£24.30£48.60
155x 5033£22.95£68.85
165x 5034£21.60£86.40
175x 5035£21.60£108.00
185x 5036£21.60£129.60
195x 5037£21.60£151.20
205x 5038£21.60£172.80
215x 5039£21.60£194.40
225x 50310£21.60£216.00
23
245x 5071£27.00£27.00
255x 5072£24.30£48.60
265x 5073£22.95£68.85
275x 5074£21.60£86.40
285x 5075£21.60£108.00
295x 5076£21.60£129.60
305x 5077£21.60£151.20
315x 5078£21.60£172.80
325x 5079£21.60£194.40
335x 50710£21.60£216.00
34
3510x 5011£40.00£40.00
3610x 5012£38.00£76.00
3710x 5013£36.00£108.00
3810x 5014£34.00£136.00
3910x 5015£34.00£170.00
4010x 5016£34.00£204.00
4110x 5017£34.00£238.00
4210x 5018£34.00£272.00
4310x 5019£34.00£306.00
4410x 50110£34.00£340.00
45
4610x 5031£40.00£40.00
4710x 5032£38.00£76.00
4810x 5033£36.00£108.00
4910x 5034£34.00£136.00
5010x 5035£34.00£170.00
5110x 5036£34.00£204.00
5210x 5037£34.00£238.00
5310x 5038£34.00£272.00
5410x 5039£34.00£306.00
5510x 50310£34.00£340.00
56
5710x 5071£40.00£40.00
5810x 5072£38.00£76.00
5910x 5073£36.00£108.00
6010x 5074£34.00£136.00
6110x 5075£34.00£170.00
6210x 5076£34.00£204.00
6310x 5077£34.00£238.00
6410x 5078£34.00£272.00
6510x 5079£34.00£306.00
6610x 50710£34.00£340.00
67
6820x 5011£70.00£70.00
6920x 5012£66.50£133.00
7020x 5013£63.00£189.00
7120x 5014£59.50£238.00
7220x 5015£59.50£297.50
7320x 5016£59.50£357.00
7420x 5017£59.50£416.50
7520x 5018£59.50£476.00
7620x 5019£59.50£535.50
7720x 50110£59.50£595.00
78
7920x 5031£70.00£70.00
8020x 5032£66.50£133.00
8120x 5033£63.00£189.00
8220x 5034£59.50£238.00
8320x 5035£59.50£297.50
8420x 5036£59.50£357.00
8520x 5037£59.50£416.50
8620x 5038£59.50£476.00
8720x 5039£59.50£535.50
8820x 50310£59.50£595.00
89
9020x 5071£70.00£70.00
9120x 5072£66.50£133.00
9220x 5073£63.00£189.00
9320x 5074£59.50£238.00
9420x 5075£59.50£297.50
9520x 5076£59.50£357.00
9620x 5077£59.50£416.50
9720x 5078£59.50£476.00
9820x 5079£59.50£535.50
9920x 50710£59.50£595.00
100
10130x 5011£90.00£90.00
10230x 5012£85.50£171.00
10330x 5013£81.00£243.00
10430x 5014£76.50£306.00
10530x 5015£76.50£382.50
10630x 5016£76.50£459.00
10730x 5017£76.50£535.50
10830x 5018£76.50£612.00
10930x 5019£76.50£688.50
11030x 50110£76.50£765.00
111
11230x 5031£90.00£90.00
11330x 5032£85.50£171.00
11430x 5033£81.00£243.00
11530x 5034£76.50£306.00
11630x 5035£76.50£382.50
11730x 5036£76.50£459.00
11830x 5037£76.50£535.50
11930x 5038£76.50£612.00
12030x 5039£76.50£688.50
12130x 50310£76.50£765.00
122
12330x 5071£90.00£90.00
12430x 5072£85.50£171.00
12530x 5073£81.00£243.00
12630x 5074£76.50£306.00
12730x 5075£76.50£382.50
12830x 5076£76.50£459.00
12930x 5077£76.50£535.50
13030x 5078£76.50£612.00
13130x 5079£76.50£688.50
13230x 50710£76.50£765.00
133
13440x 5011£120.00£120.00
13540x 5012£114.00£228.00
13640x 5013£108.00£324.00
13740x 5014£102.00£408.00
13840x 5015£102.00£510.00
13940x 5016£102.00£612.00
14040x 5017£102.00£714.00
14140x 5018£102.00£816.00
14240x 5019£102.00£918.00
14340x 50110£102.00£1,020.00
144
14540x 5031£120.00£120.00
14640x 5032£114.00£228.00
14740x 5033£108.00£324.00
14840x 5034£102.00£408.00
14940x 5035£102.00£510.00
15040x 5036£102.00£612.00
15140x 5037£102.00£714.00
15240x 5038£102.00£816.00
15340x 5039£102.00£918.00
15440x 50310£102.00£1,020.00
155
15640x 5071£120.00£120.00
15740x 5072£114.00£228.00
15840x 5073£108.00£324.00
15940x 5074£102.00£408.00
16040x 5075£102.00£510.00
16140x 5076£102.00£612.00
16240x 5077£102.00£714.00
16340x 5078£102.00£816.00
16440x 5079£102.00£918.00
16540x 50710£102.00£1,020.00
166
16750x 5011£150.00£150.00
16850x 5012£142.50£285.00
16950x 5013£135.00£405.00
17050x 5014£127.50£510.00
17150x 5015£127.50£637.50
17250x 5016£127.50£765.00
17350x 5017£127.50£892.50
17450x 5018£127.50£1,020.00
17550x 5019£127.50£1,147.50
17650x 50110£127.50£1,275.00
177
17850x 5031£150.00£150.00
17950x 5032£142.50£285.00
18050x 5033£135.00£405.00
18150x 5034£127.50£510.00
18250x 5035£127.50£637.50
18350x 5036£127.50£765.00
18450x 5037£127.50£892.50
18550x 5038£127.50£1,020.00
18650x 5039£127.50£1,147.50
18750x 50310£127.50£1,275.00
188
18950x 5071£150.00£150.00
19050x 5072£142.50£285.00
19150x 5073£135.00£405.00
19250x 5074£127.50£510.00
19350x 5075£127.50£637.50
19450x 5076£127.50£765.00
19550x 5077£127.50£892.50
19650x 5078£127.50£1,020.00
19750x 5079£127.50£1,147.50
19850x 50710£127.50£1,275.00
199
2005011£6.99£6.99
2015012£6.29£12.58
2025013£5.94£17.82
2035014£5.59£22.36
2045015£5.59£27.95
2055016£5.59£33.54
2065017£5.59£39.13
2075018£5.59£44.72
2085019£5.59£50.31
20950110£5.59£55.90
21050111£5.59£61.49
21150112£5.59£67.08
21250113£5.59£72.67
21350114£5.59£78.26
21450115£5.59£83.85
21550116£5.59£89.44
21650117£5.59£95.03
21750118£5.59£100.62
21850119£5.59£106.21
21950120£5.59£111.80
22050121£5.59£117.39
22150122£5.59£122.98
22250123£5.59£128.57
22350124£5.59£134.16
22450125£5.59£139.75
22550126£5.59£145.34
22650127£5.59£150.93
22750128£5.59£156.52
22850129£5.59£162.11
22950130£5.59£167.70
23050131£5.59£173.29
23150132£5.59£178.88
23250133£5.59£184.47
23350134£5.59£190.06
23450135£5.59£195.65
23550136£5.59£201.24
23650137£5.59£206.83
23750138£5.59£212.42
23850139£5.59£218.01
23950140£5.59£223.60
24050141£5.59£229.19
24150142£5.59£234.78
24250143£5.59£240.37
24350144£5.59£245.96
24450145£5.59£251.55
24550146£5.59£257.14
24650147£5.59£262.73
24750148£5.59£268.32
24850149£5.59£273.91
24950150£5.59£279.50
250
2515031£6.99£6.99
2525032£6.29£12.58
2535033£5.94£17.82
2545034£5.59£22.36
2555035£5.59£27.95
2565036£5.59£33.54
2575037£5.59£39.13
2585038£5.59£44.72
2595039£5.59£50.31
26050310£5.59£55.90
26150311£5.59£61.49
26250312£5.59£67.08
26350313£5.59£72.67
26450314£5.59£78.26
26550315£5.59£83.85
26650316£5.59£89.44
26750317£5.59£95.03
26850318£5.59£100.62
26950319£5.59£106.21
27050320£5.59£111.80
27150321£5.59£117.39
27250322£5.59£122.98
27350323£5.59£128.57
27450324£5.59£134.16
27550325£5.59£139.75
27650326£5.59£145.34
27750327£5.59£150.93
27850328£5.59£156.52
27950329£5.59£162.11
28050330£5.59£167.70
28150331£5.59£173.29
28250332£5.59£178.88
28350333£5.59£184.47
28450334£5.59£190.06
28550335£5.59£195.65
28650336£5.59£201.24
28750337£5.59£206.83
28850338£5.59£212.42
28950339£5.59£218.01
29050340£5.59£223.60
29150341£5.59£229.19
29250342£5.59£234.78
29350343£5.59£240.37
29450344£5.59£245.96
29550345£5.59£251.55
29650346£5.59£257.14
29750347£5.59£262.73
29850348£5.59£268.32
29950349£5.59£273.91
30050350£5.59£279.50
301
Costing Table
Cell Formulas
RangeFormula
D251:D300,D200:D249,D189:D198,D178:D187,D167:D176,D156:D165,D145:D154,D134:D143,D123:D132,D112:D121,D101:D110,D90:D99,D79:D88,D68:D77,D57:D66,D46:D55,D35:D44,D24:D33,D13:D22,D2:D11D2=SUM(C2*B2)


It was too long so i need to split the table.

Test.xlsx
ABCD
301
3025071£6.99£6.99
3035072£6.29£12.58
3045073£5.94£17.82
3055074£5.59£22.36
3065075£5.59£27.95
3075076£5.59£33.54
3085077£5.59£39.13
3095078£5.59£44.72
3105079£5.59£50.31
31150710£5.59£55.90
31250711£5.59£61.49
31350712£5.59£67.08
31450713£5.59£72.67
31550714£5.59£78.26
31650715£5.59£83.85
31750716£5.59£89.44
31850717£5.59£95.03
31950718£5.59£100.62
32050719£5.59£106.21
32150720£5.59£111.80
32250721£5.59£117.39
32350722£5.59£122.98
32450723£5.59£128.57
32550724£5.59£134.16
32650725£5.59£139.75
32750726£5.59£145.34
32850727£5.59£150.93
32950728£5.59£156.52
33050729£5.59£162.11
33150730£5.59£167.70
33250731£5.59£173.29
33350732£5.59£178.88
33450733£5.59£184.47
33550734£5.59£190.06
33650735£5.59£195.65
33750736£5.59£201.24
33850737£5.59£206.83
33950738£5.59£212.42
34050739£5.59£218.01
34150740£5.59£223.60
34250741£5.59£229.19
34350742£5.59£234.78
34450743£5.59£240.37
34550744£5.59£245.96
34650745£5.59£251.55
34750746£5.59£257.14
34850747£5.59£262.73
34950748£5.59£268.32
35050749£5.59£273.91
35150750£5.59£279.50
Costing Table
Cell Formulas
RangeFormula
D302:D351D302=SUM(C302*B302)
 
Upvote 0
You need to change the ranges to cover all the data in the costing table.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,913
Members
449,093
Latest member
dbomb1414

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