Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Formula (Excel 2003 Professional)

    =IF($P4<=$L$4,IF($P$4<=$M$4,IF($P$4<=$N$4,L6,0),SU M(L6:M6),),Sum(L6:N6),))

    What I want this formula to do is if ($P4<=$L$4,L6,0) or if ($P$4<=$M$4,SUM(L6:M6),0) or if ($P$4<=$N$4,sum(L6:n6),0) or if ($P$4<=$O$4,sum(L66),0)
    How can I create this formula to do this function?

  2. #2
    5 Star Lounger
    Join Date
    Aug 2004
    Location
    Connecticut, USA
    Posts
    816
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Formula (Excel 2003 Professional)

    Does this do what you want?

    =IF($P4<=$L$4,L6,IF($P$4<=$M$4,SUM(L6:M6),IF($P$4< =$N$4,SUM(L6:N6),IF($P$4<=$O$4,SUM(L6:O6),0))))

  3. #3
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Formula (Excel 2003 Professional)

    Does this do what you want:
    <code>=SUMPRODUCT(($L$4:$O$4>=$P$4)*L6:O6)</code>
    (I'm guessing a bit as to your actual intention and have assumed that L4:O4 will be in ascending or descending order)
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •