Need Formula Help

Prasad K

Board Regular
Joined
Aug 4, 2021
Messages
189
Office Version
  1. 2016
  2. 2007
Platform
  1. Windows
i want data based on given match here my problem is

i have getting duplicates

i have applied formula like this below



Book1
ABCDEFGH
2EMP NAMEANILEMP NAMEAGECITYMOBILE
3AGE25ANIL25HYDERABAD8521479632
4CITYHYDERABADANIL25HYDERABAD8521479632
5MOBILE8521479632ANIL25HYDERABAD8521479632
6EMP NAMESURESHANIL25HYDERABAD8521479632
7AGE29
8CITYWARANGAL
9MOBILE7412589632
10EMP NAMEARJUN
11AGE30
12CITYHYDERABAD
13MOBILE 9632147854
14EMP NAMEBABU
15AGE32
16CITYVIZAG
17MOBILE4567893214
Sheet1
Cell Formulas
RangeFormula
E3:H6E3=INDEX($B$2:$B$17,MATCH(E$2,$A$2:$A$17,0))




i need output like this below


Book1
EFGH
2EMP NAMEAGECITYMOBILE
3ANIL25HYDERABAD8521479632
4SURESH29WARANGAL7412589632
5ARJUN30HYDERABAD9632147854
6BABU32VIZAG4567893214
Sheet1
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How about
Fluff.xlsm
ABCDEFGH
1
2EMP NAMEANILEMP NAMEAGECITYMOBILE
3AGE25ANIL25HYDERABAD8521479632
4CITYHYDERABADSURESH29WARANGAL7412589632
5MOBILE8521479632ARJUN30HYDERABAD9632147854
6EMP NAMESURESHBABU32VIZAG4567893214
7AGE29    
8CITYWARANGAL    
9MOBILE7412589632
10EMP NAMEARJUN
11AGE30
12CITYHYDERABAD
13MOBILE9632147854
14EMP NAMEBABU
15AGE32
16CITYVIZAG
17MOBILE4567893214
18
Main
Cell Formulas
RangeFormula
E3:H8E3=IFERROR(INDEX($B$2:$B$17,AGGREGATE(15,6,(ROW($B$2:$B$17)-ROW($B$2)+1)/($A$2:$A$17=E$2),ROWS(E$3:E3))),"")

Not that you have a space after "Mobile" in A13 that you will need to remove
 
Upvote 0
Solution
How about
Fluff.xlsm
ABCDEFGH
1
2EMP NAMEANILEMP NAMEAGECITYMOBILE
3AGE25ANIL25HYDERABAD8521479632
4CITYHYDERABADSURESH29WARANGAL7412589632
5MOBILE8521479632ARJUN30HYDERABAD9632147854
6EMP NAMESURESHBABU32VIZAG4567893214
7AGE29    
8CITYWARANGAL    
9MOBILE7412589632
10EMP NAMEARJUN
11AGE30
12CITYHYDERABAD
13MOBILE9632147854
14EMP NAMEBABU
15AGE32
16CITYVIZAG
17MOBILE4567893214
18
Main
Cell Formulas
RangeFormula
E3:H8E3=IFERROR(INDEX($B$2:$B$17,AGGREGATE(15,6,(ROW($B$2:$B$17)-ROW($B$2)+1)/($A$2:$A$17=E$2),ROWS(E$3:E3))),"")

Not that you have a space after "Mobile" in A13 that you will need to remove
Thank you so much @Fluff Sir
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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