+ Reply to Thread
Results 1 to 7 of 7

Referencing information between two sheets

  1. #1
    Registered User
    Join Date
    01-10-2016
    Location
    Austin, TX
    MS-Off Ver
    Office 365
    Posts
    16

    Referencing information between two sheets

    In the attachment you will see that Sheet1, Col A has Store Codes assigned to various Order #s (Column B). In Sheet2 the "Store Code" column is blank with a list of the same Order #s in Col B. Is there a formula that will quickly fill in the information in the "Store Code" column in Sheet 2 by referencing the information in Sheet1? I need to assign the correct "Store Codes" to their respective "Order #" in Sheet2.

    Any help is appreciated.

    Thank you,
    -Luke
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Referencing information between two sheets

    In A2 on Sheet 2 and copied down:

    =INDEX(Sheet1!A2:A195,MATCH(Sheet2!B2,Sheet1!B2:B195,0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-10-2016
    Location
    Austin, TX
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Referencing information between two sheets

    Thank you for your response! When I used that formula I am getting a lot of #N/A results (See attached). Do you know how to fix this?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-15-2016
    Location
    London, England
    MS-Off Ver
    Office 2008/2010/2013 (Windows)
    Posts
    22

    Re: Referencing information between two sheets

    Is this any use to you, in A2 Sheet2 copied down?

    =IFERROR(INDEX(Sheet1!A2:A195,MATCH(Sheet2!B2,Sheet1!B2:B195,0)),"")

    That should replace all NA's with a blank.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Referencing information between two sheets

    The #N/A results show that there is no match. You can do what Kymba has suggested:

    =IFERROR(INDEX(Sheet1!A2:A195,MATCH(Sheet2!B2,Sheet1!B2:B195,0)),"")

    or something like this:

    =IFERROR(INDEX(Sheet1!A2:A195,MATCH(Sheet2!B2,Sheet1!B2:B195,0)),"No Store")

  6. #6
    Registered User
    Join Date
    01-10-2016
    Location
    Austin, TX
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Referencing information between two sheets

    The issue is though, there are matches in Sheet1 for all of the #N/A results. For example, B8 in Sheet2 should be returning "Wolf Lakes" from A4 in Sheet1.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Referencing information between two sheets

    Sorry - my error. You need to fix the ranges thus:

    =IFERROR(INDEX(Sheet1!$A$2:$A$195,MATCH(Sheet2!B2,Sheet1!$B$2:$B$195,0)),"")

    before copying down.

+ 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. Referencing a name and its entailing information for another worksheet
    By Somethingoranother in forum Excel General
    Replies: 4
    Last Post: 11-12-2015, 01:43 PM
  2. Referencing Information from Other Sheet???
    By sadele89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2015, 12:11 PM
  3. Replies: 4
    Last Post: 06-06-2011, 07:54 PM
  4. Populating sheets information into 2 sheets; 2 different ways, times, formats
    By djyayo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2011, 01:44 PM
  5. Referencing page setup header information in VBA
    By V C in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2010, 05:50 PM
  6. Referencing information in a excel work book.
    By starlinepc in forum Excel General
    Replies: 1
    Last Post: 06-18-2008, 11:39 AM
  7. Referencing other sheets
    By djarcadian in forum Excel General
    Replies: 1
    Last Post: 03-03-2005, 02:31 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