trying to extract unique values with a formula

nmss18

Active Member
Joined
Jun 28, 2011
Messages
312
Hello,
I have a very large table in Sheet 1, in the following range A10:1:3068.
Column C has the company name, and there are multiple instances of the same company name in this column. (Columns E to I are part of a pivot table and I have various formulas in A thru D).

In column A I have a value indicating whether the company has 'exposure' (an internal meaning for our sales team). If the company has exposure, then the word exposure is indicated otherwise the cell is blank.

What I need to do is in Sheet 2, create a table that extracts a unique list of company names from column C only where it has the word 'Exposure' next to it in column A.

I would like this to be dynamic so if I change a value in the pivot table in sheet 1 the values in the table in sheet 2 will update accordingly.

I am figuring this is an index and match or perhaps a countifs but my head is stuffed.

Any ideas would be much appreciated.
Thanks,
nmss18
 
Thanks for the sample...

Let Sheet1, A1:E23, house the sample you provided.

Define Ivec using Formulas | Name Manager as referring to:
Rich (BB code):
=ROW(Sheet1!$A$2:$A$23)-ROW(Sheet1!$A$2)+1

Let Sheet2, A:B, house the processing...

A2, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(INDEX(Sheet1!$A$2:$A$23,SMALL(IF(FREQUENCY(IF(Sheet1!$A$2:$A$23<>"",
  MATCH(Sheet1!$A$2:$A$23,Sheet1!$A$2:$A$23,0)),Ivec),Ivec),ROWS(A$2:A2))),"")

B2, just enter and copy down:
Rich (BB code):
=IF($A2="","",VLOOKUP($A2,Sheet1!$A$2:$B$23,2,0))
 
Upvote 0

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.

Forum statistics

Threads
1,215,472
Messages
6,125,004
Members
449,203
Latest member
Daymo66

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