+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Using multiple Index-Match functions

Hybrid View

sigyn Using multiple Index-Match... 10-13-2011, 10:18 AM
NBVC Re: Using multiple... 10-13-2011, 10:31 AM
Nikeyg Re: Using multiple... 10-13-2011, 10:33 AM
sigyn Re: Using multiple... 10-13-2011, 10:34 AM
Richard Buttrey Re: Using multiple... 10-13-2011, 10:46 AM
NBVC Re: Using multiple... 10-13-2011, 10:55 AM
  1. #1
    Registered User
    Join Date
    10-07-2011
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Using multiple Index-Match functions

    Hello,

    I am having some issues with a workbook I'm working on. I'm trying to quote prices on one sheet from data from another spreadsheet. The idea is to type the name of the prescription, select the dosage, and it will give you the price from the data in the 'Prices' sheet.

    However, I am having two problems that I think are associated with my choice to use Index-Match. First of all, if I have more than one prescription with the same name, it does not matter what dosage I choose it will give me the same price for both.

    Second, sometimes when I type a prescription in the Generic column it will give me the dosage but the price won't show up.

    Can anyone help me figure out what I am missing? I have attached an example of the workbook.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using multiple Index-Match functions

    Antara is listed twice with same dosage both times, but different prices? How do you decipher those?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Re: Using multiple Index-Match functions

    Is it worth inserting 2 columns into G and H, one for a concatenation of A and F and one for a concatenation of C and F?
    =A2&F2
    =C2&F2
    And then putting this formula into your pricing in the quotes sheet?
    In column D
    =VLOOKUP(B3&C3,Prices!G:J,4,FALSE)
    In column H
    =VLOOKUP(F3&G3,Prices!H:J,3,FALSE)
    Or is that not going to achieve your deseried results?

    I'd hide the columns G and H in the prices spreadsheet too so they cannot be tampered with.

  4. #4
    Registered User
    Join Date
    10-07-2011
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Using multiple Index-Match functions

    Quote Originally Posted by NBVC View Post
    Antara is listed twice with same dosage both times, but different prices? How do you decipher those?

    Okay well that is an error on my part trying to quickly edit the spreadsheet to upload onto here. It shouldn't be the same thing twice, sorry. You can just ignore those.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Using multiple Index-Match functions

    Hi,

    Once you've chosen a Prescription Name, isn't the dosage and price dependent on the relevant row in the Prices table. i.e. there is only one dosage & price per prescription name. In which case a simple VLOOKUP would work.

    Yet you seem to suggest that for any prescription name there are choices for dosage. Can you please give some specific examples of what you expect to see for various choices.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using multiple Index-Match functions

    Try this formula in D3:

    =IF(OR(B3="",C3=""),"",SUMIFS(Prices!$H$1:$H$49,Prices!$A$1:$A$49,B3,Prices!$F$1:$F$49,C3))

    copied down

    and in H3:

    =IF(OR(F3="",G3=""),"",SUMIFS(Prices!$H$1:$H$49,Prices!$C$1:$C$49,F3,Prices!$F$1:$F$49,G3))

    copied down

+ 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