+ Reply to Thread
Results 1 to 5 of 5

Index? Indirect? Match?

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Index? Indirect? Match?

    So I'm def not a power EXCEL user, but I've done some work on it, but not anything involving multiple sheet interactions. What I'm trying to do is when I key an item number into col. E sheet 1, it will look for the matching item number in sheet 2 col. C and then return in sheet 1 col. G the value of sheet 2 col. B of the matching item. Hopefully my attempt at attaching sheet 1 was successful. I frankly have no idea how to execute the formula nor even what to search- I have been searching for the last couple of hours and not turned anything up. Any help is much appreciated.

    Cheers,
    CP
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Index? Indirect? Match?

    There is no data in Sheet2. If you have data in columns C and B as you describe, then you could have this formula in G2 of Sheet1:

    =INDEX(Sheet2!B:B,MATCH(E2,Sheet2!C:C,0))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Index? Indirect? Match?

    Pete,
    Thanks for the help but that populates n/a. Also, when I paste your formula into the cell, excel window pops up wanting me to select a file. Not sure what to do with that... Could I email you the spreadsheet with both pages rather than post them here publicly?
    Last edited by CpnVenice; 03-13-2013 at 02:24 PM. Reason: More info to add

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Index? Indirect? Match?

    If the formula returns #N/A then that indicates there is no matching data in column C. You can avoid that error like this:

    =IF(ISNA(MATCH(E2,Sheet2!C:C,0)),"",INDEX(Sheet2!B:B,MATCH(E2,Sheet2!C:C,0)))

    or like this:

    =IF(COUNTIF(Sheet2!C:C,E2)>0,INDEX(Sheet2!B:B,MATCH(E2,Sheet2!C:C,0)),"")

    and you could put some error message between the quotes like "not found".

    If it pops up that window asking for a file then the problem is probably the sheet names - they are not the same as those in your file. If sheet names have spaces in them then you must have apostrophes around the sheet names, like this:

    =INDEX('Sheet 2'!B:B,MATCH(E2,'Sheet 2'!C:C,0))

    Obviously you can apply this to the previous two formulae.

    I am reluctant to give out an email address on such a public forum, so I hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    06-21-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Index? Indirect? Match?

    I totally understand- thanks again for your help!

+ 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