#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Question Zsolt Szabó Excel Discussion (Misc queries) 1 December 19th 06 10:45 PM
PMT question SMAlvarez Excel Worksheet Functions 5 July 15th 06 09:24 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM
Question about {} Petro Excel Worksheet Functions 2 August 15th 05 04:58 PM


All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"