+ Reply to Thread
Results 1 to 7 of 7

Help need on returning data with three variables

  1. #1
    Registered User
    Join Date
    04-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Help need on returning data with three variables

    Hi,
    I need to find a way to return a variable for column J in the attached. The issues I am having is the fact that the data is dependent on the 3 variables in column A-C and I would like to return the appropiate value in column D dependent on the variables in columns G-I, interpolated or otherwise.

    So far I have tried to concatenemat the variables and the do a vlookup, but this doesn't work as there are different bank names. Also I am not able to name the brange as the dfata in A-C will be dynamic and change for day to day.

    Any suggestions or help will be really appreciated.

    Thanks,

    Michael
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Help need on returning data with three variables

    mboyce82,

    None of the items in G:I contain a match. For example, there is no data that has all three of these critieria:
    ABBEY NATIONAL TREASURY SERVICES PLC
    9/20/2012
    GBP

    Every row of criteria G:I is like that, there are no matches.

    If there were a match, this would be the correct formula:
    =INDEX($D$1:$D$39,MATCH(1,INDEX(($A$1:$A$39=G3)*($B$1:$B$39=H3)*($C$1:$C$39=I3),),0))
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Help need on returning data with three variables

    Hi

    maybe:


    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Regards
    Last edited by canapone; 05-07-2012 at 12:02 PM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    04-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Help need on returning data with three variables

    Hi Tigeravatar,
    Sorry I was not clear, I do not always expect there to be an exact match (most of the time there will not be). I these instances I would like to interpolate or perhaps find the closest date and return the corresponding value.

    Thanks for you input

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Help need on returning data with three variables

    mboyce82,

    Attached is amodified version of your posted workbook. In cell J3 and copied down is this array formula. Note that array formulas must be entered with Ctrl+Shift+Enter and not just enter:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Help need on returning data with three variables

    Hi Tigeravatar,
    Thank you for going to the effort of doing that.

    Mike

  7. #7
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Help need on returning data with three variables

    You're very welcome

+ 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