ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If then question (https://www.excelbanter.com/excel-worksheet-functions/132617-if-then-question.html)

EllenM

If then question
 
Hello,
I'd like to write an error notice for our time sheets. I'd like to warn the
user that if
A124, then he needs to use A1-24 hours of leave which otherwise will be lost.

Thanks in advance,
Ellen

Dave Peterson

If then question
 
How about putting a formula in B1:
=if(a1<=24,"","You need to use: "&text(a1-24,"#,##0")&" hours or lose them!")

Format it in big red letters.

EllenM wrote:

Hello,
I'd like to write an error notice for our time sheets. I'd like to warn the
user that if
A124, then he needs to use A1-24 hours of leave which otherwise will be lost.

Thanks in advance,
Ellen


--

Dave Peterson

EllenM

If then question
 
Thanks, Dave. It worked!! And yes I'll format it in big red letters.
(hehehehe)

"Dave Peterson" wrote:

How about putting a formula in B1:
=if(a1<=24,"","You need to use: "&text(a1-24,"#,##0")&" hours or lose them!")

Format it in big red letters.

EllenM wrote:

Hello,
I'd like to write an error notice for our time sheets. I'd like to warn the
user that if
A124, then he needs to use A1-24 hours of leave which otherwise will be lost.

Thanks in advance,
Ellen


--

Dave Peterson



All times are GMT +1. The time now is 02:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com