+ Reply to Thread
Results 1 to 9 of 9

Lookup formulas

  1. #1
    Registered User
    Join Date
    05-22-2015
    Location
    Boston
    MS-Off Ver
    2010
    Posts
    4

    Lookup formulas

    Hello Community,
    I would greatly appreciate if some one could give me advice on how to fix a formula that I have written.

    I am trying to write a lookup formula that searches data on a table on “sheet2” using two different parameters. I want to display the matched values found on the table on sheet 2 in “sheet1”. From online research, I have created the following function,
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Where:
    j4 &”I”&k4 = Cells where you would type the two different parameters in “sheet1”.
    A4:d83 = Table where the data is located on “sheet2”
    4 = The column on “sheet2” that contains the data to be displayed if matched on “sheet1”
    The problem is that I need to “tell” excel to search sheet2 for the two different parameters typed on sheet1. I would also like to display the matched value on sheet1. Any other suggestions would also be greatly appreciated.

    Thank you very much for the help.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Lookup formulas

    Hi,
    Welcome to the forum.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

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

    View Pic
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    186

    Re: Lookup formulas

    If there are duplications in the lookup columns and or potentially multiple results, then this would effect how it would be possible to do this.

    Array formula maybe be best, this would work based on what you described:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hold down left control and left shift while pressing return to enter it as an array formula, it should then have {} around it as in my example to indicate that it has been entered as an array formula.

    You can then copy and paste it down a number of rows in order to list all matching results if the are more than 1 match.

    Hope it helps

  4. #4
    Registered User
    Join Date
    05-22-2015
    Location
    Boston
    MS-Off Ver
    2010
    Posts
    4

    Re: Lookup formulas

    Hello D.Lovell,
    Thank you very much for the help once again.

    Excuse my inexperience, but for some reason when I plugged the formula in it does not seem to workPrices.xlsx. Attached is is what I did.

    Thank You once again for your time and attention.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Lookup formulas

    Try this

    =SUMIFS(Sheet2!D$4:D$10,Sheet2!B$4:B$10,J4,Sheet2!C$4:C$10,K4)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Lookup formulas

    It would be easier to use a Named Range for the table on sheet2, say, "LookupTable"

    =Sheet2!$A$4:INDEX(Sheet2!$D:$D,COUNT(Sheet2!$D:$D)+3)

    Also , the formula you provided: =vlookup( j4 & ”I” &k4,A4:d83,4,false), has strange double quote marks around I. I don't think those characters are part of Excel. It should look like:
    Please Login or Register  to view this content.
    Ben Van Johnson

  7. #7
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    186

    Re: Lookup formulas

    You can also do it like this as an array formula: (Hold down left control and left shift and press enter)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-22-2015
    Location
    Boston
    MS-Off Ver
    2010
    Posts
    4

    Re: Lookup formulas

    Quote Originally Posted by AlKey View Post
    Try this

    =SUMIFS(Sheet2!D$4:D$10,Sheet2!B$4:B$10,J4,Sheet2!C$4:C$10,K4)

    Thank you very much for the response!

  9. #9
    Registered User
    Join Date
    05-22-2015
    Location
    Boston
    MS-Off Ver
    2010
    Posts
    4

    Re: Lookup formulas

    Thank you for your time and attention.

    I will give your method a try!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with LOOKUP Formulas
    By mblazess in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2014, 06:15 PM
  2. Replies: 5
    Last Post: 09-25-2013, 02:51 PM
  3. lookup formulas?
    By slugdog in forum Excel General
    Replies: 1
    Last Post: 08-11-2011, 12:52 AM
  4. Lookup formulas
    By Heather O'Malley in forum Excel General
    Replies: 1
    Last Post: 06-14-2006, 07:00 AM
  5. Lookup Formulas
    By trantkim1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2005, 04:06 AM

Tags for this Thread

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