Array formula - show only unique records without blank rows

Mandark

New Member
Joined
Mar 18, 2014
Messages
43
Hi,

I know this can be done using array formulas, but I am not expert in them so maybe you can help me out. I have two tables:

[TABLE="width: 500"]
<tbody>[TR]
[TD]location[/TD]
[TD]name[/TD]
[TD]value[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]EUR[/TD]
[TD]Lucy[/TD]
[TD]0[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]Fiona[/TD]
[TD]0[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]EUR[/TD]
[TD]Jane[/TD]
[TD]1[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]EUR[/TD]
[TD]Jane[/TD]
[TD]1[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]EUR[/TD]
[TD]Lucy[/TD]
[TD]1[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 500"]
<tbody>[TR]
[TD]location[/TD]
[TD]value[/TD]
[TD]name[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]EUR[/TD]
[TD]1[/TD]
[TD]Joe[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]1[/TD]
[TD]Karl[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]EUR[/TD]
[TD]1[/TD]
[TD]Joe[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]EUR[/TD]
[TD]1[/TD]
[TD]Frank[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]0[/TD]
[TD]Karl[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[/TR]
</tbody>[/TABLE]


These tables are on the same sheet and are linked to a external source, so number of rows can change. There are two blank rows between the first table and the second table.

What I would like to achieve is: From these two lists of names (approx. 3000 names each table), I want to get a small list of names on second sheet where:

- every name is just once (no duplicates)
- only names where value is 1 and location is EUR
- no blank rows in the resulting table
(option - merging the two conditions into one)


Example:

[TABLE="width: 100"]
<tbody>[TR]
[TD]name[/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[/TR]
[TR]
[TD]Lucy[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[/TR]
[TR]
[TD]Frank[/TD]
[/TR]
</tbody>[/TABLE]

Can this be done via array formulas?
 
Last edited:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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