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
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
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.
Last edited by AliGW; 04-29-2022 at 11:03 AM. Reason: Workbook attached.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Thanks AliGW,
Please create for me another column with a formula to return the year in which the amount was found
Try
=INDEX($C$4:$C$19,MATCH($H4,$D$4:$D$19,0))
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
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).
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
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.
Last edited by AliGW; 04-29-2022 at 04:14 PM.
Much Appreciated ....God bless you more
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks