+ Reply to Thread
Results 1 to 4 of 4

Index Match - please assist for complicated lookup

  1. #1
    Registered User
    Join Date
    01-01-2014
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2013
    Posts
    26

    Index Match - please assist for complicated lookup

    Hello everyobody, I seek your assistance to solve lookup issue for which I could not get any clue even after spending more than half day!

    BACKGROUND
    I have attached spreadsheet. it has 2 tabs "Dynamics" and "Statement". "Dynamics" consists the data we have in our system and "Statement" consists data received from actual supplier.

    Currently we have Vlookup formula on column "J" of "Statement". Formula is hard coded to "Dynamics!$H$:$H$632" and it works fine.

    But this formula has limitation because required data in not always located in column H of Dyanmics tab. This data with heading of "Tax Invoice" can be anywhere between column A to W of Dynamics Tab.

    REQUIRED

    Since both tab has heading "Tax Invoice" in common, I am looking for formula in column J of "Statement" which will look value in column with "Tax Invoice" in "Dynamics" Tab

    Thanks

    Query.xlsx

  2. #2
    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: Index Match - please assist for complicated lookup

    Question. What is your VLOOKUP formula in column J supposed to do? This triple nested formula does 3 lookups in the the same range and it doesn't do anything more than just a single VLOOKUP would do.
    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

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Index Match - please assist for complicated lookup

    hi there. not that VLOOKUP cannot do the job, but it is unnecessary to use VLOOKUP in this case. VLOOKUP is more like if you wish to know the Amount To Settle for eg in Dynamics Sheet for the particular Tax Invoice number. so it goes like:
    =VLOOKUP(VALUE($D4),Dynamics!$H$1:$P$632,9,FALSE)

    so if it finds the Tax Invoice in Column H, it returns you the 9th column from there, i.e. Column P.

    unless you really want to return the Tax Invoice itself. i'm not sure. you could use a COUNTIF to count if the Tax invoice exist.
    =COUNTIF(Dynamics!H:H,D4)

    then use IF to decide what text you wanna show if it exist. for eg
    =IF(COUNTIF(Dynamics!H:H,D4)>0,"Exist","Nope")

    and then it looks like if you can't find the Tax Invoice, you want to see if the Sales Order is there. it seems like none is. but if that's what you want, then:
    =IF(SUMPRODUCT(COUNTIF(Dynamics!H:H,D4:E4))>0,"Exist","Nope")

    to find the column with Tax Invoice, try:
    =IF(SUMPRODUCT(COUNTIF(INDEX(Dynamics!$A:$Y,,MATCH("Tax Invoice",Dynamics!$A$5:$Y$5,0)),D4:E4))>0,"Exist","Nope")
    or if you still want to return the particular Tax Invoice or Sales Order, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    01-01-2014
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2013
    Posts
    26

    Re: Index Match - please assist for complicated lookup

    Thank you very much benishiryo. It works perfectly the way I wanted. Very much appreciated

+ 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. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  2. Complicated Lookup or Index +Match function
    By ahs004 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-18-2013, 09:12 AM
  3. [SOLVED] Complicated Index Match
    By willia97 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-14-2012, 07:44 PM
  4. Help with Index Lookup and Complicated Variable Saving
    By JarethD in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2012, 12:41 AM
  5. more complicated index() / match() function?
    By theillknight in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-15-2005, 07:15 PM

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