Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default If/Then Statement help

I have a table with 3 columns (Appt Time, Arrival Time, & Late). The
columns are all time format. I need the late column to only show a
time IF the arrival time is after the appt time. So IF D2-C20 I want
it to do that formula and put it in the column, but leave it blank if
not. I am not sure how to correctly make this statement. All help is
appreciated!

Barry
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 430
Default If/Then Statement help

Give this a shot.

=IF(D2-C20,D2-C2," ")

" wrote:

I have a table with 3 columns (Appt Time, Arrival Time, & Late). The
columns are all time format. I need the late column to only show a
time IF the arrival time is after the appt time. So IF D2-C20 I want
it to do that formula and put it in the column, but leave it blank if
not. I am not sure how to correctly make this statement. All help is
appreciated!

Barry

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default If/Then Statement help

Note:

This will work unless the times may span midnight (due to XL storing
times as fractional days).

Also, there's no reason to include a space character between the quote
marks if the value's <=0.

In article ,
tim m wrote:

Give this a shot.

=IF(D2-C20,D2-C2," ")

" wrote:

I have a table with 3 columns (Appt Time, Arrival Time, & Late). The
columns are all time format. I need the late column to only show a
time IF the arrival time is after the appt time. So IF D2-C20 I want
it to do that formula and put it in the column, but leave it blank if
not. I am not sure how to correctly make this statement. All help is
appreciated!

Barry

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
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
IF Statement Help RedDevil Excel Worksheet Functions 2 April 17th 07 01:12 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 11:44 PM.

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

About Us

"It's about Microsoft Excel"