Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
serve
 
Posts: n/a
Default =If (need 2 criterias), true, false

=IF(a=b and c=d, place value for true, place value for false). I need to
have 2 criteria in the logical section, right now you can only use 1 logical
statement
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default =If (need 2 criterias), true, false

=IF(AND(a=b,c=d),TRUE,FALSE)

or

=IF((a=b)*(c=d),TRUE,FALSE)

"serve" wrote:

=IF(a=b and c=d, place value for true, place value for false). I need to
have 2 criteria in the logical section, right now you can only use 1 logical
statement

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
serve
 
Posts: n/a
Default =If (need 2 criterias), true, false

Thank you.
next scenario, if you are trying to match A with all of column B (meaning
that value should equal a cell in column B) and match C with all of column D
(same as column B), TRUE, FALSE.... can we do that, like comparing to an
array?

"Sloth" wrote:

=IF(AND(a=b,c=d),TRUE,FALSE)

or

=IF((a=b)*(c=d),TRUE,FALSE)

"serve" wrote:

=IF(a=b and c=d, place value for true, place value for false). I need to
have 2 criteria in the logical section, right now you can only use 1 logical
statement

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default =If (need 2 criterias), true, false

=IF((COUNTIF(B:B,A1)0)*(COUNTIF(D:D,C1)0),TRUE,F ALSE)

your nomenclature is a little funny, but I think I understand what you want.
If A1 is found at least once in column B, and C1 can be found at least once
in column D, then this statement will return true.

You might want to start a new post detailing this question if I am not
understanding you correctly. Be sure to provide a sample of the data you
have, and the results you want. Be as detailed as possible.

For Example:
A B C D E
1 apple orange red red TRUE
2 orange apple yellow duck FALSE
3 banana apple purple purple FALSE
4 pineapple pineapple duck blue TRUE

E1 is TRUE because "apple" can be found in column B, and "red" can be found
in column D.
E2 is FALSE because "yellow" can not be found in column D.
E3 is FALSE because "banana" can not be found in column B.

"serve" wrote:

Thank you.
next scenario, if you are trying to match A with all of column B (meaning
that value should equal a cell in column B) and match C with all of column D
(same as column B), TRUE, FALSE.... can we do that, like comparing to an
array?

"Sloth" wrote:

=IF(AND(a=b,c=d),TRUE,FALSE)

or

=IF((a=b)*(c=d),TRUE,FALSE)

"serve" wrote:

=IF(a=b and c=d, place value for true, place value for false). I need to
have 2 criteria in the logical section, right now you can only use 1 logical
statement

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
Shorten a Macro mully Excel Discussion (Misc queries) 7 December 30th 05 05:52 PM
Inconsistent Macro Behavior Sarah K Excel Discussion (Misc queries) 4 November 1st 05 10:36 PM
Help: runtime error - Method seriescollection object_chart failed huangx06 Charts and Charting in Excel 3 July 9th 05 12:27 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 12:55 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"