Matching 3 conditions

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows
Can someone help me with a formula in column D to generate 'Result' meeting 3 conditions?
Thanks in adv.
Sheet1

ABCDEFG
1ResultCondition 1Condition 2Condition 3
23004005001A<b< td=""></b<>B<c< td=""></c<>A<c< td=""></c<>
33006005002A<b< td=""></b<>B>=CA<c< td=""></c<>
43004002003A<b< td=""></b<>B>=CA>=C
53002001004A>=BB>=CA>=C
63002002505A>=BB<c< td=""></c<>A>=C
73002005006A>=BB>=CA<c< td=""></c<>

<tbody>
</tbody>

E2 condition: A<B
F2 condition: B<C
G2 condition: A<C
E3 condition: A<B
G3 condition: A<C
F6 condition: B<C
G7 condition: A<C
 
Last edited:

Some videos you may like

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,192
It is not clear what your exhibit is telling and what you are asking "'Result' meeting 3 conditions".
 

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows
Some formulas did not 'appear' thr' Excel Jeanie so wrote below Aladin.
 

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows
Reposted..
Sheet1

ABCDEFG
1 ResultCondition 1Condition 2Condition 3
23004005001A<BB<CA<C
33006005002A<BB>=CA<C
43004002003A<BB>=CA>=C
53002001004A>=BB>=CA>=C
63002002505A>=BB<CA>=C
73002005006A>=BB>=CA<C

<colgroup><col style="FONT-WEIGHT: bold; WIDTH: 30px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 48px"><col style="WIDTH: 48px"><col style="WIDTH: 48px"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows

ADVERTISEMENT

FINAL 6 conditions: somehow I wrote it....

6 conditions are there:
Condition 1: A is less than B; B is less than C and A is less than C
Condition 2: A is less than B; B is greater than or equal to C and A is less than C
Condition 3: A is less than B; B is greater than or equal to C and A is greater than or equal to C
Condition 4: A is greater than or equal to B; B is greater than or equal to C and A is greater than or equal to C
Condition 5: A is greater than or equal to B; B is less than C and A is greater than or equal to C
Condition 6: A is greater than or equal to B; B is greater than or equal to C and A is less than C
 

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows
I could get your point Aladin it is MATCHING 6 conditions..sorry for inconvenience
 

vds1

Well-known Member
Joined
Oct 5, 2011
Messages
1,193

ADVERTISEMENT

Hi Sandeep

Please check your condition 6.

I think B < C in condition 6
 

vds1

Well-known Member
Joined
Oct 5, 2011
Messages
1,193
Try,

Code:
=IF(AND(A1< B1,B1< C1,A1< C1),1,IF(AND(A1< B1,B1> =C1,A1< C1),2,IF(AND(A1< B1,B1> =C1,A1> =C1),3,IF(AND(A1> =B1,B1> =C1,A1> =C1),4,IF(AND(A1> =B1,B1< C1,A1> =C1),5,IF(AND(A1> =B1,B1< =C1,A1< C1),6,"Not  Met"))))))

Replace space by blank
 
Last edited:

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows
It is showing the 'formula' only not the results (1,2,3,4,5,6)
 

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows
Thanks vds1 it WORKED. after removing blanks from 'within the formula'.
 

Watch MrExcel Video

Forum statistics

Threads
1,108,624
Messages
5,523,967
Members
409,547
Latest member
AW2020

This Week's Hot Topics

Top