Match+index with isblank and IFs or what formula to use

Pätkis

New Member
Joined
Jan 30, 2019
Messages
11
Hi,

I have a problem with table below. I need to learn what formula to use so that I can get correct answer to Solution X. I added into the table what I need for answer into Solution X column.

User1, Info2-3 varies depending if users fill it or not. Solution X needs to be same in all lines, which have same number than in User1 but it needs to look also if info2 and info3 has text (text is always the same "yes" in info2& info3) and if there is data, Solution X needs to have different value.

I can get this work by using ISBLANK and IFs if the info2 and info3 has the value in the first line when User1 changes. But I cannot get it to work if the first line for info2 and/or info3 is empty but it has something on the second or third line. Can this be resolved somehow using match+index or is there another formulas to use?

User1Info2Info3Solution X
1yes1Info3
11Info3
1yes1Info3
22Info2
2yes2Info2
33
33
33
44Info3
4yes4Info3
44Info3
44Info3

<tbody>
</tbody>
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi,
if that is all you need then a simple if statement like that would work.

=if(A2="","",if(B2<>"",A2& " "&"info2",if(C2<>"",A2&" " &"Info3",A2)))

or with the value of the cell then you need to change "info2" and "info3" to the according cell reference

HTH
 
Last edited:
Upvote 0
Hi,

This doesn't work because I won't get same resolution for all cells that have same value in User1.

User1Info2Info3Solution XFormula
1yes1Info31 Info3
11Info31
1yes1Info31 info2
22Info22
2yes2Info22 info2
333
333
333
44Info34
4yes4Info34 Info3
44Info34
44Info34

<tbody>
</tbody>
 
Upvote 0
Hi,

Based on your inputs in A1:D13 range, you could test following Array Formula in cell D2 :

Code:
=IF(MIN(IF($A$2:$A$13=A2,IF($B$2:$C$13="yes",ROW($A$2:$C$13))))=0,A2,INDEX($A$1:$A$13,MIN(IF($A$2:$A$13=A2,IF($B$2:$C$13="yes",ROW($A$2:$C$13)))))&IF(MAX(IF($A$2:$A$13=A2,IF($A$2:$C$13="yes",COLUMN($A$2:$C$13))))=0,"",INDEX($A$1:$C$1,MAX(IF($A$2:$A$13=A2,IF($A$2:$C$13="yes",COLUMN($A$2:$C$13)))))))

Hope this will help
 
Upvote 0
Hello,

Once you have tested the Formula ... feel free to share your comments ...
 
Upvote 0
For An Array Formula ....

You do NOT need to use the Enter key ...

You need to use simultaneously the 3 keys : Control Shift Enter
 
Upvote 0
Thank you it worked! Just one thing I don't understand, if the data table is same where else (for example T9:W25) I cannot get the formula to work... I have checked that I have changed the formulas correctly.
 
Upvote 0
Glad you have managed to get the array formula working ... :wink:
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,442
Members
449,083
Latest member
Ava19

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