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

Combine IF and Min statement

Hi, I've got what appears easy but was not lol

I would just like some help if count between two dates = 0, use 1.00 as the min

thank you,
 

Attachments

  • Chandoo Count Days with min of 1.xlsx
    17.2 KB · Views: 9
Maybe simply like so =IF(ISNUMBER($B2),MAX(1,($B2-$A2)),"")
Hi GraH - Guido,

I would like the formula to be a minimum of 1 if the date opened and closed is the same, but not if the date closed is before the date opened i.e. usually indicates that it is a typo. I've updated the table as an example.

thanks,
 

Attachments

  • Chandoo Count Days with min of 1.xlsx
    21.1 KB · Views: 4
Hi Kelli

Would this work? =IF(ISNUMBER($B2),MAX(1*(A2<=B2),($B2-$A2)),"")
If result is 0 then you have a typo.

Custom Format might help: 0,0,[red]"Close Prior to Open".
 

Attachments

  • Copy of Chandoo Count Days with min of 1.xlsx
    21.2 KB · Views: 3
Back
Top