Nested IF

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows
In 2 col, I m having either 0 or 1. In 3rd column i want to do the check (permutations & combinations).
It is like:
0 0 A
0 1 B
1 0 C
1 1 D
How to do it?
Also, how to count nos. of A, B, C & D generated?
Thanx in adv
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

davesweep

Well-known Member
Joined
Apr 30, 2007
Messages
510
Hi,

Does this

=INDEX({"A","B","C","D"},1+BIN2DEC(A1&B1))

or this

=INDEX({"A","B","C","D"},MATCH(VALUE(A1&B1),{0,1,10,11},0))

work for you?

You could use

=COUNTIF(C:C,"A")

to return the number of "A" generated.
 

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows
INDEX({"A","B","C","D"},MATCH(VALUE(A1&B1),{0,1,10,11},0))

& even choose(2*a1+b1+1,"a","b","c","d") WORKS.

Which one would be "more comfortable"?
 

hsandeep

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

ADVERTISEMENT

In
INDEX({"A","B","C","D"},MATCH(VALUE(A1&B1),{0,1,10,11},0))
instead of A, B, C & D, I want to get the numerical value lying in F1, G1, H1 & I1. How to accomplish it?
 

hsandeep

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

ADVERTISEMENT

Done Sir..davesweep. Thanks a lot.
 

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows
Index(f1:i1,match(value(a1&b1),{0,1,10,11},0))

I got the the numerical value lying in F1, G1, H1 & I1.
I got these values in column C.
Now, how to check the "COUNT" of values in column C are less than the numerical value lying in X1, Y1 & Z1?
 

hurgadion

Active Member
Joined
Mar 19, 2010
Messages
426
Hi, You can try the formula:
Code:
=CHAR(65+BIN2DEC(A1&B1))
also,

best regards.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,168
Messages
5,640,543
Members
417,151
Latest member
ChickenTenderer

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top