+ Reply to Thread
Results 1 to 14 of 14

Explain Index Match formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-11-2007
    Posts
    127

    Re: Explain Index Match formula

    Thanks for a very useful breakdown - makes things a lot clearer.

    Dan

  2. #2
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Explain Index Match formula

    I end up building them that way as well. I have to do it step by step still, starting with the match. If matching two criteria, I get one working, then the second, then wrap them together, then stick that in the Index, and if that goes well, then I wrap it in If(IsError(

    It can be pretty confusing stuff, but I'm become extremely comfortable with it after only a week. Persistence is the key


    EDIT: In re-reading, daddylonglegs is spot on. My mistake! I'm used to wrapping these in the If(IsError to return "" if there is no value to return. He's absolutely correct about the intersection value for the column, and the 1 is simply returned for when the values do not line up. Apologies!
    Last edited by soberguy; 06-21-2012 at 04:10 AM.

  3. #3
    Forum Contributor
    Join Date
    01-11-2007
    Posts
    127

    Re: Explain Index Match formula

    Yes, the only way I can build a more complicated formula is by creating each step and then latching them together. I'm not sure of the best process to build formulas as probably not spent enough time going through excel tutorials. I use Notepad++ and put each arguement on each row. I know that it is not very efficient because I often end up covering the same condition in another arguement on other rows. Example:

    =IF(AND(L216="W",C216="IB"),(I216*G216),
    IF(AND(L216="W",C216="CB"),(I216*G216),
    IF(AND(L216="W",C216="FB-SR"),(I216*G216),
    IF(AND(L216="W",C216="FB-SR"),(I216*G216-I216),
    IF(AND(L216="V",C216="IB"),I216,
    IF(AND(L216="V",C216="CB"),I216,
    0))))))

    I am sure this could written more efficiently, but its the only way I know how to write it.

    You have become comfortable with Excel after only a week? Or MATCH and INDEX after only a week?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Explain Index Match formula

    Assuming that second is IF(AND(L216="V",C216="FB-SR"),(I216*G216-I216),

    then you can shorten it as:

    =I216*IF(L216="W", G216, IF(C216="FB-SR", G216-1, 1))

    Basically, creating table and using INDEX/MATCH approach would be easier than lot of IF's.
    Never use Merged Cells in Excel

  5. #5
    Forum Contributor
    Join Date
    01-11-2007
    Posts
    127

    Re: Explain Index Match formula

    Thanks zbor much appreciated. Another formula on the same sheet I want to adapt is:

    =IF(OR(Q118={"$","€"}),VLOOKUP(E118,[RefHidden_120112.xlsm]Ref!$BY$5:$CB$60,MATCH(Q118,[RefHidden_120112.xlsm]Ref!$BY$3:$CB$3,0)),"1.00")

    I want it to return "--" IF Q118="". I am not sure of the syntax to add the extra IF.

+ 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