+ Reply to Thread
Results 1 to 6 of 6

Need help using LOOKUP (or INDEX-MATCH) between sheets

  1. #1
    Registered User
    Join Date
    02-02-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    10

    Need help using LOOKUP (or INDEX-MATCH) between sheets

    I have a sheet that lists most of the common tire sizes that we sell along with the tire dimensions for shipping. I am sent a sheet that has a list of inventory that is in stock. Is there a way to create a column that will match the tire size and fill in the dimensions for each row? I was planning on copying and pasting each one at a time, but figured there must be some way to have excel match the size and pull the data.

    Thank you.

    EDIT: I have updated my post after reading up a little on the LOOKUP function. It looks like I just need to adjust the formula a bit for each column (i.e. length, width, height). Where I am still lost is referencing the table from another sheet. I have copied the sheet so that I have everything in one workbook. I have a feeling I'm on the right track.
    Attached Files Attached Files
    Last edited by frankunited; 02-05-2015 at 06:49 PM. Reason: Clarity

  2. #2
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: Need help using LOOKUP between sheets

    Hi,

    To reference another workbook, you just have to use the file path in the formula. There are certain indicators for this, so to reference Cell A1 in Sample Inventory from Tire Dimensions Chart you'd need to write:

    ='[Sample Inventory.xlsx]INV 2'!A1

    Hope that helps.

  3. #3
    Registered User
    Join Date
    02-02-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    10

    Re: Need help using LOOKUP between sheets

    I was getting lost in trying to click cells between sheets hoping Excel would correctly generate my formula. It took me a while but after trying to understand what the formula is actually supposed to look like, I typed it out and it's working. This is what I came up with:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thanks for the tip, I will try to reference another workbook so that I don't have to keep pasting the sheet into every inventory file.
    Last edited by frankunited; 02-05-2015 at 07:29 PM.

  4. #4
    Registered User
    Join Date
    02-02-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    10

    Re: Need help using LOOKUP (or INDEX-MATCH) between sheets

    Now I'm in pain. I had it working perfectly, but tried to link to another workbook and deleted the reference sheet. I typed out the path and I had misspelled it, Excel gave me an "Open" dialog and I double clicked on the sheet I wanted.

    The result was correct and I thought everything was working. I dragged the formula down the column and the results updated. Almost magical. Then when I copied the formula into the next column I got REF! errors everywhere and my once working formula has REF! instead of the workbook/sheet path.

    What the heck did I do?

    ---------------------------------------------------------------------------------

    EDIT: I don't know what happened with the copy and pasting problem but I re-wrote the formula and put "$" in front of the letters that shouldn't change.

    This is what worked for me (note: I renamed files and sheets to make typing the formula easier)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thanks for the tip on referencing another workbook. Now I only need to worry about maintaining one table with the dimensions.

    Question on that, do I need to keep the workbooks in the same folder at all times?
    Attached Files Attached Files
    Last edited by frankunited; 02-05-2015 at 07:31 PM.

  5. #5
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: Need help using LOOKUP (or INDEX-MATCH) between sheets

    I am not positive, but I am pretty sure you don't need to have the files in the same folder, but I think they do need to be in the same network (or atleast desktop if you're working alone).

    #REF! Errors occur when a cell reference becomes unavailable (usually from deleting). In your case, it sounds like it probably happened when you deleted your reference sheet. In your once working formulas, the #REF!'s are going to show up in every reference that no longer exists.

    #REF! errors also occur as a result of not using Absolute Cell References. Absolute Cell References are what you indicated you started using; they are preceeded by "$"'s. When copying formulas down, up, or across cells, if you are not using the $ signs, the cell references in the new cells will move with the copying direction. For example, if you have a formula in cell B2 that says =A1, and you copy it down to cell B3, the formula in cell B3 would say =A2. However, if you were to copy the formula in B2 up to B1, the formula would read =#REF!, because there is no cell higher than A1.

    I hope that's helpful. It sounds like you deleted the sheet that your formulas were referencing though, so you might have to rewrite them

    Also, I know its annoying to copy and paste tables into a new worksheet, but moving forward I would say that's the way to go. Your #REF! issue is one of the reasons I always try to avoid using external links in Excel

  6. #6
    Registered User
    Join Date
    02-02-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    10

    Re: Need help using LOOKUP (or INDEX-MATCH) between sheets

    Thank you, I decided to go with copying my data/reference sheet into the workbooks I need to use it with for the sake of simplicity. The formula would fill in the entire path to the workbook and it was getting messy.

    Thanks everyone.

+ 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. [SOLVED] Macro to copy the image attributes eg. name, size, type, dimensions from folder containing
    By busybee235 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2014, 11:32 AM
  2. VBA FileSystemObject Properties: Dimensions, Size and Vertical resolution
    By ferguson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2013, 12:48 PM
  3. Calculate dimensions of needed box based on size of machine being packed???
    By Denny Morgan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-28-2012, 05:36 AM
  4. Array Size & Dimensions Best Practice
    By pipsturbo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2011, 11:34 AM
  5. 3 dimensions for data-sheet
    By fnadu in forum Excel General
    Replies: 1
    Last Post: 11-30-2010, 01:13 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