#1   Report Post  
Posted to microsoft.public.excel.misc
Bryan J Bloom
 
Posts: n/a
Default Formula help

I already use a formulain D2 that reads:
=MAX(0,C2-6)*17+MAX(0,C2-10)*33+MAX(0,C2-30)*50
This formula gives me the Amount to Charge(D2) for Days used at Origin(C2)
The Charges used in this formula are as follows:
The first 6 days are free
the 7th 8th 9th and 10th days are charged $17 a day
the 11th through the 29th day are charged $50 a day
the 30th day and above are charged $100 a day
FYI----(17+33+50=100)
I need a formula that gives me the Days used at Destination.The problem Im
having is that I can't make the above formula work because the origin days
figure in and if the origin has used more than 6 days the 1st ten days at
destination are at $17(the rest of the charges are the same). eg: if the Days
used at Origin(C2) is 7, the Days used at Destination(K2) is 7. the Origin
charges should be for 1 day (17) and for 7 days at 17 (119) at Destination.
I need a formula to get the 119.

Any help comes Highly Appreciated!!!!!
I'll be checking on this post alot. If more info is needed please ask.

Thank you
Bryan J Bloom

  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Formula help

"Bryan J Bloom" wrote:
I already use a formulain D2 that reads:
=MAX(0,C2-6)*17+MAX(0,C2-10)*33+MAX(0,C2-30)*50
This formula gives me the Amount to Charge(D2) for Days used at Origin(C2)
The Charges used in this formula are as follows:
The first 6 days are free
the 7th 8th 9th and 10th days are charged $17 a day
the 11th through the 29th day are charged $50 a day
the 30th day and above are charged $100 a day

[....]
I need a formula that gives me the Days used at Destination.


I think you mean "that is based on", not that "gives me".
From you explanation below, K2 contains Days Used At
Destination. In any case, no formula can "give you" Days
Used At Destination, unless you have a cell with Total Days
Used as well as Days Used At Origin (C2).

if the origin has used more than 6 days the 1st ten days at
destination are at $17(the rest of the charges are the same).


Not sure I am interpreting you correctly. What if Days
Used At Origin is less than 6 days: is there any charge
for Days Uses At Destination; if so, what is the rule?

eg: if the Days used at Origin(C2) is 7, the Days used
at Destination(K2) is 7. the Origin charges should be
for 1 day (17) and for 7 days at 17 (119) at Destination.
I need a formula to get the 119.


Depending on your answer to my question above, I think
one of the following (untested) should solve your problem
or at least serve as a model for the solution.

=IF(C2 <= 6, 0,
MIN(10,K2)*17+MAX(0,K2-10)*33+MAX(0,K2-30)*50)

Eliminate "IF(C2 <= 6, 0," and the last parenthesis if you
always want to charge for destination usage.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Formula help

Some of your description isn't really clear, but I think I know what you're
getting at. Try this:

=IF(C2=6,E2*17+MAX(0,K2-10)*33+MAX(0,K2-30)*50,MAX(0,K2-6+C2)*17+MAX(0,K2-10)*33+MAX(0,K2-30)*50)

Also, you might need to adjust the amount of 30 in your formula to 29 to
reflect the pricing scale you mentioned. Otherwise $100 won't be charged
until day 31.

If that isn't what you're looking for, then perhaps repost with some more
clarification.

HTH,
Elkar

"Bryan J Bloom" wrote:

I already use a formulain D2 that reads:
=MAX(0,C2-6)*17+MAX(0,C2-10)*33+MAX(0,C2-30)*50
This formula gives me the Amount to Charge(D2) for Days used at Origin(C2)
The Charges used in this formula are as follows:
The first 6 days are free
the 7th 8th 9th and 10th days are charged $17 a day
the 11th through the 29th day are charged $50 a day
the 30th day and above are charged $100 a day
FYI----(17+33+50=100)
I need a formula that gives me the Days used at Destination.The problem Im
having is that I can't make the above formula work because the origin days
figure in and if the origin has used more than 6 days the 1st ten days at
destination are at $17(the rest of the charges are the same). eg: if the Days
used at Origin(C2) is 7, the Days used at Destination(K2) is 7. the Origin
charges should be for 1 day (17) and for 7 days at 17 (119) at Destination.
I need a formula to get the 119.

Any help comes Highly Appreciated!!!!!
I'll be checking on this post alot. If more info is needed please ask.

Thank you
Bryan J Bloom

  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Formula help

Errata ....

I wrote:
=IF(C2 <= 6, 0,
MIN(10,K2)*17+MAX(0,K2-10)*33+MAX(0,K2-30)*50)


That should be simply:

=IF(C2 <= 6, 0, K2*17+MAX(0,K2-10)*33+MAX(0,K2-30)*50)
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 02:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"