how to lookup image from different excel - excel

I am creating an excel workbook file with one of the column containing a title of an image that is in another excel workbook file, that excel file contained huge database of images how to lookup images form that excel workbook file with their individual title
Note: these are two different Excel workbooks. And the condition is we can't merge file because imageDatabase file is so heavy up to 25MB for that reason excel is get not responding or force close.
file for example:
https://drive.google.com/a/flygoldfinch.com/file/d/0B9VV_J4sKTatdDBEZ01GNHg3Y0k/view?usp=docslist_api

Any reference to a cell in Excel can be performed on any other sheet, be it in the same file, or an outside file.
A reference to another sheet within the file looks like this:
='sheetname'!M20
The same thing works if that sheet is in a different file
='[file.xlsx]sheetname'!$H$726
Knowing that the reference will work that way, you can write any formula with it. This includes VLOOKUPs, or anything else you need to do.
A good shortcut to make this easier is to have both files open, click the cell you want to make the reference in, type =, then switch to the other file, click the cell you want, and hit return. Your reference is made.

Related

What Excel VBA or UDF options exist to look up values in a closed workbook [duplicate]

Here's my desired outcome: I want an Excel workbook (say Master.xls) that I can drop into a directory of other Excel workbooks and Master.xls will extract a given range of cells from all of the hundreds of other workbooks in that directory. I have multiple directories with hundreds of Excel files in each, so I need a Master.xls file that will easily move between directories with different file paths and update based on the files around it in the directory. In my Master.xls file, I can build the file names for all of these other workbooks using text functions like CONCATENATE.
The problem comes when I try to use Excel to reference cells in workbooks that are not currently open. The problems:
INDEX can access closed workbooks using hard-coded paths, but can't (as far as I can tell) accept cell ranges as text. To enter cell ranges as text to other functions, one has to use the...
INDIRECT function, which doesn't work for closed workbooks.
Basically, INDEX can solve my problem but I can't figure out how to get it to work without hard-coding the paths to the closed workbook into the function call. That's a deal breaker, since I have thousands of workbooks to reference and doing a find-replace to change the file path for each workbook is time-prohibitive and not maintainable.
Other constraints: no Excel add-ins since this sheet has to be shared with others and no VBA because this has to be used by people with fear of macros. I recognize that Excel is not the right tool for this job. Believe me, if I could use another tool, I would.
Update: sample Excel sheet showing the problem:
Going straight to the source at MS Office support, INDIRECT does not work with external workbooks.

Excel formula to reference cells in another (closed) workbook with dynamic file path

Here's my desired outcome: I want an Excel workbook (say Master.xls) that I can drop into a directory of other Excel workbooks and Master.xls will extract a given range of cells from all of the hundreds of other workbooks in that directory. I have multiple directories with hundreds of Excel files in each, so I need a Master.xls file that will easily move between directories with different file paths and update based on the files around it in the directory. In my Master.xls file, I can build the file names for all of these other workbooks using text functions like CONCATENATE.
The problem comes when I try to use Excel to reference cells in workbooks that are not currently open. The problems:
INDEX can access closed workbooks using hard-coded paths, but can't (as far as I can tell) accept cell ranges as text. To enter cell ranges as text to other functions, one has to use the...
INDIRECT function, which doesn't work for closed workbooks.
Basically, INDEX can solve my problem but I can't figure out how to get it to work without hard-coding the paths to the closed workbook into the function call. That's a deal breaker, since I have thousands of workbooks to reference and doing a find-replace to change the file path for each workbook is time-prohibitive and not maintainable.
Other constraints: no Excel add-ins since this sheet has to be shared with others and no VBA because this has to be used by people with fear of macros. I recognize that Excel is not the right tool for this job. Believe me, if I could use another tool, I would.
Update: sample Excel sheet showing the problem:
Going straight to the source at MS Office support, INDIRECT does not work with external workbooks.

Spreadsheet sent to me that references an .xlam file on her desktop, how do i make it work for me?

A colleague sent me a spreadsheet she uses to forecast days of coverage for a raw material. It was created by someone who is now retired, so we don't have a point of reference.
The calculation in a column of cells in the spreadsheet she sent me looks like this:
='C:\Users\username\Desktop\Forward IDS 20121114.xlam'!forwardIDS(1,F2193/0.65,E2194,E2195,E2196..)
So this function seems to read the macro at this file location, then it does a calculation with the cells in the current spreadsheet (the E# cells represent production amounts).
When I add my values to column E, it completely breaks the function, and I get a "#NAME?" error in all the cells that reference the desktop file location. I tried to save this .xlam file referenced to my desktop, then switched her username with mine, but I get the same error.
I am not really sure what the reference to this .xlam file is doing, I just need it to do the same calculations on my spreadsheet. I can find the VBA code for the Add-in via VBE, and I was even able to disable the Add-in property so I can see the underlying spreadsheet used. Maybe there is a way I can just create my own version of this with all of that information available to me?
She has created a custom function "ForwardIDS" that is stored inside that .xlam. You will have to either: A) Copy the .xlam to your computer or B) Copy the custom function into the workbook's code module.
Once you've done that you will need to update any cells that reference that function and point them to the correct location.
If you move the function to the workbook's code module you can change those formulas to just read: =forwardIDS(1,F2193/0.65,E2194,E2195,E2196..)

Excel - Automatically change input cell value and export output cells to new workbook

I have a spreadsheet where I can enter a reference number and Excel generates a table based on the data tied to that reference number.
Rather than enter each reference number individually and copy the resulting table manually, is it possible to automatically iterate the process of entering the reference numbers (from an existing list) and exporting the results separately?
My Idea:
I didn't quite understand HOW you need to automatically enter those reference, but a good idea would be writing all the numbers you need in a .txt file, then program a button which loads a msoFileDialogFilePicker to select your file. When the file is selected, you can open it with a New FileSystemObject, read it with ReadLine and filling an array with all the numbers you have written in the .txt file. Then with a forcycle from LBoundto UBoundof that array you can enter those numbers automatically in your Range.
To export everytime your results table (which again I didn't quite understand HOW you want it to be exported), an idea would be a Worksheet Changeevent (if the results table appear in your spreadsheet) in which you can write down some code to copy-paste the results table in a new worksheet and then save it, or make a .pdf of the results table from its area.
The possibilities are really too many to write a single piece of code to show you :)

Make excel worksheet mirror worksheet in external file

How can I make a worksheet in my excel file mirror exactly the sheet of a different (closed) worksheet.
Basically, I have around 5 files with a lot of data the gets consolidated into a single dashboard with the important information. I then want to create a file (lets call it report) that has the 'main' sheet from each of these different files.
Ideally, the report file will not have to be altered, and when it is opened it will already have all the data needed.
Note: there are merged cells in the documents that are in variable positions.
response to comment #1:
By be there already, for example you can do a vlookup referencing other workbooks.. and the values of those vlookups will be correct when you open the file. First I thought I could just say cell A1 is file 1 = cell A1 in file 2, but the merged cells throw that off because it will not create merged cells to match
I found the following and it can be done in Excel VBA.
1) open consolidated workbook
2) Assuming that all the files you need to consolidate are in a given directory, you can obtain the list of all these files.
2.1) Traverse the list of files and open them one after the other
2.2) When a file is open, you might want to change the name of the sheet before moving it to the "report" file.
2.3) Close each file without saving them.

Resources