Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Two TRUE to one FALSE statement

Would like to create a formula that can return one of two true outcomes vs.
one false. For example:

if date2 (c2) < date1 (b2), then "early",
if date2 (c2) = date1 (b2), then "on time",
if date2 (c2) date2 (b2), or if %(d2)<1, then "late".

Can this be done? Any help greatly appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Two TRUE to one FALSE statement

=IF(C2<B2,"Early",IF(C2=B2,"On time","Late"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"bluebird" wrote in message
...
Would like to create a formula that can return one of two true outcomes

vs.
one false. For example:

if date2 (c2) < date1 (b2), then "early",
if date2 (c2) = date1 (b2), then "on time",
if date2 (c2) date2 (b2), or if %(d2)<1, then "late".

Can this be done? Any help greatly appreciated!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Two TRUE to one FALSE statement

not sure what you mean by %(d2)<1 but
=if(or(c2b2,d2<.01),"late",if(c2<b2,"early","on time"))
adjust the d2 reference as needed

"bluebird" wrote:

Would like to create a formula that can return one of two true outcomes vs.
one false. For example:

if date2 (c2) < date1 (b2), then "early",
if date2 (c2) = date1 (b2), then "on time",
if date2 (c2) date2 (b2), or if %(d2)<1, then "late".

Can this be done? Any help greatly appreciated!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 418
Default Two TRUE to one FALSE statement

bluebird wrote:
Would like to create a formula that can return one of two true outcomes vs.
one false. For example:
if date2 (c2) < date1 (b2), then "early",
if date2 (c2) = date1 (b2), then "on time",
if date2 (c2) date2 (b2), or if %(d2)<1, then "late".
Can this be done?


Your logic is a little unclear. I interpret your last condition to
mean that even if c2 <= b2 (the first two conditions), you consider it
"late" if d2 < 1. Therefo

=if(or(c2b2, d2<1), "late", if(c2<d2), "early", "on time"))

Note that we do not need to explicitly test if(c2=d2) for the "on time"
result. That is implied by the left-to-right ordering of the tests,
namely it is not c2b2 and it is not c2<b2.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 418
Default Two TRUE to one FALSE statement

Errata....

I wrote:
=if(or(c2b2, d2<1), "late", if(c2<d2), "early", "on time"))


As soon as I hit Send, I realized there is a typo. That should be
written:

=if(or(c2b2, d2<1), "late", if(c2<d2, "early", "on time"))

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
Formula Question (Organizing Data) Telobamipada Excel Discussion (Misc queries) 3 January 4th 07 02:24 PM
Display the source for a pivot table page field Gary Brown Excel Worksheet Functions 4 November 8th 06 03:02 PM
Help in VBA code! Martin Excel Discussion (Misc queries) 5 April 19th 06 11:19 AM
Grouped Sheets and Formating Pank Mehta Excel Discussion (Misc queries) 3 March 24th 05 01:42 AM
Grand Totals @ Same Place Amber M Excel Worksheet Functions 2 December 30th 04 07:13 PM


All times are GMT +1. The time now is 02:05 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"