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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Could you post a screen shot?

The first mistake is you are using excel for Mac :p
 
Upvote 0
Jan '14Feb '14Mar '14Apr '14May '14Jun '14Jul '14Aug '14Sep '14Oct '14Nov '14Dec '14
Product
Pre-sales inventory50042928774-210 -565 -991 -1488 -2056 -2695 -3405 -4186
Total units ordered71142213284355426497568639710781852
Post-sales inventory
42928774-210 -565 -991 -1488 -2056 -2695 -3405 -4186 -5038
Units required
-210 -565 -991 -1488 -2056 -2695 -3405 -4186 -5038 -5961 -6955 -8020
Stock units ordered

<tbody>
</tbody>





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;

ABCDEFGHIJKLM
1 Jan '14Feb '14Mar '14Apr '14May '14Jun '14Jul '14Aug '14Sep '14Oct '14Nov '14Dec '14
2Product
3Pre-sales inventory50042928774-210-565-991-1488-2056-2695-3405-4186
4Total units ordered71142213284355426497568639710781852
5Post-sales inventory42928774-210-565-991-1488-2056-2695-3405-4186-5038
6Units required-210-565-991-1488-2056-2695-3405-4186-5038-5961-6955-8020
7Stock units ordered50010001000150025003000350045005500600070008500

<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>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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