Storage Calculator

rvill189

New Member
Joined
Mar 12, 2022
Messages
16
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I am trying to create a calculator that others in my field can use to calculate storage based on the number of days in our facility. A shipment can only be in our inventory for 3 days until we begin to charge storage. The math would be below:

•storage days starts at day 3 in the warehouse
•math I am looking for: (storage days)($.20 per Kg per storage day, but not to exceed $500 daily)
•total cost is not maxing $.20/storage days at $500 daily.
•I want the column to calculate if storage starts at day 3, else return "0"

I also want to apply a formula to column E that automatically removes "+00003, +00001, -", attached to the shipment ID, but preserving and without affecting the shipment ID in any way.
This set of characters is annoyingly attached to the shipment ID when scanned onto the spreadsheet via barcode scanner, and it increases audit time to remove from every cell (where the actual spreadsheet is well over 800 rows).

Book2
EFGHIJ
6Shipment IDKgDate ArrivedDays in WarehouseStorage DaysTotal Cost
74124124+000419903/20/202210772786
867890232+00003333343/22/202285533334
967891-5693/28/2022200
1022222315703/14/20221613131482
1122x4561+00015703/15/20221512121368
Sheet1
Cell Formulas
RangeFormula
H7:H8H7=IF(ISBLANK(G7),"0",ABS(DAYS(G7,TODAY())))
I7:I11I7=IF(H7>3,H7-3,"0")
J7:J11J7=IF(H7>3,H7-3&MAX(500,(0.2*F7*I7)),"0")
H9:H11H9=IF(ISBLANK(G9),"",ABS(DAYS(G9,TODAY())))


As always, I value your feedback. Any other ways to approach would be appreciated.[/XR][/RANGE]
 
Last edited by a moderator:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
@rvill189 Does this help?

Book1
DEFGHIJ
6Revised IDShipment IDKgDate ArrivedDays in WarehouseStorage DaysTotal Cost
741241244124124+000419903/20/221072786
86789023267890232+00003333343/22/22852500
96789167891-5693/28/22200
10222223122222315703/14/2216131482
1122x456122x4561+00015703/15/2215121368
Sheet18
Cell Formulas
RangeFormula
H7H7=IF(ISBLANK(G7),"0",ABS(DAYS(G7,TODAY())))
I7:I11I7=IF(H7>3,H7-3,"0")
J7:J11J7=MIN(F7*0.2,500)*I7
H9:H11H9=IF(ISBLANK(G9),"",ABS(DAYS(G9,TODAY())))
D7:D11D7=TRIM(LEFT(SUBSTITUTE(SUBSTITUTE(E7,"+","-"),"-",REPT(" ",99)),99))
 
Upvote 0
@rvill189 Does this help?

Book1
DEFGHIJ
6Revised IDShipment IDKgDate ArrivedDays in WarehouseStorage DaysTotal Cost
741241244124124+000419903/20/221072786
86789023267890232+00003333343/22/22852500
96789167891-5693/28/22200
10222223122222315703/14/2216131482
1122x456122x4561+00015703/15/2215121368
Sheet18
Cell Formulas
RangeFormula
H7H7=IF(ISBLANK(G7),"0",ABS(DAYS(G7,TODAY())))
I7:I11I7=IF(H7>3,H7-3,"0")
J7:J11J7=MIN(F7*0.2,500)*I7
H9:H11H9=IF(ISBLANK(G9),"",ABS(DAYS(G9,TODAY())))
D7:D11D7=TRIM(LEFT(SUBSTITUTE(SUBSTITUTE(E7,"+","-"),"-",REPT(" ",99)),99))
Thanks!

Will test it at work today and keep you posted!
 
Upvote 0
Hi!

The storage calculator is perfect, thanks for that.

The formula to remove the +0001, etc. does not seem to work. I applied it to the column using the conditional formatting option in the Home ribbon. Did I miss something:

ILF Inventory 03-29-22 (version 1).xlsb
B
8Shipment
932K34A16132+0005
1032K234X5602
1135423566
123K0043467+0002
1352K0016672
14H23801208
1531N0515672+0002
1632K0012386
1755527930+0001
Product Price List
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B:BExpression=TRIM(LEFT(SUBSTITUTE(SUBSTITUTE(E4,"+","-"),"-",REPT(" ",99)),99))textNO
B56:B1048576,B4:B8Cell ValueduplicatestextNO
B9Cell ValueduplicatestextNO
Cells with Data Validation
CellAllowCriteria
B8:B9Any value
 
Upvote 0
Glad the storage calculator works.
As for the Shipment ID, you cannot use Conditional Formatting to influence the data value in that way.
I would suggest perhaps two options.
If you select column B > Home > Find > enter +* > 'Replace..' > (Enter nothing) 'Replace All' >
Edit the Find text to be -* >. 'Replace All. > 'Close'
That will do it with literally only seconds of work.

Otherwise, you can use the formula I gave you in a spare column and it will generate the base ID's.
Then Copy the those ID's and do Paste Special > Values over the imported originals.
Delete the helper column if it suits.

Either way there is not much work involved.
 
Upvote 0
Hi,

Thanks for the suggestions. I was looking for something automatic against the same data. I may go with the helper column.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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