# Lookup Duplicate Values

#### A Durfani

##### Board Regular
Hello all,

I am using below formula to lookup duplicate values but not getting the result

need help in this

Book1
EFGHI
1A1 AmountA1 DateB1 AmountDate
2-5448.2207/16/2018-5,448.2205/29/2018Not Getting This I need Both this and next one
3-5448.2207/16/2018-5,448.2207/16/2018
4-2198.2401/08/2018-2,198.2407/06/2017Not Getting This I need Both this and next one
5-2198.2401/08/2018-2,198.2401/08/2018
6-50006/20/2020-500.0002/13/2018Not Getting This I need Both this and next one
7-50006/20/2020-500.0006/20/2020
8-47502/14/2020-475.0011/11/2019Not Getting This I need Both this and next one
9-47502/14/2020-475.0002/14/2020
10-64.8811/08/2019-64.8803/07/2017Not Getting This I need Both this and next one
11-64.8811/08/2019-64.8811/08/2019
12-58.5211/30/2018-58.5202/08/2018Not Getting This I need Both this and next one
13-58.5211/30/2018-58.5211/30/2018
14-296.5512/15/2016-296.5511/10/2016Not Getting This I need Both this and next one
15-296.5512/15/2016-296.5512/15/2016
16-193.9010/10/2020-193.9009/23/2017Not Getting This I need All of them
17-193.9010/10/2020-193.9007/30/2019
18-193.9010/10/2020-193.9010/12/2019
19-193.9010/10/2020-193.9002/06/2020
20-193.9010/10/2020-193.9010/10/2020
Sheet1
Cell Formulas
RangeFormula
F2:F20F2=IFERROR(INDEX(\$H\$2:\$H\$20,AGGREGATE(15,6,(ROW(\$H\$2:\$H\$20)-ROW(\$H\$2)+1)/(\$G\$2:\$G\$20=E2),COUNTIF(E\$2:E20,E2))),"-")

### Excel Facts

Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Hi Alifufarni,

#### A Durfani

##### Board Regular
Hi Alifufarni,

Perfect.....! thank you very much for correcting me.

Works as expected.

Replies
10
Views
250
Replies
5
Views
74
Replies
12
Views
543
Replies
9
Views
224
Replies
6
Views
254

1,127,427
Messages
5,624,737
Members
416,046
Latest member
Elliottj2121

### 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.

### Which adblocker are you using?

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

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