Lookup Data with Ignoring Blank rows

SunnyAlv

Active Member
Joined
May 23, 2023
Messages
337
Office Version
  1. 365
Platform
  1. Windows
it has been explained through pictures, how to fiks this problem ? thanks :)

1685350732571.png
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Try

Book1
ABCDEFGH
1BrandIDNameBrandIDName
2Honda123Honda123Indah
3Honda123IndahWuling456Agifi
4Wuling456AgifiHyundai978Anisa
5Wuling456
6Wuling
7Hyundai
8Hyundai978
9Hyundai978Anisa
10
11
12
Sheet2
Cell Formulas
RangeFormula
F2:F4F2=INDEX($B$2:$C$9,AGGREGATE(15,6,(ROW($B$2:$B$9)-ROW($B$2)+1)/(($B$2:$B$9<>"")*($A$2:$A$9=$E2)),1),MATCH(F$1,$B$1:$C$1,0))
G2:G4G2=INDEX($B$2:$C$9,AGGREGATE(15,6,(ROW($B$2:$B$9)-ROW($B$2)+1)/(($C$2:$C$9<>"")*($A$2:$A$9=$E2)),1),MATCH(G$1,$B$1:$C$1,0))
 
Upvote 0
Try the below
Book1.xlsm
ABCDEFG
1BrandIDNameBrandIDName
2Honda123Honda123Indah
3Honda123IndahWuling456Agifi
4Wuling456AgifiHyundai978Anisa
5Wuling456
6Wuling
7Hyundai
8Hyundai978
9Hyundai978Anisa
Sheet4
Cell Formulas
RangeFormula
E2:E4E2=UNIQUE(A2:A9)
F2:F4F2=INDEX($B$2:$B$9,AGGREGATE(15,6,ROW($B$2:$B$9)-ROW($B$1)/(($A$2:$A$9=E2)*($B$2:$B$9<>"")),1))
G2:G4G2=INDEX($C$2:$C$9,AGGREGATE(15,6,ROW($C$2:$C$9)-ROW($B$1)/(($A$2:$A$9=E2)*($C$2:$C$9<>"")),1))
Dynamic array formulas.
 
Upvote 0
Based on that sample data, possibly this?

23 05 29.xlsm
ABCDEFG
1BrandIDNameBrandIDName
2Honda123Honda123Indah
3Honda123IndahWuling456Agifi
4Wuling456AgifiHyundai978Anisa
5Wuling456
6Wuling
7Hyundai
8Hyundai978
9Hyundai978Anisa
SunnyAlv
Cell Formulas
RangeFormula
F2:G4F2=CONCAT(UNIQUE(FILTER(B$2:B$9,$A$2:$A$9=$E2)))
 
Upvote 0
An alternative is
Book1.xlsm
ABCDEFG
1BrandIDNameBrandIDName
2Honda123Honda123Indah
3Honda123IndahWuling456Agifi
4Wuling456AgifiHyundai978Anisa
5Wuling456
6Wuling
7Hyundai
8Hyundai978
9Hyundai978Anisa
Sheet4
Cell Formulas
RangeFormula
E2:E4E2=UNIQUE(A2:A9)
F2:F4F2=UNIQUE(FILTER($B$2:$B$9,(($A$2:$A$9=E2)*($B$2:$B$9<>""))))
G2:G4G2=UNIQUE(FILTER($C$2:$C$9,(($A$2:$A$9=E2)*($C$2:$C$9<>""))))
Dynamic array formulas.
 
Upvote 0
Again, based on the sample data provided, the whole result might be obtained with this

23 05 29.xlsm
ABCDEFG
1BrandIDNameBrandIDName
2Honda123Honda123Indah
3Honda123IndahWuling456Agifi
4Wuling456AgifiHyundai978Anisa
5Wuling456
6Wuling
7Hyundai
8Hyundai978
9Hyundai978Anisa
SunnyAlv
Cell Formulas
RangeFormula
E1:G4E1=FILTER(A1:C9,(B1:B9<>"")*(C1:C9<>""))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,144
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