need help on a formula

bzax33

New Member
Joined
Jul 19, 2011
Messages
9
Hi. Brand new to this website. Was told I can ask Excel questions here.
I have 3 columns of numbers: 1 is last weeks inventory, 2 is this weeks inventory, and 3 is the difference (eg, 12 apples last week, 6 this week = 6 sold). But sometimes, if a pallet of apples is added then the total this week will be higher than last week. I'm trying to find a formula that will find the difference between the 2 weeks and if the difference is a negative number (i.e. a pallet was added) then will add 96, 172, etc (the sizes of pallets) until it becomes a positive number.
Is this possible?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Was told I can ask Excel questions here.
...a rampant internet rumor.



Your question is a bit confusing. You talk of apples as individual items and then as pallets as maybe the items to be calculated. Either way, the 96 or 172 part does not make sense, how are those numbers derived, how would anyoen know which size of pallet which have a common denominator not being the 96 number.

Also, what does "until it becomes a positive number" really mean to you, is the difference being just 1 greater than teh other truly sufficient?

Maybe some sample data would help with understanding what you are working with.
 
Upvote 0
Sorry about that. Me try to describe it better:
In column A there is the inventory item (e.g. apples, oranges, etc)
In column B there is last week's inventory of that item (e.g. 50)
In column C there is this week's inventory of that item (e.g. 25)
Currently I have a simple formula that works out the difference (in this case 25) and that is my "items sold" number. However sometimes these items might get restocked in the middle of the week and THIS week's inventory is higher than LAST week's (e.g. last week's inventory was 50 and this week's is 75).
Now I know that apples come in boxes of 50 so if I see a negative number (last week's 50 minus this week's 75 is -25) I add 1 box of 50 to that negative number and come out with the total of 25 sold for the week.
If last weeks inventory was 50 and this week's inventory is 125 (for a total of -75) I would add 100 (2 boxes of apples brought into stock) and then come out with a total of 25 sold for the week.
I'm trying to find a formula that can both figure out the difference between the 2 columns and add a set number if the original difference is a negative.
I hope this isn't too confusing.
Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,792
Members
452,942
Latest member
VijayNewtoExcel

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