+ Reply to Thread
Results 1 to 9 of 9

Bilateral lookup

  1. #1
    Registered User
    Join Date
    04-06-2013
    Location
    ftron
    MS-Off Ver
    Excel 2010
    Posts
    4

    Bilateral lookup

    First time poster here. Nice to meet you all :-)

    I hope someone can help me with the following. I have a spreadsheet with around 10k rows of data. Each row contains a sender name, a recipient name and an amount. There are a around 100 unique senders/receivers, with almost all senders receiving and vv.

    What I am trying to find out is which two individuals send/receive the most $ between them. I have added one column to concatenate the sender and receiver name which tells me how much went from each sender to each receiver. But that doesnt help me as I need to know how much went from A-->B and from B-->A in total.

    Any suggestions?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Bilateral lookup

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Bilateral lookup

    With no sight of example data it's hard to tell, but would INDEX(MATCH,MATCH)+INDEX(MATCH,MATCH) work?

    It would look up transaction going one way between two people and add to that the transaction between the same two people going the other way.

    If you can provide example data I will show you what I mean. Not easy to explain.




    EDIT: I had a completely different data layout in mind when writing this. I think KevinUK might be on to the right solution.
    Last edited by Spencer101; 04-06-2013 at 04:11 AM.
    If I've been of help, please hit the star

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Bilateral lookup

    Hi rayoflight

    It is unclear without a spread sheet, but may be!
    In column A: Senders
    In column B: Receivers
    In column c: Amounts

    =MAX(IF((A:A="Name")*(B:B="Name"),C:C))
    Array formula, to commit. CTRL + SHIFT + ENTER
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  5. #5
    Registered User
    Join Date
    04-06-2013
    Location
    ftron
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Bilateral lookup

    Transfers.xlsxpic transfer.jpg
    Quote Originally Posted by Pepe Le Mokko View Post
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Sorry about not including the workbook; attached a simplified example.

    I have the section in rows 3-8. What I am trying to get to is a summary as in rows 11-14. I tried Kevin's solution but I cannot make it work.

    Thanks again!
    Last edited by rayoflight; 04-06-2013 at 04:56 AM. Reason: removed duplicate attachment

  6. #6
    Registered User
    Join Date
    04-06-2013
    Location
    ftron
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Bilateral lookup

    Any ideas anyone?

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,651

    Re: Bilateral lookup

    Maybe this will do it
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Bilateral lookup

    You could add a column and then use a pivot table:

    Please Login or Register  to view this content.
    The formula in D2 and copied down is

    =IF(A2<=B2, A2 & "|" & B2, B2 & "|" & A2)
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Registered User
    Join Date
    04-06-2013
    Location
    ftron
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Bilateral lookup

    Thanks popipipo and shg!

    shg - like the simplicity of your approach. Never thought of using < and > to sort text rather than numbers. Good one.

    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Bookmarks

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