+ Reply to Thread
Results 1 to 4 of 4

Match two cells and bring back the results from a third

  1. #1
    Registered User
    Join Date
    08-09-2011
    Location
    Noblesville, IN
    MS-Off Ver
    Excel 2007
    Posts
    14

    Exclamation Match two cells and bring back the results from a third

    I used to do this a long time ago and I thought I used an Index formula, I'm positive I did, but I can't get it to work.

    Here's what I'm trying to do: Using two different spreadsheets, I need to bring back unit prices unique to specific hospital locations that use the same part numbers, however each hospital pays a different amount.

    My current spreadsheet is only allowing for ONE hospital since they are all under a parent umbrella, but I need to distinguish pricing because of such a large disparity. Part #123 has three different prices, but in my current spreadsheet it's only allowing for one price. I need to show each price at each location.

    I need to tell my current spreadsheet to match the Part # to the Location on the second spreadsheet and bring me back the results unique to that combination. How do I do that?

    SPREADSHEET A

    COLUMN A COLUMN B
    PART # PRICE
    ROW #1 123 $1.00
    ROW #2 456 $7.00



    SPREADSHEET B

    COLUMN A COLUMN B COLUMN C
    PART # LOCATION PRICE
    ROW #1 123 HOSP A $1.00
    ROW #2 123 HOSP B $2.00
    ROW #3 123 HOSP C $3.00
    ROW #4 456 HOSP A $7.00
    ROW #5 456 HOSP B $8.00
    ROW #6 456 HOSP C $9.00

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Match two cells and bring back the results from a third

    How would Excel know which 123 to return? You have three of them. Is there a location identifier on Spreadsheet A?
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    08-09-2011
    Location
    Noblesville, IN
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Match two cells and bring back the results from a third

    Yes, I've added in new cells in the 2nd spreadsheet to accommodate the different locations.

  4. #4
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Match two cells and bring back the results from a third

    Perhaps you should post a sample workbook; I don't see anything in your example above that could be used to differentiate the locations in spreadsheet A.

+ 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