Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default IF Multiple Conditions

A B C
D E
Color Total Time Total Time 2 Time Allowed Y/NO
BLUE 1:22:33 2:22:33 1:00:00
BLUE 2:22:33 3:22:33 2:00:00
BLUE 3:22:33 4:22:33 3:00:00
BLUE 4:22:33 5:22:33 4:00:00
BLUE 5:22:33 6:22:33 5:00:00
RED 6:22:33 7:22:33 6:00:00
RED 7:22:33 8:22:33 7:00:00
RED 8:22:33 9:22:33 8:00:00

I need an IF formula that:

- will read IF condition in the A column is Blue it will bring back a
yes or no response in the E column based on whether the total time in
column B is less than or greater than the time allowed in column D;

- it also needs to read IF condition in the A column is Red it will
bring back a yes or no response in the E column based on whether the
total time in column C is less than or greater than the time allowed
in column D;

Thanks in advance.

LJ
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default IF Multiple Conditions

It's unclear whether you want Yes or No if D is greater than B. If I guessed
wrong, you will have to reverse the order in:
=if(a2="blue",if(d2b2,"yes","no"))
=if(a2="red",if(d2c2,"yes","no"))

Regards,
Fred

"LJ" wrote in message
...
A B C
D E
Color Total Time Total Time 2 Time Allowed Y/NO
BLUE 1:22:33 2:22:33 1:00:00
BLUE 2:22:33 3:22:33 2:00:00
BLUE 3:22:33 4:22:33 3:00:00
BLUE 4:22:33 5:22:33 4:00:00
BLUE 5:22:33 6:22:33 5:00:00
RED 6:22:33 7:22:33 6:00:00
RED 7:22:33 8:22:33 7:00:00
RED 8:22:33 9:22:33 8:00:00

I need an IF formula that:

- will read IF condition in the A column is Blue it will bring back a
yes or no response in the E column based on whether the total time in
column B is less than or greater than the time allowed in column D;

- it also needs to read IF condition in the A column is Red it will
bring back a yes or no response in the E column based on whether the
total time in column C is less than or greater than the time allowed
in column D;

Thanks in advance.

LJ


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 457
Default IF Multiple Conditions

=IF(OR(AND(A2="BLUE",B2<=D2),AND(A2="RED",C2<=D2)) ,"Yes","No")

--
Best Regards,

Luke M
"LJ" wrote in message
...
A B C
D E
Color Total Time Total Time 2 Time Allowed Y/NO
BLUE 1:22:33 2:22:33 1:00:00
BLUE 2:22:33 3:22:33 2:00:00
BLUE 3:22:33 4:22:33 3:00:00
BLUE 4:22:33 5:22:33 4:00:00
BLUE 5:22:33 6:22:33 5:00:00
RED 6:22:33 7:22:33 6:00:00
RED 7:22:33 8:22:33 7:00:00
RED 8:22:33 9:22:33 8:00:00

I need an IF formula that:

- will read IF condition in the A column is Blue it will bring back a
yes or no response in the E column based on whether the total time in
column B is less than or greater than the time allowed in column D;

- it also needs to read IF condition in the A column is Red it will
bring back a yes or no response in the E column based on whether the
total time in column C is less than or greater than the time allowed
in column D;

Thanks in advance.

LJ



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
count for multiple conditions in multiple columns tturklsu Excel Worksheet Functions 2 July 8th 09 03:42 PM
Setting multiple conditions to return a figure from multiple cells Sapper Excel Discussion (Misc queries) 4 April 26th 09 10:33 PM
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec TravisB Excel Discussion (Misc queries) 21 March 16th 07 09:49 PM
Combining Text from multiple cells under multiple conditions KNS Excel Worksheet Functions 2 June 15th 05 11:00 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


All times are GMT +1. The time now is 12:48 AM.

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"