View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.misc
Malik Nadeem Malik Nadeem is offline
external usenet poster
 
Posts: 44
Default need help on MAX

revised with corrected value of C6 & C8
sorry for inconvenience

"Malik Nadeem" wrote:

Dear Bob Phillips

thanks for your below help kindly further advise can i convert last
"{160,160,320}" into a "{C6,C6,C8}"?

example
=SUMPRODUCT(--((C4-D4){0,5,10}), ((C4-D4)-{0,5,10}), {160,160,320})
=SUMPRODUCT(--((C4-D4){0,5,10}), ((C4-D4)-{0,5,10}), {C6,C6,C8})

when the value of C6=160 & c8=320

waiting for your usual support.

=+++++++++++++++++++++++++++++++++

"Bob Phillips" wrote:

=SUMPRODUCT(--((C4-D4){0,5,10}), ((C4-D4)-{0,5,10}), {160,160,320})

--
__________________________________
HTH

Bob

"Malik Nadeem" wrote in message
...
need your assitance on this below fomula i have question on
formula i.e. =MAX((C4-D4) + MAX(C4-2*D4,0) + 2*MAX(C4-3*D4,0),0)*E4*80
now i want to change this formula but when i m changing the value after E4
its will not giving me the correct result OR not working properly

now my question is like this
charges per day of 1 LAP is 160 (from day 1st to 5th day) in above formula
80
2nd LAP is per day 320 (from day 6th to 10th days) in above formula 160
3rd slap is per day 640 ( from day 11 to ownworld for example 999) in ....
320

when i m using below it is not working
=MAX((C4-D4) + MAX(C4-2*D4,0) + 2*MAX(C4-3*D4,0),0)*E4*160

A4=10-JAN-2009
B4=28-JAN-2009
C4=19
D4=4
E4=1
F4=should be 5600 instead of 6400
total C4 is 19 days D4 is free days Left which is not visible i.e. 15 days
now we charge this 1st 5 days 5x160 2ndl lap from 6-10 days which equal to
320 per days and rest multiply with 640

remarks Note:
if d4 is grater then or equal to 5 its is working properly.
if d4 value is less then 5 its not giving correct value .
can you please guide how can i cahnge this one

thanks in advnace for support and help.

regards
Malik Nadeem