• 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.

Calculate % with help of nested if function

Dear Friends,

I am facing problem in nested if function to calculate % as per the bucket.

It would be great if you could solve my query.

Attached is excel for your reference.

Thanks in advance for your help and time.


Regards,

Gaurang
 

Attachments

Hi:

Try this formula in H2
Code:
=IF(AND(F2>=LEFT($F$8,1)+0,F2<=RIGHT($F$8,2)+0),$G$8,IF(AND(F2>=LEFT($F$9,2)+0,F2<=RIGHT($F$9,2)
+0),$G$9,IF(AND(F2>=LEFT($F$10,2)+0,F2<=RIGHT($F$10,2)+0),$G$10,IF(AND(F2>=LEFT($F$11,2)+0,F2<=RIGHT($F$11,2)+0),$G$11))))*G2
Thanks
 
Hi Khalid,

How will u give bucket to the attached timings. i have used above if and formula, but not working.

Please find attached excel.
Thanks alot in advance for taking out time.

Regards,
Gaurang
 

Attachments

Hi Khalid,

How will u give bucket to the attached timings. i have used above if and formula, but not working.

Please find attached excel.
Thanks alot in advance for taking out time.

Regards,
Gaurang

Hi Gaurang,
Can you check this:

=LOOKUP(LEFT(C7,9),{"17:00:01","23:00:01","12:00:01"},$D$7:$D$9)
Format to time

Still working on it.

Regards,
 
Lets try this: if A5 contains time then it should be

=LOOKUP(A5,{0,0.50001157,0.708344907407407,0.95833333333,0.99999999999999},{"2:00 PM","6:30 PM","9:00 AM","2:00 PM"})
 
Back
Top