=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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,101
Messages
6,128,835
Members
449,471
Latest member
lachbee

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