Excel Insert Cost (specified in another sheet) after every interval of Specified number of units sold.

feelsk

New Member
Joined
May 6, 2014
Messages
4
Dear All,

I am struggling with a situation where I developed a feasibility study, and would like to ADD COST (FIXED NUMBER) AT EVERY INTERNAL AFTER ACHIEVING A CERTAIN NUMBER OF UNITS SOLD, for example:

Cost of procuring 10,000 units is USD 2,000.00

Yr0 Yr1 Yr2 Yr3 Yr4
Sales (units) - 5000 7000 9000 1000
Cost (USD) 2000 - 2000 2000 -

Hope I was able to explain as I intended.

Thanks in advance,
feelsk
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Not sure if I understood ou correctly. Try this formula. In this case you need to achieve 10k units.


Excel 2010
ABCDEF
1YR0YR1YR2YR3YR5
2Sales (Units)-50007000900010000
3Cost (USD) 2000
Sheet1
Cell Formulas
RangeFormula
B3=IF(OR(NOT(ISNUMBER(B2)),B2<10000),"",FLOOR(B2/10000,1)*2000)
 
Last edited:
Upvote 0
skorpionkz, thanks for the prompt reply.

This is very helpful. However, lets say:

1. In the Yr0, I paid USD 2,000.00 for a shipment of 10,000 units, and sold no units. Shipment comes only in consignment of 10,000 units.

2. In the Yr1, I sold 5,000 units, hence left with 5,000 units

3. In the Yr2, I sold 7,000 units, of which I previously had 5,000.00 from 1st shipment of Yr0, balance 2,000 units comes from the 2nd shipment purchased in this year for USD 2,000.00. Therefore, in Yr2 column USD 2,000.00 should also appear.

4. In the Yr3, I sold 9,000 units, similarly, I already had 8,000 units from 2nd shipment, and to make up for the remaining 1,000 units, I bought 3rd shipment for USD 2,000.00. Therefore, in Yr3 also, 2,000. should appear.

5. In the Yr4, I only sold 1,000 units. I already had 9,000 units from the 3rd shipment, therefore no shipment was purchased, consequently USD 2,000.00 should not appear in this year.

I wish if excel could automatically put USD 2,000 under the same year, in which I had to buy shipments.

Hope this is not too overwhelming, and able to communicate more clearly.

Thanks in advance.
 
Upvote 0
Sorry, I need to correct the formula, will back soon
 
Last edited:
Upvote 0
Sorry I spot that there was mistake in the formula in post above, so I deleted it to do not confuse anyone. Try ths fromula


Excel 2010
ABCDEFG
1YR0YR1YR2YR3YR5YR6
2Sales (Units)0500070009000100001000
3Stock (Units)1000050008000900090008000
4Cost (USD)2000200020002000
Sheet1
Cell Formulas
RangeFormula
B3=IF(B2>A3,A3-B2+10000,IF(OR(NOT(ISNUMBER(B2)),B2=0),10000,A3-B2))
B4=IF(OR(NOT(ISNUMBER(B2)),B2>A3,B2=0),2000,"")


This will not work though if you would sell more than 10000 items
 
Last edited:
Upvote 0
I play around with this formulas and it should work now for any order


Excel 2010
ABCDEF
1YR0YR1YR2YR3YR5
2Sales (Units)0500070002500015000
3Stock (Units)100005000800030008000
4Cost (USD)2000200040004000
Sheet1
Cell Formulas
RangeFormula
B3=IF(NOT(ISNUMBER(A3)),10000,IF(B2>A3,CEILING(-(A3-B2)/10000,1)*10000+A3-B2,A3-B2))
B4=IF(NOT(ISNUMBER(A3)),2000,IF(B2>A3,CEILING(-(A3-B2)/10000,1)*2000,""))
 
Upvote 0
Worked Like a Charm!!! Brilliant! Absolutely Brilliant! A master of Excel indeed!

Sir, skorpionkz, you have saved me a lot of trouble, and indeed awful lot of time. Hats off! Couldn't thank enough.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,812
Members
449,095
Latest member
m_smith_solihull

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