Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Combining a OR and a AND in an IF statement

I need to add AND (t2<8) to this formula but can not make it work. Any ideas?

IF t2 is less than 8 and either G88=5.5 or g88=6 and so on. I have the OR
working but cannot get the AND to fit


=IF(OR(G88=5.5,G88=6,G88=6.5,G88=7,G88=7.5,G88=9,G 88=9.5,G88=10,G88=11,G88=12),((VLOOKUP(G88,CU191:C Z207,2,FALSE)-(I88*11))/(M88)))
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Combining a OR and a AND in an IF statement

Try:
=IF(AND(T2<8,OR(G88={5.5,6,6.5,7,7.5,9,9.5,10,11,1 2})),((VLOOKUP(G88,CU191:CZ207,2,FALSE)-(I88*11))/(M88)))


"Shu of AZ" wrote:

I need to add AND (t2<8) to this formula but can not make it work. Any ideas?

IF t2 is less than 8 and either G88=5.5 or g88=6 and so on. I have the OR
working but cannot get the AND to fit


=IF(OR(G88=5.5,G88=6,G88=6.5,G88=7,G88=7.5,G88=9,G 88=9.5,G88=10,G88=11,G88=12),((VLOOKUP(G88,CU191:C Z207,2,FALSE)-(I88*11))/(M88)))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 418
Default Combining a OR and a AND in an IF statement

Shu of AZ wrote:
I need to add AND (t2<8) to this formula but can not make it work. Any ideas?

IF t2 is less than 8 and either G88=5.5 or g88=6 and so on. I have the OR
working but cannot get the AND to fit

=IF(OR(G88=5.5,G88=6,G88=6.5,G88=7,G88=7.5,G88=9,G 88=9.5,G88=10,G88=11,G88=12),((VLOOKUP(G88,CU191:C Z207,2,FALSE)-(I88*11))/(M88)))


=if( and(T2<8, or(...)), vlookup(...) )

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Combining a OR and a AND in an IF statement

=IF(AND(T28,OR(G88=5.5,G88=6,G88=6.5,G88=7,G88=7. 5,G88=9,G88=9.5,G88=10,G88=11,G88=12)),((VLOOKUP(G 88,CU191:CZ207,2,FALSE)-(I88*11))/(M88)))
--
Hth

Kassie Kasselman


"Shu of AZ" wrote:

I need to add AND (t2<8) to this formula but can not make it work. Any ideas?

IF t2 is less than 8 and either G88=5.5 or g88=6 and so on. I have the OR
working but cannot get the AND to fit


=IF(OR(G88=5.5,G88=6,G88=6.5,G88=7,G88=7.5,G88=9,G 88=9.5,G88=10,G88=11,G88=12),((VLOOKUP(G88,CU191:C Z207,2,FALSE)-(I88*11))/(M88)))

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
Combining AND/OR in an IF statement dread Excel Worksheet Functions 4 July 20th 06 06:05 PM
Combining an If Statement with NETWORKDAYS function Shirley Munro Excel Discussion (Misc queries) 1 June 21st 06 12:42 PM
Combining a Vlook up with and If then statement Sweetetc Excel Worksheet Functions 14 May 2nd 06 09:06 PM
combining an if statement Ryder Excel Worksheet Functions 3 March 9th 05 06:21 PM
Combining SUM Function with Nested If Statement Somecallmejosh Excel Discussion (Misc queries) 3 December 6th 04 04:25 PM


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