Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jul 2006
    Location
    Bangalore, India
    Posts
    180
    Thanks
    1
    Thanked 0 Times in 0 Posts

    IF & OR Condition (Excel 2003)

    Hi,
    I am using the following formula to find the Min from a range, wherein if D2=0 then 0, else the Condition-C2. However there are cell in C Col which are 0, and D2 is >0 then i get a negative value. But i need the result as 0.

    {=IF($D2=0,0,MIN(IF('Input Info'!$E$2:$E$677=$A2,'Input Info'!$BD$2:$BD$677)))-$C2}

    i.e. if D2=0 or C2=0 then 0 else the above formula.

    Regards
    Baiju

  2. #2
    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: IF & OR Condition (Excel 2003)

    Hi,
    Do you mean:
    {=IF(OR($D2=0,$C2=0),0,MIN(IF('Input Info'!$E$2:$E$677=$A2,'Input Info'!$BD$2:$BD$677)))-$C2}
    HTH
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    2 Star Lounger
    Join Date
    Jul 2006
    Location
    Bangalore, India
    Posts
    180
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: IF & OR Condition (Excel 2003)

    Hi Rory,

    Thanks for the formula, its working fine.

    Regards
    Baiju

Posting Permissions

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