Finding unique combinations of adjacent cells in an array with 2 add'l IF criteria

brashandcrass

New Member
Joined
Aug 3, 2018
Messages
16
ABCDEFG
First NameLast NameRoleStart UpContactUnique + "Invested"<-- + "Acme Corp"
GeorgeAquinoInvestedInitechJustin AbadGeorge Aquino???
GeorgeAquinoInvestedAcme CorporationShaun JaiFemi Folami
AlbanDushkuFoundedMassive DynamicSean BaakoJames Jones
AlbanDushkuExitedMassive DynamicKaren BrownGregor Maier
FemiFolamiInvestedSoylent CorpLeonard Chun
FemiFolamiInvestedSoylent CorpShaun Jai
JamesJonesFoundedInitechSean Baako
JamesJonesFoundedInitechKaren Brown
JamesJonesFoundedInitechShaun Jai
JamesJonesFoundedInitechSean Baako
JamesJonesInvestedInitech 2Karen Brown
JamesJonesInvestedInitech 2Karen Brown
AditaMaierAcquiredAcme CorporationKaren Brown
AditaMaierAcquiredAcme CorporationKaren Brown
GregorMaierInvestedAcme CorporationKaren Brown
GregorMaierInvestedVehement Capital PartnersKaren Brown
HaroldSadiqFoundedHooliLeonard Chun
HaroldSadiqFoundedHooliJustin Abad
GeorgeShanAcquiredAcme CorporationLeonard Chun

<tbody>
</tbody>

In ColF, I'm successfully pulling "unique combinations of adjacent cells" (names in Cols A&B) IF they also "Invested" (ColC) with:
Code:
=IFERROR(INDEX($A$2:$A$20&" "&$B$2:$B$20,MATCH(0,IF($C$2:$C$20="Invested",COUNTIF($G$1:G1,$A$2:$A$20&" "&$B$2:$B$20)),0)),"")

I CANNOT figure out how to add an additional IF criteria to return a name that invested (ColC) in Acme Corp (ColD) specifically. Where does this
Code:
IF($D$3:$D$20="Acme Corporation"
go?

Thanks!
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Try
=IFERROR(INDEX($A$2:$A$20&" "&$B$2:$B$20,MATCH(0,IF($C$2:$C$20="Invested",IF($D$2:$D$20="Acme Corporation",COUNTIF($F$1:F1,$A$2:$A$20&" "&$B$2:$B$20))),0)),"")
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

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