A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You're more than welcome! Happy we were helpful.
Ciao Ugo
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have the following formula to calculate the difference between 2 different times. =TEXT(J2-G2,"h:mm") I am calculating the minutes from the time my ED doctor makes a decision to transfer a patient until the time the patient departs from our facility. I've got that all figured out. My problem is my clerks are leaving the G2 column blank so the formula is seeing it as a zero. Is there a formula to add to the one above that will tell Excel to return an error message if G2 is left blank?
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
You're more than welcome! Happy we were helpful.
Ciao Ugo
Answer accepted by question author
Just swap your formula with mine and see if it works.
Let us know the outcome please :-D
You are brilliant!!!! Thank you!
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
Ciao,
please try the following:
=IF(G2,TEXT(J2-G2,"h:mm"),"PLEASE FILL CELL G2")
Please let us know if this helps somehow.
Ciao Ugo