+ Reply to Thread
Results 1 to 3 of 3

Formula or Macro to lookup values in closed spreadsheet based on description. . .

  1. #1
    Registered User
    Join Date
    04-29-2015
    Location
    Calgary, AB
    MS-Off Ver
    2010
    Posts
    1

    Formula or Macro to lookup values in closed spreadsheet based on description. . .

    Hi There. . . new to here and not at all an expert when it comes to excel. What I'm looking for (and I'm not even sure it can be done), is this:

    - We have numerous excel spreadsheets in individual folders saved in a location that is never moved, they are organized by manufacturer and contain model numbers and associated costs

    - In our working spreadsheets we enter the name of a manufacturer in a cell, model number in another cell, and the price in another (which we look up manually by opening these individual spreadsheets and copying the cost)

    Is it possible to have a cell in the working copy of the spreadsheet that when I type "CompanyA" into the manufacturer cell and "MODEL1" into the model cell, it will then lookup the appropriate spreadsheet saved in the folder, then lookup the model number in that spreadsheet and generate the value from the cost cell into my working copy?

    Please let me know if you have any advice on what I'm trying to achieve!!!

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Formula or Macro to lookup values in closed spreadsheet based on description. . .

    It is impossible to get values from a closed spreadsheet...However it is possible to open it, use it and close it. However to help us help you then it would be helpful if you can give us more information...
    1. A template workbook that you are working with.
    2. Anymore information (Not breaking confidentiality) on the folders and other workbooks locations and names.
    !If all your troubles are solved, then so is the thread. Show this by marking it so using thread tools at the top of the page.
    If I helped do this, then please show your appreciation by awarding rep points.
    <------ Button for that is over there

  3. #3
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Formula or Macro to lookup values in closed spreadsheet based on description. . .

    Agreed with @ARowbot, and this is fairly simple. I've shown you some sample code below, but if you can answer the following questions, I can tailor it to your setup.

    I guessed or put in default info into the code in answer to all of these questions, so it's highly unlikely the code will work until modified to your formatting and file structure.
    1. What column are you entering the manufacturer in?
    2. What column are you entering the model in?
    3. What is the path where the files are?
    4. Do the folders the files are in, and the files themselves match exactly the manufacturer name as entered on the spreadsheet? if not, what's the delta?
    5. What is the sheet name that the code will search? Is that sheet name the same in every file? If not, what's the relationship between the file name and the sheet name?
    6. What column will be searched for the model number?
    7. What column contains the cost values in the searched sheet?
    8. Where column should the found cost be put in on your open workbook?
    9. What if the model isn't found?



    Please Login or Register  to view this content.
    Last edited by walruseggman; 04-29-2015 at 04:34 PM.

+ 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. Part-Number - Description lookup macro
    By AAdach in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-19-2015, 02:37 PM
  2. Adding values to a separate list based on a value in its description
    By Banchorian in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2013, 09:00 AM
  3. [SOLVED] Need macro that searches for a description based on a number from a drop down list
    By Peebly in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 02-28-2013, 07:02 PM
  4. Macro to move file(s) based on wildcard description
    By samf88 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-05-2011, 05:51 AM
  5. Tweaking a macro that retrieves info from closed spreadsheet
    By kostas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2010, 07:49 AM

Tags for this Thread

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