Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 52
  • Last Modified:

Complex Lookup Formulas

Hi, I am hoping someone can help me with 3 complex look up formulas please.

Attached is a file with 2 active sheets. The are 3 columns I am trying to fill in the 'SUMMARY' sheet based on data in the 'Transactions' sheet.

All lookups are based on the Account # (which is 'Acc #' in the 'SUMMARY' sheet and 'accno' in the 'Transactions' sheet).
1. 'Trans Count' - # of transaction listed in the 'Transactions' sheet (so in the case of account 35 there is 3 transactions)
2. 'Last Trans Date' - date of the most recent transaction listed in the 'Transactions' sheet (so in the case of account 35 it is 1st Aug 2016 - this is column D)
3. 'Last Trans Value' - value of the most recent transaction listed in the 'Transactions' sheet (so in the case of account 35 it is $569.8 - this is column N)

If someone is able to put these calculations directly into the spreadsheet I have attached I would be extremely grateful!

Thanks a lot
Troy
Amalgam-separator-rebate-informatio.xlsx
0
recycleaus
Asked:
recycleaus
  • 2
1 Solution
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Please try this....

On Summary Sheet,
In H2
=COUNTIF(Transactions!$E$2:$E$302,G2)

Open in new window

and copy down.

In I2
=MAX(INDEX((Transactions!$E$2:$E$302=G2)*Transactions!$D$2:$D$302,))

Open in new window

and copy down. (format as date)

In J2
=IFERROR(INDEX(Transactions!$N$2:$N$302,MATCH(1,INDEX((Transactions!$E$2:$E$302=G2)*(Transactions!$D$2:$D$302=I2),),0)),"")

Open in new window

and copy down.
0
 
recycleausAuthor Commented:
Thanks a lot
0
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome Troy! Glad to help.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now