Lookup Duplicate Values

A Durfani

Board Regular
Joined
Apr 12, 2019
Messages
234
Office Version
  1. 2013
Platform
  1. Windows
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))),"-")
 

Some videos you may like

Excel Facts

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

Toadstool

Well-known Member
Joined
Mar 5, 2018
Messages
1,385
Office Version
  1. 2016
Platform
  1. Windows
Hi Alifufarni,

Try COUNTIF(E$2:E2,E2) instead of COUNTIF(E$2:E20,E2)
 
Solution

Watch MrExcel Video

Forum statistics

Threads
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.
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
Top