I have a folder in desktop Project-1. there is 2 file in that folder. one is GL another is 001. i used a formula in 001 to sum from GL excel file the formula is
=SUM('C:\Users\Administrator\Desktop\Project-1[GL.xls]GL'!$F$1:$F$200,)
I want to use the formula without file path like =sum(\[GL.xls]GL'!$F$1:$F$200)
How can i do that?
Related
I have an Excel spreadsheet in which I need to make hundreds of links to PDF files that are in the same folder on my computer.
The file name for the link appears in the Excel table.
Today I create each link separately, but I'm sure there is a simpler way to tell Excel to copy the link in the top box but look for the file whose name appears in the Excel table.
I'm doing each hyperlink separably
Assuming A1 has the name of the hyperlink and A2 has the location, use this formula where you want the link to appear:
=HYPERLINK(A1,A2)
You can then copy this down to the other cells.
I am trying to hyperlink all the fields in column B (picture given below) to the respective content in the folder (picture also provided).
I realized its stupid for me to do it manually and it takes a very long time to do so.
Is there a better way to link them automatically or with more ease?.
I realize that I can do it with help of VBA but I have no clue how to do it.
This is how my excel column B looks before hyperlinking:
So this is what I get after manually adding the hyperlinks to
column B.
This is the folder(folder name is 2016) which has subfolders (the one in image) and in each of these
subfolders there is a pdf file and a word file.
I am required to hyperlink the contents in column b (which are not already hyperlinked to the pdf files to their respective subfolders in this folder "2016" (You can see the address bar).
Here are the pdf and word files inside the subfolders of "2016".
So basically you see is that in column B the numbers in the end are in series. I want them hyperlinked to the pdf files inside these subfolders.
If you observe closely , the subfolder have a huge name (including the parenthesis content) , whereas my column B has name of the sub folder excluding the parenthesis part.
So basically its like matching the serial numbers and hyperlinking the pdf file inside the subfolders.
EDIT:
I tried the following by using =HYPERLINK("\\qatargas.com.qa\doc\Admin\Al_Khor_Community\Alwaha_Club_Admin_Office\Comments & Suggestion Response\2017\"&B1512&" ("&C1512&" "&D1512&")\"&B1512&" ("&C1512&E1510" "&D1512&")"&".pdf";B1512) on cell e1512.
I get this error
Insert a new column "C" (or wherever) and enter in (for example) cell C1210:
=HYPERLINK("file://C:\your_base_path\" & B1210 & "\name_of_pdf_file.pdf","Click to view PDF")
For example in the row 1512: you want to have a hyperlink to a pdf (what is the concrete name of this pdf?) in a path "[...]\qatargas.com.qa\doc\Admin[...]\2016\AKC-CS-17-0124 (QG 3739)". Right?
Then write in cell e1512 the following formula (if the name of pdf is always the same):
=HYPERLINK("[...]\qatargas.com.qa\doc\Admin\[...]\2016\"&B1512&" ("&C1512&" "&D1512&")\"&"<nameofyourpdf>";B1512)
You have to use your path (i used [...] to drop part of the path) and you have to use the name of your pdf, which is always the same you said.
or if name of the pdf is like the Name of the folder:
=HYPERLINK("[...]\qatargas.com.qa\doc\Admin\[...]\2016\"&B1512&" ("&C1512&" "&D1512&")\"&B1512&" ("&C1512&" "&D1512&")"&".pdf";B1512)
In an Excel cell, I want to link to a MS Word file, e.g. to C:\MyFile\someDoc.docx, using a relative path.
My Excel file is in the folder C:\MyFile. So my path should be something like currentdirectory\someDoc.docx so that I can mail the whole C:\MyFile folder or transfer it somewhere else.
How can I do that?
I am aware how to link with an absolute path like C:\MyFile\someDoc.docx but what if I transfer the Excel file to somebody. In the destination folder, will it still search for the C:\MyFile location?
You can get the location of your workbook using the CELL function.
Enter the below formula in your sheet, say in cell B1,
=LEFT(CELL("filename",A1),FIND("[",CELL("filename",A1))-1)
This will give you the root folder in which your workbook is present. Now in the cell in which you have the link to the docx file, use the below formula,
=HYPERLINK(B1&"someDoc.docx","Click here")
Hope this helps. Even if you move the folder, this will work.
I have a project that deals with thousands of file names in Excel.
S:\Workgroups\APC Environmental Affairs\WATER\`New File Structure\PLANTS\HYDRO\HENRY\SPCC\correspondence\Henry SPCC NEW REVISION.msg
The complete file location is listed in the cells. I would need to copy over only the true file name "Henry SPCC NEW REVISION" into a new cell over
S:\Workgroups\APC Environmental Affairs\WATER\`New File Structure\PLANTS\HYDRO\HENRY\SPCC\correspondence\Henry SPCC Plans.msg
For this one I would copy over "Henry SPCC Plans". Basically I'm copying over the text between the last \ and the .file extension.
Is there a macro or special paste function I can use to help me with this?
As part of tigeravatar's answer, you can use:
=MID(A1,FIND("#",SUBSTITUTE(A1,"\","#",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))+1,LEN(A1))
I am working in an organization where we have 100s of excel files on our shared drive. These excel files contain asset numbers to our company assets in different cells within the files. What I would like to do is create a script in vba which would run only once and search through all these excel files using the find method and paste their cell addresses adjacent to their file path (I already have the paths of all the files in an excel sheet). But this address should in the form of a link formula, just like "=A2" so that we can later on modify this formula if there is a change in the position of the asset number without using vba. So suppose,
If cell E3 in the file1 contains asset number "XXX0000", the vba script should paste something like " ='\shared drive\folder path\file1.xlsx]WS'!$E$3 " in the cell next to the path,"\shared drive\folder\". So later on we can manually modify this formula if there is a change in its cell location
Thanks