Print Column of Values Present in all Each Other Column

cloobless

Board Regular
Joined
Jul 15, 2014
Messages
77
Office Version
  1. 2010
Platform
  1. Windows
Hello, all. I don't seem to be able to find this specific variant of a value-matching formula.

I'm trying to output the list in column "ValueIsPresentInA-B-C", where it checks all of the other columns for values that must be present in each each of the others and then populates the column.

The problem I'm trying to solve would use either of numbers or text.

Any ideas on how this might work? Thank you for considering this problem.

LIST-ALIST-BLIST-CValueIsPresentInListA-B-C
applespearspeachespears
guavalemonlimelemon
watermelonblueberryblackberryapples
pearsapplespearsdragonfruit
lemonblackberrylemon
peacheswatermelonapples
dragonfruitdragonfruitdragonfruit

<tbody>
</tbody>
 
Last edited:

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi cloobless,

Below should work:


Book1
ABCD
1LIST-ALIST-BLIST-CValueIsPresentInListA-B-C
2applespearspeachesapples
3guavalemonlimepears
4watermelonblueberryblackberrylemon
5pearsapplespearsdragonfruit
6lemonblackberrylemon
7peacheswatermelonapples
8dragonfruitdragonfruitdragonfruit
Sheet5
Cell Formulas
RangeFormula
D2{=IFERROR(INDEX($A$2:$A$8,SMALL(IF(COUNTIF($B$2:$B$8,$A$2:$A$8)+COUNTIF($C$2:$C$8,$A$2:$A$8)=2,ROW($A$2:$A$8)-ROW($A$2)+1),ROWS(D$2:D2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.


Copy the formula down to D8
 
Last edited:
Upvote 0
If the order is not important then this one will do the trick:


Book1
ABCD
1LIST-ALIST-BLIST-CValueIsPresentInListA-B-C
2applespearspeachesapples
3guavalemonlime
4watermelonblueberryblackberry
5pearsapplespearspears
6lemonblackberrylemonlemon
7peacheswatermelonapples
8dragonfruitdragonfruitdragonfruitdragonfruit
Sheet5
Cell Formulas
RangeFormula
D2=IF(COUNTIF($B$2:$B$8,$A2)+COUNTIF($C$2:$C$8,$A2)=2,$A2,"")
 
Upvote 0
Hello, Aryatect! I'm sorry for replying a few hours after your reply. I was working last night and was very tired and fell asleep.

I hadn't thought about it, but yes the order is helpful and the solution works superbly. I'm able to collate a large list this way.

Thank you for taking your time to help me find this solution. I appreciate it very much. Enjoy the day.
 
Upvote 0

Forum statistics

Threads
1,213,549
Messages
6,114,264
Members
448,558
Latest member
aivin

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