Extract & report Duplicate Values in One Cell

loginid

New Member
Joined
Jun 5, 2015
Messages
8
Dear Frnds,

Please see the following requirement

Req: Whenever Date is changed in any other cell it should return ALL the descriptions and Places (includes repetitions).

Start DateDescriptionPlace
07-05-15Training 1Place 1
07-06-15Training 2Place 2
07-05-15Training 3Place 3
07-06-15Training 4Place 4
07-07-15Training 5Place 1
07-07-15Training 6Place 3
07-08-15Training 7Place 4
07-09-15Training 8Place 1
07-08-15Training 9Place 2
07-09-15Training 10Place 3

<tbody>
</tbody>

Date: 07-07-15 (Input)

Training to be done:
Training 2,Place 2 (Output)

VLOOKUP(E2,$A$2:$C$11,2,0)&","&VLOOKUP(E2,$A$2:$C$11,3,0) --- I've tried.

Now if I use the above formula Vlookup returns only the 1st Value it finds. What is required is A formula which will return all the trainings & place when Date is changed.

Thanks & regards.
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
maybe something like...

Excel 2012
ABCDEFGHI
1Start DateDescriptionPlace07/05/2015Start DateDescriptionPlace
207/05/2015Training 1Place 107/05/2015Training 1Place 1
307/06/2015Training 2Place 207/05/2015Training 3Place 3
407/05/2015Training 3Place 3
507/06/2015Training 4Place 4
607/07/2015Training 5Place 1
707/07/2015Training 6Place 3
807/08/2015Training 7Place 4
907/09/2015Training 8Place 1
1007/08/2015Training 9Place 2
1107/09/2015Training 10Place 3

<tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
G2{=IFERROR(INDEX($A$2:$C$11,SMALL(IF($A$2:$A$11=$E$1,ROW($A$2:$A$11)-ROW($A$2)+1),ROWS(G$2:G2)),COLUMNS($G2:G2)),"")}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
Thanks Weazel for ur reply.

Thant works fine. (alternative)

What I m seeking is ; lets say in your table (u posted) , the Cell E1 (Where the date is entered/changed) then in the single Cell G1 it should return : Date & Place i.e
E1 : 07/05/2015 G1: Training 1,Place1,Training 2,Place2 (Should get).

Thanks
 
Upvote 0
ahhh, ok, I misunderstood how you wanted the data returned....

You'll probably be better off with a VBA solution, then with formulas....

Unfortunately I can't help you with the VBA part
 
Upvote 0
Dear Weazel ..... can u pls elaborate ur formula.......
especially ....SMALL(IF($A$1:$A$10=$E$1,ROW($A$1:$A$10)-ROW($A$1)+1)

Thanks
 
Upvote 0


ROW($A$1:$A$10)-
ROW($A$1)+1) would return the row number if the IF returns true.

by itself it is returning a list of values from 1 to 10 which is also flexible enough to adjust in the event rows are inserted.

essentially the small is returned a filtered list of row numbers back to the index

the rows function is an incrementor to return the K to the small, and the columns is essentially doing the same thing for the column number of the index

hopefully that helps
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,809
Members
449,048
Latest member
greyangel23

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