Lookup Data from Group

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..
i have table below, how to lookup with this condition (lookup in group)
Book1
FGHI
3Unit codeGROUPCLUE
4KP01HUMANGROUP1
5KP02FORESTRYGROUP1
6KW01ANIMALGROUP2
7KW01.1CATGROUP3
8KW01.2DOGGROUP3
9KW02ELECTRONICSGROUP2
10KW02.1GADGETGROUP3
11KW02.2MOBILE PHONEGROUP3
12KW02.3NOTEBOOKGROUP3
13
14expcted result (my target)
15GROUP1GROUP2GROUP3
16KP02FORESTRY
17KW02.2ELECTRONICSMOBILE PHONE
18KW01.2ANIMALDOG
19etc..
Sheet1


my target in cell G16 to I18

any help, thank in advance.

.sst
 

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.
XL2010 require Power Query add-in
XL2016 (and all above) has Power Query built-in
so
no pivot and no vba
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    PVT = Table.Pivot(Source, List.Distinct(Source[CLUE]), "CLUE", "GROUP"),
    FillD = Table.FillDown(PVT,{"GROUP2"}),
    Filter = Table.SelectRows(FillD, each ([Unit code] <> "KP01" and [Unit code] <> "KW01" and [Unit code] <> "KW02"))
in
    Filter
 
Upvote 0
Hi Sandy, thank but im not familiar use Power Query,.. It can done use usually formula?
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

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