Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default multiple if statements

I have 3 date columns (Columns A, B, C) and I need one formula (Column D) to
return the following all inclusive result. I can get some of it to work but
no all. HELP! And thanks.

IF B1=A1 =NETWORKDAYS
IF C1=A1 =NA
IF B1<A1 =ERROR
IF C1 OR B1 is blank =0

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default multiple if statements

Nest the IF statements (once you've decided what precedence you want between
the conditions).
--
David Biddulph

"Kwray" wrote in message
...
I have 3 date columns (Columns A, B, C) and I need one formula (Column D)
to
return the following all inclusive result. I can get some of it to work
but
no all. HELP! And thanks.

IF B1=A1 =NETWORKDAYS
IF C1=A1 =NA
IF B1<A1 =ERROR
IF C1 OR B1 is blank =0



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default multiple if statements

Hi,

Unless I've misunderstood, you can't do that because the logic is flawed.
For example

B1=A1 =Networkdays
C1=A1 =NA

Both of those conditions could be true at the same time in which case what
would the formula return?

Pehaps you could give a fuller explanation and then I'm sure someone will
help.

Mike

"Kwray" wrote:

I have 3 date columns (Columns A, B, C) and I need one formula (Column D) to
return the following all inclusive result. I can get some of it to work but
no all. HELP! And thanks.

IF B1=A1 =NETWORKDAYS
IF C1=A1 =NA
IF B1<A1 =ERROR
IF C1 OR B1 is blank =0

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default multiple if statements

I've nested the statement and the first three situations work (see below).
But I can't figure out the precedence to get the last situation to work.

=IF(C5=A5,"NA",IF(B5=A5,(NETWORKDAYS(A5,B5,Holid ays)),IF(B5<=A5,"ERROR")))

"Kwray" wrote:

I have 3 date columns (Columns A, B, C) and I need one formula (Column D) to
return the following all inclusive result. I can get some of it to work but
no all. HELP! And thanks.

IF B1=A1 =NETWORKDAYS
IF C1=A1 =NA
IF B1<A1 =ERROR
IF C1 OR B1 is blank =0

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default multiple if statements

I've nested the statement and the first three situations work (see below).
But I can't figure out the precedence to get the last situation to work.

=IF(C5=A5,"NA",IF(B5=A5,(NETWORKDAYS(A5,B5,Holid ays)),IF(B5<=A5,"ERROR")))


"Mike H" wrote:

Hi,

Unless I've misunderstood, you can't do that because the logic is flawed.
For example

B1=A1 =Networkdays
C1=A1 =NA

Both of those conditions could be true at the same time in which case what
would the formula return?

Pehaps you could give a fuller explanation and then I'm sure someone will
help.

Mike

"Kwray" wrote:

I have 3 date columns (Columns A, B, C) and I need one formula (Column D) to
return the following all inclusive result. I can get some of it to work but
no all. HELP! And thanks.

IF B1=A1 =NETWORKDAYS
IF C1=A1 =NA
IF B1<A1 =ERROR
IF C1 OR B1 is blank =0



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default multiple if statements

I've nested the statement and the first three situations work (see below).
But I can't figure out the precedence to get the last situation to work.

=IF(C5=A5,"NA",IF(B5=A5,(NETWORKDAYS(A5,B5,Holid ays)),IF(B5<=A5,"ERROR")))


"David Biddulph" wrote:

Nest the IF statements (once you've decided what precedence you want between
the conditions).
--
David Biddulph

"Kwray" wrote in message
...
I have 3 date columns (Columns A, B, C) and I need one formula (Column D)
to
return the following all inclusive result. I can get some of it to work
but
no all. HELP! And thanks.

IF B1=A1 =NETWORKDAYS
IF C1=A1 =NA
IF B1<A1 =ERROR
IF C1 OR B1 is blank =0




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default multiple if statements

=IF(OR(C1="",B1=""),0,IF(C5=A5,"NA",IF(B5=A5,NET WORKDAYS(A5,B5,Holidays),IF(B5<=A5,"ERROR"))))
--
David Biddulph

"Kwray" wrote in message
...
I've nested the statement and the first three situations work (see below).
But I can't figure out the precedence to get the last situation to work.

=IF(C5=A5,"NA",IF(B5=A5,(NETWORKDAYS(A5,B5,Holid ays)),IF(B5<=A5,"ERROR")))

"Kwray" wrote:

I have 3 date columns (Columns A, B, C) and I need one formula (Column D)
to
return the following all inclusive result. I can get some of it to work
but
no all. HELP! And thanks.

IF B1=A1 =NETWORKDAYS
IF C1=A1 =NA
IF B1<A1 =ERROR
IF C1 OR B1 is blank =0



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
Multiple IF statements looking up multiple ranges. mike Excel Worksheet Functions 7 August 9th 07 04:55 PM
Multiple if statements with multiple conditions egarcia Excel Discussion (Misc queries) 4 January 29th 07 10:46 PM
Multiple IF Statements [email protected] Excel Discussion (Misc queries) 3 December 28th 06 02:33 PM
Using multiple IF statements Jshendel Excel Discussion (Misc queries) 8 August 29th 06 09:04 PM
multiple if statements Alex McKenzie Excel Discussion (Misc queries) 3 November 21st 05 09:35 AM


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