View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips[_3_] Bob Phillips[_3_] is offline
external usenet poster
 
Posts: 2,420
Default need help on MAX

It keeps us something Bernard, but I can't remember what ...

--
__________________________________
HTH

Bob

"Bernard Liengme" wrote in message
...
Bob,
I am very impressed that you could see this answers from the OP's
question!
Must be the UK beer that keeps the mind so alert!
--
Bernard

"Bob Phillips" wrote in message
...
=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