# Lookup duplicated code and Return the amount against the Oldest Year of that Code

1. ## Lookup duplicated code and Return the amount against the Oldest Year of that Code

Hi all,

I need a formula that can Lookup duplicated code and Return the amount against the Oldest Year of that Code as attached

Thanks

2. ## Re: Lookup duplicated code and Return the amount against the Oldest Year of that Code

One way - in H4:

=INDEX(\$D\$4:\$D\$19,MATCH(1,(\$B\$4:\$B\$19=G4)*(VALUE(\$C\$4:\$C\$19)=MIN(IF(\$B\$4:\$B\$19=G4,VALUE(\$C\$4:\$C\$19)))),0))

**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

Copy down.

3. ## Re: Lookup duplicated code and Return the amount against the Oldest Year of that Code

Thanks AliGW,

Please create for me another column with a formula to return the year in which the amount was found

4. ## Re: Lookup duplicated code and Return the amount against the Oldest Year of that Code

Try

=INDEX(\$C\$4:\$C\$19,MATCH(\$H4,\$D\$4:\$D\$19,0))

5. ## Re: Lookup duplicated code and Return the amount against the Oldest Year of that Code

Use this:

=MIN(IF(\$B\$4:\$B\$19=G4,VALUE(\$C\$4:\$C\$19)))

**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

6. ## Re: Lookup duplicated code and Return the amount against the Oldest Year of that Code

Much Appreciated ....God bless you more

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1