Sorting out of many similar

soumen21

New Member
Joined
Aug 16, 2019
Messages
35
Dear Experts,

I have a some data as shown below

[TABLE="width: 345"]
<colgroup><col span="2"><col><col></colgroup><tbody>[TR]
[TD]Part[/TD]
[TD]Manufacturer[/TD]
[TD]Status[/TD]
[TD]Code[/TD]
[/TR]
[TR]
[TD]123-456[/TD]
[TD]AA[/TD]
[TD]Obsolete[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]123-456[/TD]
[TD]BB[/TD]
[TD]Active[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]123-456[/TD]
[TD]CC[/TD]
[TD]Active[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]123-456[/TD]
[TD]DD[/TD]
[TD]Active[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]123-456[/TD]
[TD]AA[/TD]
[TD]Active[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]123-456[/TD]
[TD]BB[/TD]
[TD]Active[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]

I want to look for part 123-456 and if any of the part among the many listed is active, I want to display the part 123-456 as 'active' in a cell with code smallest of all in another cell else Obsolete with code 6.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
How about

Book1
ABCDEF
1PartManufacturerStatusCode123-456
2123-456AAObsolete6Active 2
3123-456BBActive3
4123-456CCActive2
5123-458DDActive3
6123-459AAActive3
7123-460BBActive3
Watched
Cell Formulas
RangeFormula
F2=IFERROR("Active "&AGGREGATE(15,6,$D$2:$D$7/(($A$2:$A$7=$F$1)*($C$2:$C$7="Active")),1),"Obsolete 6")
 
Upvote 0
My pleasure & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

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