1 value to be picked out of 3 cells

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
3 cells generates 1 or 0; 3 or 4; 5 or 6.
Answer required in 4th cell based on the 3 cell values ...please bear with me.

Ex:
U8=1/0 ; Y8=3/4; Z8=5/6
Answer (in cell AA8)= 1 (if U8 has generated 1)
AA8=0 (if U8 has generated 0)
AA8=3 (if Y8 has generated 3)
AA8=4 (if Y8 has generated 4)
AA8=5 (if Z8 has generated 5)
AA8=6 (if Z8 has generated 6)

What formula needs to be filled in AA8?
Thanx in adv.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I assume that sometimes U8 is blank...otherwise your answer will always be 0 or 1. But try this:

=IF(U8=1,1,MIN(U8,Y8,Z8))
 
Upvote 0
And looking at both Andrew's and my formulas, I think we would need to know the order of precedence.
 
Upvote 0
Yes I will make it VERY CLEAR.
U8=1/0/2 ; Y8=3/4; Z8=5/6

AA8=1 if U8 Y8 Z8 generates 1 4 5 respectively
AA8=2 if U8 Y8 Z8 generates 0 3 6 respectively
AA8=3 if U8 Y8 Z8 generates 2 3 6 respectively
AA8=4 if U8 Y8 Z8 generates 2 4 5 respectively

I hope i have tried to clear... Formula needed in AA8?

 
Upvote 0
Yes I will make it VERY CLEAR.
U8=1/0/2 ; Y8=3/4; Z8=5/6

AA8=1 if U8 Y8 Z8 generates 1 4 5 respectively
AA8=2 if U8 Y8 Z8 generates 0 3 6 respectively
AA8=3 if U8 Y8 Z8 generates 2 3 6 respectively
AA8=4 if U8 Y8 Z8 generates 2 4 5 respectively

I hope i have tried to clear... Formula needed in AA8?


Try:

=MATCH(U8&Y8&Z8,{"145","036","236","245"},0)
 
Upvote 0
Try:

=MATCH(U8&Y8&Z8,{"145","036","236","245"},0)
Can the answer come #N/A? I think for no match answer should come 0 (as present in the formula). But for a combination generated 2 4 6 answer is coming #N/A. I need 0 then in such cases of no match.
 
Upvote 0
Can the answer come #N/A? I think for no match answer should come 0 (as present in the formula). But for a combination generated 2 4 6 answer is coming #N/A. I need 0 then in such cases of no match.

To ammend Aladin's formula for a non-match:

=IFERROR(MATCH(U8&Y8&Z8,{"145","036","236","245"},0),0)
 
Upvote 0
=IFERROR(MATCH(U8&Y8&Z8,{"145","036","236","245"},0),0)[/QUOTE]

Can I also get answer=1 for U8 V8 Z8 being 146
Can I also get answer=2 for U8 V8 Z8 being 046. This is in addition to above.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,999
Members
452,373
Latest member
TimReeks

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
Back
Top