#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Nested If Statement

Hi

I'm needing to calculate the following

If A1=True AND B1=False then calculate duration from start date and time to
SLA end time (this is on sheet 2 - vlookup??)

would the same format of the statement work if A2=False and B2=true ?

many thanks for your help
Tracey
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Nested If Statement

If you want to do somthing when either:
A1=True and B1=False
and when
A1=False and B1=True
then you want to do it when both conditions are not the same, so you can
write one formula to handle both:
=IF(A1<B1,"do my work","both are same value")

The "do my work" portion could be any valid operation, including doing some
math with the results of a couple of VLOOKUPs. Same for "both are same
value" - could be different math, or just "" to leave the cell looking empty.

"Tracey" wrote:

Hi

I'm needing to calculate the following

If A1=True AND B1=False then calculate duration from start date and time to
SLA end time (this is on sheet 2 - vlookup??)

would the same format of the statement work if A2=False and B2=true ?

many thanks for your help
Tracey

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Nested If Statement

Tracey,

If the only possibilities for A1 and b1 are TRUE/False then you could do this

=IF(A1<B1,"Do My Vlookup","Do Something else")
or
=IF(A1+B1=1,"Do My Vlookup","Do Something else")

Mike

"Tracey" wrote:

Hi

I'm needing to calculate the following

If A1=True AND B1=False then calculate duration from start date and time to
SLA end time (this is on sheet 2 - vlookup??)

would the same format of the statement work if A2=False and B2=true ?

many thanks for your help
Tracey

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Nested If Statement

I have the following but it just brings back "BI777"

=IF(AND(BE777="true",BF777="false"),BL777-BB777,IF(AND(BE777="false",BF777="true"), BC777-BK777,BI777))



"Mike H" wrote:

Tracey,

If the only possibilities for A1 and b1 are TRUE/False then you could do this

=IF(A1<B1,"Do My Vlookup","Do Something else")
or
=IF(A1+B1=1,"Do My Vlookup","Do Something else")

Mike

"Tracey" wrote:

Hi

I'm needing to calculate the following

If A1=True AND B1=False then calculate duration from start date and time to
SLA end time (this is on sheet 2 - vlookup??)

would the same format of the statement work if A2=False and B2=true ?

many thanks for your help
Tracey

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Nested If Statement

Remove the quotes from around True and False - they are not text
values.

Hope this helps.

Pete

On Sep 3, 1:30*pm, Tracey wrote:
I have the following but it just brings back "BI777"

=IF(AND(BE777="true",BF777="false"),BL777-BB777,IF(AND(BE777="false",BF777=*"true"), BC777-BK777,BI777))



"Mike H" wrote:
Tracey,


If the only possibilities for A1 and b1 are TRUE/False then you could do this


=IF(A1<B1,"Do My Vlookup","Do Something else")
or
=IF(A1+B1=1,"Do My Vlookup","Do Something else")


Mike


"Tracey" wrote:


Hi


I'm needing to calculate the following


If *A1=True AND B1=False then calculate duration from start date and time to
SLA end time (this is on sheet 2 - vlookup??)


would the same format of the statement work if A2=False and B2=true ?


many thanks for your help
Tracey- Hide quoted text -


- Show quoted text -




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Nested If Statement

Try

=IF(BE777BF777,BL777-BB777,IF(BF777BE777,BC777-BK777,BI777))

Mike

"Tracey" wrote:

I have the following but it just brings back "BI777"

=IF(AND(BE777="true",BF777="false"),BL777-BB777,IF(AND(BE777="false",BF777="true"), BC777-BK777,BI777))



"Mike H" wrote:

Tracey,

If the only possibilities for A1 and b1 are TRUE/False then you could do this

=IF(A1<B1,"Do My Vlookup","Do Something else")
or
=IF(A1+B1=1,"Do My Vlookup","Do Something else")

Mike

"Tracey" wrote:

Hi

I'm needing to calculate the following

If A1=True AND B1=False then calculate duration from start date and time to
SLA end time (this is on sheet 2 - vlookup??)

would the same format of the statement work if A2=False and B2=true ?

many thanks for your help
Tracey

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 OR NESTED STATEMENT SuperBee Excel Discussion (Misc queries) 10 March 1st 08 05:31 AM
Nested IF statement Teri Excel Worksheet Functions 2 January 30th 07 06:40 PM
Nested IF Statement aposatsk Excel Discussion (Misc queries) 1 August 1st 06 05:19 PM
Nested IF statement jgannon Excel Discussion (Misc queries) 3 November 22nd 05 11:55 PM
Nested If statement Jock W Excel Worksheet Functions 3 March 22nd 05 06:56 PM


All times are GMT +1. The time now is 04:57 AM.

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"