=if code, or Macro, Question

steve400243

Active Member
Joined
Sep 15, 2016
Messages
429
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have a worksheet i need help with, - I need to calculate storage for items received after 7 free calendar days, then $3.50 per CBM, Min of $50.00, for the next 5 days, - on the 12th day it goes to $3.50 per CBM per day. Currently i'm using a bunch of =If( codes, but think there has to be a better way.Thank you.

received day is cell - H4
7th day date is - H5
12th date is - J5
CBM is in - F11:F26
and the storage rate cell is P11:P26

I would appreciate any ideas you may have.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If the If() statements are working then I wouldn't see a real reason to change that. Is there a specific reason why you would like to make a change? i.e. worksheet extremely slow to calculate, etc.
 
Upvote 0
If the If() statements are working then I wouldn't see a real reason to change that. Is there a specific reason why you would like to make a change? i.e. worksheet extremely slow to calculate, etc.

No Specific reason, Just trying to gain more Excel Knowledge.
 
Upvote 0

Forum statistics

Threads
1,216,752
Messages
6,132,512
Members
449,731
Latest member
dasda34

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