Excel Formula Qn for Inventory

L

Legacy 262764

Guest
Hi,

I've been stumped trying to figure the formula for the following problem. Any help is appreciated.

I am creating a financial spreadsheet using Excel for Mac 2011 (v14.3.8) with the following rows (the columns are months of the year):-

Row 1: Pre-sales Inventory
Row 2: Total units ordered by the client
Row 3: Post sales inventory
Row 4: Number of units required
Row 5: Number of units ordered

The problematic formula relates to Row 5. Orders can only be placed in 500 unit batches. I want the system to recognize that if the row 4 cell is negative then a certain amount of stock (row 5 cell) should be ordered. This amount should be in multiples of 500.

To better explain this I've included an example...

B4=A3-B2 The number of units required to be available for February is equal to the post sales inventory for January minus the total units ordered by​
the client. If this number is negative (eg. -240) then the number of units that need to be ordered (cell A5) would be 1 * 500. If the number is -501 then 2*500 and so on. Thus making B1=A3+A5.


If you haven't realised, my knowledge of Excel is quite basic. Thanks for your input.




 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Could you post a screen shot?

The first mistake is you are using excel for Mac :p
 
Upvote 0
[TABLE="width: 1261"]
<tbody>[TR]
[TD][/TD]
[TD]Jan '14[/TD]
[TD]Feb '14[/TD]
[TD]Mar '14[/TD]
[TD]Apr '14[/TD]
[TD]May '14[/TD]
[TD]Jun '14[/TD]
[TD]Jul '14[/TD]
[TD]Aug '14[/TD]
[TD]Sep '14[/TD]
[TD]Oct '14[/TD]
[TD]Nov '14[/TD]
[TD]Dec '14[/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pre-sales inventory[/TD]
[TD]500[/TD]
[TD]429[/TD]
[TD]287[/TD]
[TD]74[/TD]
[TD]-210 [/TD]
[TD]-565 [/TD]
[TD]-991 [/TD]
[TD]-1488 [/TD]
[TD]-2056 [/TD]
[TD]-2695 [/TD]
[TD]-3405 [/TD]
[TD]-4186 [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Total units ordered[/TD]
[TD]71[/TD]
[TD]142[/TD]
[TD]213[/TD]
[TD]284[/TD]
[TD]355[/TD]
[TD]426[/TD]
[TD]497[/TD]
[TD]568[/TD]
[TD]639[/TD]
[TD]710[/TD]
[TD]781[/TD]
[TD]852[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Post-sales inventory
[/TD]
[TD]429[/TD]
[TD]287[/TD]
[TD]74[/TD]
[TD]-210 [/TD]
[TD]-565 [/TD]
[TD]-991 [/TD]
[TD]-1488 [/TD]
[TD]-2056 [/TD]
[TD]-2695 [/TD]
[TD]-3405 [/TD]
[TD]-4186 [/TD]
[TD]-5038 [/TD]
[/TR]
[TR]
[TD]Units required
[/TD]
[TD]-210 [/TD]
[TD]-565 [/TD]
[TD]-991 [/TD]
[TD]-1488 [/TD]
[TD]-2056 [/TD]
[TD]-2695 [/TD]
[TD]-3405 [/TD]
[TD]-4186 [/TD]
[TD]-5038 [/TD]
[TD]-5961 [/TD]
[TD]-6955 [/TD]
[TD]-8020 [/TD]
[/TR]
[TR]
[TD]Stock units ordered[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]





Here's a copy of the spreadsheet. Didn't take long for the Mac bashing! lol Just accept the inevitable!
 
Upvote 0
Assuming the spreadsheet as depicted, the formula would go into cell B7. So try this formula in the first cell for Stock Units Ordered, then drag across;
=ROUNDUP(B6/500,0.5)*-500

You should end up with this;

[TABLE="width: 752"]
<colgroup><col style="width: 24pt; mso-width-source: userset; mso-width-alt: 1170;" width="32"> <col style="width: 119pt; mso-width-source: userset; mso-width-alt: 5778;" width="158"> <col style="width: 49pt; mso-width-source: userset; mso-width-alt: 2377;" width="65"> <col style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;" width="68"> <col style="width: 52pt; mso-width-source: userset; mso-width-alt: 2523;" width="69"> <col style="width: 50pt; mso-width-source: userset; mso-width-alt: 2450;" width="67"> <col style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;" width="71"> <col style="width: 50pt; mso-width-source: userset; mso-width-alt: 2413;" width="66"> <col style="width: 47pt; mso-width-source: userset; mso-width-alt: 2267;" width="62"> <col style="width: 52pt; mso-width-source: userset; mso-width-alt: 2523;" width="69"> <col style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;" width="68"> <col style="width: 50pt; mso-width-source: userset; mso-width-alt: 2413;" width="66"> <col style="width: 53pt; mso-width-source: userset; mso-width-alt: 2560;" width="70"> <col style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;" width="68"> <tbody>[TR]
[TD="class: xl67, width: 32, bgcolor: #D9D9D9"] [/TD]
[TD="class: xl67, width: 158, bgcolor: #D9D9D9"]A[/TD]
[TD="class: xl67, width: 65, bgcolor: #D9D9D9"]B[/TD]
[TD="class: xl67, width: 68, bgcolor: #D9D9D9"]C[/TD]
[TD="class: xl67, width: 69, bgcolor: #D9D9D9"]D[/TD]
[TD="class: xl67, width: 67, bgcolor: #D9D9D9"]E[/TD]
[TD="class: xl67, width: 71, bgcolor: #D9D9D9"]F[/TD]
[TD="class: xl67, width: 66, bgcolor: #D9D9D9"]G[/TD]
[TD="class: xl67, width: 62, bgcolor: #D9D9D9"]H[/TD]
[TD="class: xl67, width: 69, bgcolor: #D9D9D9"]I[/TD]
[TD="class: xl67, width: 68, bgcolor: #D9D9D9"]J[/TD]
[TD="class: xl67, width: 66, bgcolor: #D9D9D9"]K[/TD]
[TD="class: xl67, width: 70, bgcolor: #D9D9D9"]L[/TD]
[TD="class: xl67, width: 68, bgcolor: #D9D9D9"]M[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #D9D9D9"]1[/TD]
[TD="class: xl66, width: 158, bgcolor: white"] [/TD]
[TD="class: xl65, width: 65, bgcolor: white"]Jan '14[/TD]
[TD="class: xl65, width: 68, bgcolor: white"]Feb '14[/TD]
[TD="class: xl65, width: 69, bgcolor: white"]Mar '14[/TD]
[TD="class: xl65, width: 67, bgcolor: white"]Apr '14[/TD]
[TD="class: xl65, width: 71, bgcolor: white"]May '14[/TD]
[TD="class: xl65, width: 66, bgcolor: white"]Jun '14[/TD]
[TD="class: xl65, width: 62, bgcolor: white"]Jul '14[/TD]
[TD="class: xl65, width: 69, bgcolor: white"]Aug '14[/TD]
[TD="class: xl65, width: 68, bgcolor: white"]Sep '14[/TD]
[TD="class: xl65, width: 66, bgcolor: white"]Oct '14[/TD]
[TD="class: xl65, width: 70, bgcolor: white"]Nov '14[/TD]
[TD="class: xl65, width: 68, bgcolor: white"]Dec '14[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #D9D9D9"]2[/TD]
[TD="class: xl66, width: 158, bgcolor: white"]Product[/TD]
[TD="class: xl69, width: 65, bgcolor: white"] [/TD]
[TD="class: xl69, width: 68, bgcolor: white"] [/TD]
[TD="class: xl69, width: 69, bgcolor: white"] [/TD]
[TD="class: xl69, width: 67, bgcolor: white"] [/TD]
[TD="class: xl69, width: 71, bgcolor: white"] [/TD]
[TD="class: xl69, width: 66, bgcolor: white"] [/TD]
[TD="class: xl69, width: 62, bgcolor: white"] [/TD]
[TD="class: xl69, width: 69, bgcolor: white"] [/TD]
[TD="class: xl69, width: 68, bgcolor: white"] [/TD]
[TD="class: xl69, width: 66, bgcolor: white"] [/TD]
[TD="class: xl69, width: 70, bgcolor: white"] [/TD]
[TD="class: xl69, width: 68, bgcolor: white"] [/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #D9D9D9"]3[/TD]
[TD="class: xl66, width: 158, bgcolor: white"]Pre-sales inventory[/TD]
[TD="class: xl69, width: 65, bgcolor: white"]500[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]429[/TD]
[TD="class: xl69, width: 69, bgcolor: white"]287[/TD]
[TD="class: xl69, width: 67, bgcolor: white"]74[/TD]
[TD="class: xl69, width: 71, bgcolor: white"]-210[/TD]
[TD="class: xl69, width: 66, bgcolor: white"]-565[/TD]
[TD="class: xl69, width: 62, bgcolor: white"]-991[/TD]
[TD="class: xl69, width: 69, bgcolor: white"]-1488[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]-2056[/TD]
[TD="class: xl69, width: 66, bgcolor: white"]-2695[/TD]
[TD="class: xl69, width: 70, bgcolor: white"]-3405[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]-4186[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #D9D9D9"]4[/TD]
[TD="class: xl66, width: 158, bgcolor: white"]Total units ordered[/TD]
[TD="class: xl69, width: 65, bgcolor: white"]71[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]142[/TD]
[TD="class: xl69, width: 69, bgcolor: white"]213[/TD]
[TD="class: xl69, width: 67, bgcolor: white"]284[/TD]
[TD="class: xl69, width: 71, bgcolor: white"]355[/TD]
[TD="class: xl69, width: 66, bgcolor: white"]426[/TD]
[TD="class: xl69, width: 62, bgcolor: white"]497[/TD]
[TD="class: xl69, width: 69, bgcolor: white"]568[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]639[/TD]
[TD="class: xl69, width: 66, bgcolor: white"]710[/TD]
[TD="class: xl69, width: 70, bgcolor: white"]781[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]852[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #D9D9D9"]5[/TD]
[TD="class: xl66, width: 158, bgcolor: white"]Post-sales inventory[/TD]
[TD="class: xl69, width: 65, bgcolor: white"]429[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]287[/TD]
[TD="class: xl69, width: 69, bgcolor: white"]74[/TD]
[TD="class: xl69, width: 67, bgcolor: white"]-210[/TD]
[TD="class: xl69, width: 71, bgcolor: white"]-565[/TD]
[TD="class: xl69, width: 66, bgcolor: white"]-991[/TD]
[TD="class: xl69, width: 62, bgcolor: white"]-1488[/TD]
[TD="class: xl69, width: 69, bgcolor: white"]-2056[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]-2695[/TD]
[TD="class: xl69, width: 66, bgcolor: white"]-3405[/TD]
[TD="class: xl69, width: 70, bgcolor: white"]-4186[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]-5038[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #D9D9D9"]6[/TD]
[TD="class: xl66, width: 158, bgcolor: white"]Units required[/TD]
[TD="class: xl69, width: 65, bgcolor: white"]-210[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]-565[/TD]
[TD="class: xl69, width: 69, bgcolor: white"]-991[/TD]
[TD="class: xl69, width: 67, bgcolor: white"]-1488[/TD]
[TD="class: xl69, width: 71, bgcolor: white"]-2056[/TD]
[TD="class: xl69, width: 66, bgcolor: white"]-2695[/TD]
[TD="class: xl69, width: 62, bgcolor: white"]-3405[/TD]
[TD="class: xl69, width: 69, bgcolor: white"]-4186[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]-5038[/TD]
[TD="class: xl69, width: 66, bgcolor: white"]-5961[/TD]
[TD="class: xl69, width: 70, bgcolor: white"]-6955[/TD]
[TD="class: xl69, width: 68, bgcolor: white"]-8020[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #D9D9D9"]7[/TD]
[TD="class: xl66, width: 158, bgcolor: white"]Stock units ordered[/TD]
[TD="class: xl68, bgcolor: white"]500[/TD]
[TD="class: xl68, bgcolor: white"]1000[/TD]
[TD="class: xl68, bgcolor: white"]1000[/TD]
[TD="class: xl68, bgcolor: white"]1500[/TD]
[TD="class: xl68, bgcolor: white"]2500[/TD]
[TD="class: xl68, bgcolor: white"]3000[/TD]
[TD="class: xl68, bgcolor: white"]3500[/TD]
[TD="class: xl68, bgcolor: white"]4500[/TD]
[TD="class: xl68, bgcolor: white"]5500[/TD]
[TD="class: xl68, bgcolor: white"]6000[/TD]
[TD="class: xl68, bgcolor: white"]7000[/TD]
[TD="class: xl68, bgcolor: white"]8500[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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