+ Reply to Thread
Results 1 to 9 of 9

Index and Match syntax error

  1. #1
    Registered User
    Join Date
    05-25-2018
    Location
    Connecticut
    MS-Off Ver
    2016
    Posts
    67

    Index and Match syntax error

    Good afternoon,

    I have two attachments. I am trying to find the bill no. from the Weekly HMO ss on the HMO Traditional ss and once I have, put the savings amount in the net savings column in the traditional ss.

    This is the formula I have, but it's not working.

    =IFERROR(INDEX('[Weekly HMO 052518.xlsm]Week Ending 052518'!$O:$O,MATCH(LEFT(W123,7),LEFT('[Weekly HMO 052518.xlsm]Week Ending 052518'!$R:$R,7),)),"")

    Thank you for your help once again!

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Index and Match

    Based on your description, is this what you seek?

    =IFERROR(INDEX('[Sample Weekly HMO 052518.xlsm]Week Ending 052518 '!$G:$G,MATCH($O5,'[Sample Weekly HMO 052518.xlsm]Week Ending 052518 '!$J:$J,0)),"")

    I'm not sure what the whole Left is doing.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    05-25-2018
    Location
    Connecticut
    MS-Off Ver
    2016
    Posts
    67

    Re: Index and Match

    Thank you so much Jeff, it worked. I see you used $05 instead of $O$O to search the entire column. Would you please explain that a little to me?

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Index and Match syntax error

    You are very welcome. Glad it worked out for you.

    If you look at the three arguments that make-up the Match function, the first argument looks at a single lookup value and then the second argument matches the lookup value against the lookup array.

    =MATCH(lookup_value,lookup_array,match_type)

    See if this reference helps...

    http://www.contextures.com/xlFunctions03.html

    If that takes care of your original query, please don't' forget to marked this thread as solved.
    Last edited by jeffreybrown; 06-01-2018 at 09:47 PM.

  5. #5
    Registered User
    Join Date
    05-25-2018
    Location
    Connecticut
    MS-Off Ver
    2016
    Posts
    67

    Re: Index and Match syntax error

    Is there a way that I can edit this formula so that I can reuse it for a different workbook and worksheet without having to change the formula every time?

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Index and Match syntax error

    If you copy the formula as in post #2 it will transfer as is and you will have to update to the appropriate references. It's possible something can be done to keep the editing down, but not sure what all you are doing.

  7. #7
    Registered User
    Join Date
    05-25-2018
    Location
    Connecticut
    MS-Off Ver
    2016
    Posts
    67

    Re: Index and Match syntax error

    Could the ActiveSheet function work and if so, would you please tell me how you would go about that?

    I am still trying to do what my original posts says, but my workbook and worksheets change each week.

    "I have two attachments. I am trying to find the bill no. from the Weekly HMO ss on the HMO Traditional ss and once I have, put the savings amount in the net savings column in the traditional ss."

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Index and Match syntax error

    Quote Originally Posted by kocumna View Post
    Could the ActiveSheet function work and if so, would you please tell me how you would go about that?
    I don't know of an ActiveSheet function in a formula, only in VBA and that doesn't seem what you are after. I'm going to ask for some other's to like in on this and offer any other suggestions.

  9. #9
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Index and Match syntax error

    I'd just use Edit links. Found under Data ->Queries&Connections

    And use "Change Source" to change source in one shot for entire reference to another workbook.
    0.JPG

    Probably the easiest and likely the fastest to mass change external workbook reference.
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

+ 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. INDEX MATCH syntax..
    By ccarruth in forum Excel General
    Replies: 4
    Last Post: 07-24-2017, 03:10 AM
  2. [SOLVED] INDEX/MATCH syntax
    By Len Silva in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-06-2017, 10:46 PM
  3. [SOLVED] Formula Syntax with INDEX/MATCH and other table references
    By phpolicylady in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-12-2015, 06:18 PM
  4. [SOLVED] INDEX/MATCH/MIN(>1) Syntax Difficulty
    By fearonc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2014, 02:09 PM
  5. [SOLVED] Index Match Match - syntax problem
    By Dabooka in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2014, 09:05 AM
  6. VBA syntax for Index/Match function
    By SandPounder1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2014, 03:42 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 AM

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