• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

adding two conditions in IF function

vikash

New Member
Hi All,

I am trying to add to if conditions, like if number say c is greater than 2000 it should return 1000 but if number c is between 1000 & 2000 result should be c-1000. Sample file is attached.

thanks in advance

regards,
vikash
 

Attachments

Hi:

Is this what you are looking for?
Code:
=IF(B6<1000,0,MIN(1000,B6-1000))

Thanks
this will help partially because value less than 1000 should return as 0

for example
three no
936 should return as 0
1675 should return as 675
and 2675 should return as 1000
 
upload_2016-7-6_14-24-42.png


Not sure where you are getting 1000 for 963??, It is difficult to help if you fail to pay attention to simple details. I am getting the results exactly as what your expected results are.
 
Back
Top