Print Column of Values Present in all Each Other Column

cloobless

Board Regular
Joined
Jul 15, 2014
Messages
84
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.

[TABLE="class: grid, width: 700, align: left"]
<tbody>[TR]
[TD]LIST-A[/TD]
[TD]LIST-B[/TD]
[TD]LIST-C[/TD]
[TD]ValueIsPresentInListA-B-C[/TD]
[/TR]
[TR]
[TD]apples[/TD]
[TD]pears[/TD]
[TD]peaches[/TD]
[TD]pears[/TD]
[/TR]
[TR]
[TD]guava[/TD]
[TD]lemon[/TD]
[TD]lime[/TD]
[TD]lemon[/TD]
[/TR]
[TR]
[TD]watermelon[/TD]
[TD]blueberry[/TD]
[TD]blackberry[/TD]
[TD]apples[/TD]
[/TR]
[TR]
[TD]pears[/TD]
[TD]apples[/TD]
[TD]pears[/TD]
[TD]dragonfruit[/TD]
[/TR]
[TR]
[TD]lemon[/TD]
[TD]blackberry[/TD]
[TD]lemon[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]peaches[/TD]
[TD]watermelon[/TD]
[TD]apples[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]dragonfruit[/TD]
[TD]dragonfruit[/TD]
[TD]dragonfruit[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

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