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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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