For quick access to related information in another file or on a web page, you can insert a hyperlink in a worksheet cell. You can also insert links in specific chart elements.
Note: Most of the screen shots in this article were taken in Excel 2016. If you have a different version your view might be slightly different, but unless otherwise noted, the functionality is the same.
-
On a worksheet, click the cell where you want to create a link.
You can also select an object, such as a picture or an element in a chart, that you want to use to represent the link.
-
On the Insert tab, in the Links group, click Link .
You can also right-click the cell or graphic and then click Link on the shortcut menu, or you can press Ctrl+K.
-
-
Under Link to, click Create New Document.
-
In the Name of new document box, type a name for the new file.
Tip: To specify a location other than the one shown under Full path, you can type the new location preceding the name in the Name of new document box, or you can click Change to select the location that you want and then click OK.
-
Under When to edit, click Edit the new document later or Edit the new document now to specify when you want to open the new file for editing.
-
In the Text to display box, type the text that you want to use to represent the link.
-
To display helpful information when you rest the pointer on the link, click ScreenTip, type the text that you want in the ScreenTip text box, and then click OK.
-
On a worksheet, click the cell where you want to create a link.
You can also select an object, such as a picture or an element in a chart, that you want to use to represent the link.
-
On the Insert tab, in the Links group, click Link .
You can also right-click the cell or object and then click Link on the shortcut menu, or you can press Ctrl+K.
-
-
Under Link to, click Existing File or Web Page.
-
Do one of the following:
-
To select a file, click Current Folder, and then click the file that you want to link to.
You can change the current folder by selecting a different folder in the Look in list.
-
To select a web page, click Browsed Pages and then click the web page that you want to link to.
-
To select a file that you recently used, click Recent Files, and then click the file that you want to link to.
-
To enter the name and location of a known file or web page that you want to link to, type that information in the Address box.
-
To locate a web page, click Browse the Web , open the web page that you want to link to, and then switch back to Excel without closing your browser.
-
-
If you want to create a link to a specific location in the file or on the web page, click Bookmark, and then double-click the bookmark that you want.
Note: The file or web page that you are linking to must have a bookmark.
-
In the Text to display box, type the text that you want to use to represent the link.
-
To display helpful information when you rest the pointer on the link, click ScreenTip, type the text that you want in the ScreenTip text box, and then click OK.
To link to a location in the current workbook or another workbook, you can either define a name for the destination cells or use a cell reference.
-
To use a name, you must name the destination cells in the destination workbook.
How to name a cell or a range of cells
-
Select the cell, range of cells, or nonadjacent selections that you want to name.
-
Click the Name box at the left end of the formula bar .
Name box
-
In the Name box, type the name for the cells, and then press Enter.
Note: Names can’t contain spaces and must begin with a letter.
-
-
On a worksheet of the source workbook, click the cell where you want to create a link.
You can also select an object, such as a picture or an element in a chart, that you want to use to represent the link.
-
On the Insert tab, in the Links group, click Link .
You can also right-click the cell or object and then click Link on the shortcut menu, or you can press Ctrl+K.
-
-
Under Link to, do one of the following:
-
To link to a location in your current workbook, click Place in This Document.
-
To link to a location in another workbook, click Existing File or Web Page, locate and select the workbook that you want to link to, and then click Bookmark.
-
-
Do one of the following:
-
In the Or select a place in this document box, under Cell Reference, click the worksheet that you want to link to, type the cell reference in the Type in the cell reference box, and then click OK.
-
In the list under Defined Names, click the name that represents the cells that you want to link to, and then click OK.
-
-
In the Text to display box, type the text that you want to use to represent the link.
-
To display helpful information when you rest the pointer on the link, click ScreenTip, type the text that you want in the ScreenTip text box, and then click OK.
You can use the HYPERLINK function to create a link that opens a document that is stored on a network server, an intranet, or the Internet. When you click the cell that contains the HYPERLINK function, Excel opens the file that is stored at the location of the link.
Syntax
HYPERLINK(link_location,friendly_name)
Link_location is the path and file name to the document to be opened as text. Link_location can refer to a place in a document — such as a specific cell or named range in an Excel worksheet or workbook, or to a bookmark in a Microsoft Word document. The path can be to a file stored on a hard disk drive, or the path can be a universal naming convention (UNC) path on a server (in Microsoft Excel for Windows) or a Uniform Resource Locator (URL) path on the Internet or an intranet.
-
Link_location can be a text string enclosed in quotation marks or a cell that contains the link as a text string.
-
If the jump specified in link_location does not exist or can’t be navigated, an error appears when you click the cell.
Friendly_name is the jump text or numeric value that is displayed in the cell. Friendly_name is displayed in blue and is underlined. If friendly_name is omitted, the cell displays the link_location as the jump text.
-
Friendly_name can be a value, a text string, a name, or a cell that contains the jump text or value.
-
If friendly_name returns an error value (for example, #VALUE!), the cell displays the error instead of the jump text.
Examples
The following example opens a worksheet named Budget Report.xls that is stored on the Internet at the location named example.microsoft.com/report and displays the text «Click for report»:
=HYPERLINK(«http://example.microsoft.com/report/budget report.xls», «Click for report»)
The following example creates a link to cell F10 on the worksheet named Annual in the workbook Budget Report.xls, which is stored on the Internet at the location named example.microsoft.com/report. The cell on the worksheet that contains the link displays the contents of cell D1 as the jump text:
=HYPERLINK(«[http://example.microsoft.com/report/budget report.xls]Annual!F10», D1)
The following example creates a link to the range named DeptTotal on the worksheet named First Quarter in the workbook Budget Report.xls, which is stored on the Internet at the location named example.microsoft.com/report. The cell on the worksheet that contains the link displays the text «Click to see First Quarter Department Total»:
=HYPERLINK(«[http://example.microsoft.com/report/budget report.xls]First Quarter!DeptTotal», «Click to see First Quarter Department Total»)
To create a link to a specific location in a Microsoft Word document, you must use a bookmark to define the location you want to jump to in the document. The following example creates a link to the bookmark named QrtlyProfits in the document named Annual Report.doc located at example.microsoft.com:
=HYPERLINK(«[http://example.microsoft.com/Annual Report.doc]QrtlyProfits», «Quarterly Profit Report»)
In Excel for Windows, the following example displays the contents of cell D5 as the jump text in the cell and opens the file named 1stqtr.xls, which is stored on the server named FINANCE in the Statements share. This example uses a UNC path:
=HYPERLINK(«\FINANCEStatements1stqtr.xls», D5)
The following example opens the file 1stqtr.xls in Excel for Windows that is stored in a directory named Finance on drive D, and displays the numeric value stored in cell H10:
=HYPERLINK(«D:FINANCE1stqtr.xls», H10)
In Excel for Windows, the following example creates a link to the area named Totals in another (external) workbook, Mybook.xls:
=HYPERLINK(«[C:My DocumentsMybook.xls]Totals»)
In Microsoft Excel for the Macintosh, the following example displays «Click here» in the cell and opens the file named First Quarter that is stored in a folder named Budget Reports on the hard drive named Macintosh HD:
=HYPERLINK(«Macintosh HD:Budget Reports:First Quarter», «Click here»)
You can create links within a worksheet to jump from one cell to another cell. For example, if the active worksheet is the sheet named June in the workbook named Budget, the following formula creates a link to cell E56. The link text itself is the value in cell E56.
=HYPERLINK(«[Budget]June!E56», E56)
To jump to a different sheet in the same workbook, change the name of the sheet in the link. In the previous example, to create a link to cell E56 on the September sheet, change the word «June» to «September.»
When you click a link to an email address, your email program automatically starts and creates an email message with the correct address in the To box, provided that you have an email program installed.
-
On a worksheet, click the cell where you want to create a link.
You can also select an object, such as a picture or an element in a chart, that you want to use to represent the link.
-
On the Insert tab, in the Links group, click Link .
You can also right-click the cell or object and then click Link on the shortcut menu, or you can press Ctrl+K.
-
-
Under Link to, click E-mail Address.
-
In the E-mail address box, type the email address that you want.
-
In the Subject box, type the subject of the email message.
Note: Some web browsers and email programs may not recognize the subject line.
-
In the Text to display box, type the text that you want to use to represent the link.
-
To display helpful information when you rest the pointer on the link, click ScreenTip, type the text that you want in the ScreenTip text box, and then click OK.
You can also create a link to an email address in a cell by typing the address directly in the cell. For example, a link is created automatically when you type an email address, such as someone@example.com.
You can insert one or more external reference (also called links) from a workbook to another workbook that is located on your intranet or on the Internet. The workbook must not be saved as an HTML file.
-
Open the source workbook and select the cell or cell range that you want to copy.
-
On the Home tab, in the Clipboard group, click Copy.
-
Switch to the worksheet that you want to place the information in, and then click the cell where you want the information to appear.
-
On the Home tab, in the Clipboard group, click Paste Special.
-
Click Paste Link.
Excel creates an external reference link for the cell or each cell in the cell range.
Note: You may find it more convenient to create an external reference link without opening the workbook on the web. For each cell in the destination workbook where you want the external reference link, click the cell, and then type an equal sign (=), the URL address, and the location in the workbook. For example:
=’http://www.someones.homepage/[file.xls]Sheet1′!A1
=’ftp.server.somewhere/file.xls’!MyNamedCell
To select a hyperlink without activating the link to its destination, do one of the following:
-
Click the cell that contains the link, hold the mouse button until the pointer becomes a cross , and then release the mouse button.
-
Use the arrow keys to select the cell that contains the link.
-
If the link is represented by a graphic, hold down Ctrl, and then click the graphic.
You can change an existing link in your workbook by changing its destination, its appearance, or the text or graphic that is used to represent it.
Change the destination of a link
-
Select the cell or graphic that contains the link that you want to change.
Tip: To select a cell that contains a link without going to the link destination, click the cell and hold the mouse button until the pointer becomes a cross , and then release the mouse button. You can also use the arrow keys to select the cell. To select a graphic, hold down Ctrl and click the graphic.
-
On the Insert tab, in the Links group, click Link.
You can also right-click the cell or graphic and then click Edit Link on the shortcut menu, or you can press Ctrl+K.
-
-
In the Edit Hyperlink dialog box, make the changes that you want.
Note: If the link was created by using the HYPERLINK worksheet function, you must edit the formula to change the destination. Select the cell that contains the link, and then click the formula bar to edit the formula.
You can change the appearance of all link text in the current workbook by changing the cell style for links.
-
On the Home tab, in the Styles group, click Cell Styles.
-
Under Data and Model, do the following:
-
To change the appearance of links that have not been clicked to go to their destinations, right-click Link, and then click Modify.
-
To change the appearance of links that have been clicked to go to their destinations, right-click Followed Link, and then click Modify.
Note: The Link cell style is available only when the workbook contains a link. The Followed Link cell style is available only when the workbook contains a link that has been clicked.
-
-
In the Style dialog box, click Format.
-
On the Font tab and Fill tab, select the formatting options that you want, and then click OK.
Notes:
-
The options that you select in the Format Cells dialog box appear as selected under Style includes in the Style dialog box. You can clear the check boxes for any options that you don’t want to apply.
-
Changes that you make to the Link and Followed Link cell styles apply to all links in the current workbook. You can’t change the appearance of individual links.
-
-
Select the cell or graphic that contains the link that you want to change.
Tip: To select a cell that contains a link without going to the link destination, click the cell and hold the mouse button until the pointer becomes a cross , and then release the mouse button. You can also use the arrow keys to select the cell. To select a graphic, hold down Ctrl and click the graphic.
-
Do one or more of the following:
-
To change the link text, click in the formula bar, and then edit the text.
-
To change the format of a graphic, right-click it, and then click the option that you need to change its format.
-
To change text in a graphic, double-click the selected graphic, and then make the changes that you want.
-
To change the graphic that represents the link, insert a new graphic, make it a link with the same destination, and then delete the old graphic and link.
-
-
Right-click the hyperlink that you want to copy or move, and then click Copy or Cut on the shortcut menu.
-
Right-click the cell that you want to copy or move the link to, and then click Paste on the shortcut menu.
By default, unspecified paths to hyperlink destination files are relative to the location of the active workbook. Use this procedure when you want to set a different default path. Each time that you create a link to a file in that location, you only have to specify the file name, not the path, in the Insert Hyperlink dialog box.
Follow one of the steps depending on the Excel version you are using:
-
In Excel 2016, Excel 2013, and Excel 2010:
-
Click the File tab.
-
Click Info.
-
Click Properties, and then select Advanced Properties.
-
In the Summary tab, in the Hyperlink base text box, type the path that you want to use.
Note: You can override the link base address by using the full, or absolute, address for the link in the Insert Hyperlink dialog box.
-
-
In Excel 2007:
-
Click the Microsoft Office Button , click Prepare, and then click Properties.
-
In the Document Information Panel, click Properties, and then click Advanced Properties.
-
Click the Summary tab.
-
In the Hyperlink base box, type the path that you want to use.
Note: You can override the link base address by using the full, or absolute, address for the link in the Insert Hyperlink dialog box.
-
To delete a link, do one of the following:
-
To delete a link and the text that represents it, right-click the cell that contains the link, and then click Clear Contents on the shortcut menu.
-
To delete a link and the graphic that represents it, hold down Ctrl and click the graphic, and then press Delete.
-
To turn off a single link, right-click the link, and then click Remove Link on the shortcut menu.
-
To turn off several links at once, do the following:
-
In a blank cell, type the number 1.
-
Right-click the cell, and then click Copy on the shortcut menu.
-
Hold down Ctrl and select each link that you want to turn off.
Tip: To select a cell that has a link in it without going to the link destination, click the cell and hold the mouse button until the pointer becomes a cross , and then release the mouse button.
-
On the Home tab, in the Clipboard group, click the arrow below Paste, and then click Paste Special.
-
Under Operation, click Multiply, and then click OK.
-
On the Home tab, in the Styles group, click Cell Styles.
-
Under Good, Bad, and Neutral, select Normal.
-
A link opens another page or file when you click it. The destination is frequently another web page, but it can also be a picture, or an email address, or a program. The link itself can be text or a picture.
When a site user clicks the link, the destination is shown in a Web browser, opened, or run, depending on the type of destination. For example, a link to a page shows the page in the web browser, and a link to an AVI file opens the file in a media player.
How links are used
You can use links to do the following:
-
Navigate to a file or web page on a network, intranet, or Internet
-
Navigate to a file or web page that you plan to create in the future
-
Send an email message
-
Start a file transfer, such as downloading or an FTP process
When you point to text or a picture that contains a link, the pointer becomes a hand , indicating that the text or picture is something that you can click.
What a URL is and how it works
When you create a link, its destination is encoded as a Uniform Resource Locator (URL), such as:
http://example.microsoft.com/news.htm
file://ComputerName/SharedFolder/FileName.htm
A URL contains a protocol, such as HTTP, FTP, or FILE, a Web server or network location, and a path and file name. The following illustration defines the parts of the URL:
1. Protocol used (http, ftp, file)
2. Web server or network location
3. Path
4. File name
Absolute and relative links
An absolute URL contains a full address, including the protocol, the Web server, and the path and file name.
A relative URL has one or more missing parts. The missing information is taken from the page that contains the URL. For example, if the protocol and web server are missing, the web browser uses the protocol and domain, such as .com, .org, or .edu, of the current page.
It is common for pages on the web to use relative URLs that contain only a partial path and file name. If the files are moved to another server, any links will continue to work as long as the relative positions of the pages remain unchanged. For example, a link on Products.htm points to a page named apple.htm in a folder named Food; if both pages are moved to a folder named Food on a different server, the URL in the link will still be correct.
In an Excel workbook, unspecified paths to link destination files are by default relative to the location of the active workbook. You can set a different base address to use by default so that each time that you create a link to a file in that location, you only have to specify the file name, not the path, in the Insert Hyperlink dialog box.
-
On a worksheet, select the cell where you want to create a link.
-
On the Insert tab, select Hyperlink.
You can also right-click the cell and then select Hyperlink… on the shortcut menu, or you can press Ctrl+K.
-
Under Display Text:, type the text that you want to use to represent the link.
-
Under URL:, type the complete Uniform Resource Locator (URL) of the webpage you want to link to.
-
Select OK.
To link to a location in the current workbook, you can either define a name for the destination cells or use a cell reference.
-
To use a name, you must name the destination cells in the workbook.
How to define a name for a cell or a range of cells
Note: In Excel for the Web, you can’t create named ranges. You can only select an existing named range from the Named Ranges control. Alternately, you can open the file in the Excel desktop app, create a named range there, and then access this option from Excel for the web.
-
Select the cell or range of cells that you want to name.
-
On the Name Box box at the left end of the formula bar , type the name for the cells, and then press Enter.
Note: Names can’t contain spaces and must begin with a letter.
-
-
On the worksheet, select the cell where you want to create a link.
-
On the Insert tab, select Hyperlink.
You can also right-click the cell and then select Hyperlink… on the shortcut menu, or you can press Ctrl+K.
-
Under Display Text:, type the text that you want to use to represent the link.
-
Under Place in this document:, enter the defined name or cell reference.
-
Select OK.
When you click a link to an email address, your email program automatically starts and creates an email message with the correct address in the To box, provided that you have an email program installed.
-
On a worksheet, select the cell where you want to create a link.
-
On the Insert tab, select Hyperlink.
You can also right-click the cell and then select Hyperlink… on the shortcut menu, or you can press Ctrl+K.
-
Under Display Text:, type the text that you want to use to represent the link.
-
Under E-mail address:, type the email address that you want.
-
Select OK.
You can also create a link to an email address in a cell by typing the address directly in the cell. For example, a link is created automatically when you type an email address, such as someone@example.com.
You can use the HYPERLINK function to create a link to a URL.
Note: The Link_location can be a text string enclosed in quotation marks or a reference to a cell that contains the link as a text string.
To select a hyperlink without activating the link to its destination, do any of the following:
-
Select a cell by clicking it when the pointer is an arrow.
-
Use the arrow keys to select the cell that contains the link.
You can change an existing link in your workbook by changing its destination, its appearance, or the text that is used to represent it.
-
Select the cell that contains the link that you want to change.
Tip: To select a hyperlink without activating the link to its destination, use the arrow keys to select the cell that contains the link.
-
On the Insert tab, select Hyperlink.
You can also right-click the cell or graphic and then select Edit Hyperlink… on the shortcut menu, or you can press Ctrl+K.
-
In the Edit Hyperlink dialog box, make the changes that you want.
Note: If the link was created by using the HYPERLINK worksheet function, you must edit the formula to change the destination. Select the cell that contains the link, and then select the formula bar to edit the formula.
-
Right-click the hyperlink that you want to copy or move, and then select Copy or Cut on the shortcut menu.
-
Right-click the cell that you want to copy or move the link to, and then select Paste on the shortcut menu.
To delete a link, do one of the following:
-
To delete a link, select the cell and press Delete.
-
To turn off a link (delete the link but keep the text that represents it), right-click the cell and then select Remove Hyperlink.
Need more help?
You can always ask an expert in the Excel Tech Community or get support in the Answers community.
See Also
Remove or turn off links
Содержание
- Create or change a cell reference
- Need more help?
- Link Cells Between Sheets and Workbooks In Excel
- Why Link Cell Data in Excel
- How to Link Two Single Cells
- How to Link a Range of Cells
- How to Link a Cell With a Function
- How to Link Cells From Different Excel Files
- Become a Pro Microsoft Excel User
Create or change a cell reference
A cell reference refers to a cell or a range of cells on a worksheet and can be used in a formula so that Microsoft Office Excel can find the values or data that you want that formula to calculate.
In one or several formulas, you can use a cell reference to refer to:
Data from one or more contiguous cells on the worksheet.
Data contained in different areas of a worksheet.
Data on other worksheets in the same workbook.
The value in cell C2.
Cells A1 through F4
The values in all cells, but you must press Ctrl+Shift+Enter after you type in your formula.
Note: This functionality doesn’t work in Excel for the web.
The cells named Asset and Liability
The value in the cell named Liability subtracted from the value in the cell named Asset.
The cell ranges named Week1 and Week2
The sum of the values of the cell ranges named Week1 and Week 2 as an array formula.
Cell B2 on Sheet2
The value in cell B2 on Sheet2.
Click the cell in which you want to enter the formula.
In the formula bar , type = (equal sign).
Do one of the following:
Reference one or more cells To create a reference, select a cell or range of cells on the same worksheet.
You can drag the border of the cell selection to move the selection, or drag the corner of the border to expand the selection.
Reference a defined name To create a reference to a defined name, do one of the following:
Press F3, select the name in the Paste name box, and then click OK.
Note: If there is no square corner on a color-coded border, the reference is to a named range.
Do one of the following:
If you are creating a reference in a single cell, press Enter.
If you are creating a reference in an array formula (such A1:G4), press Ctrl+Shift+Enter.
The reference can be a single cell or a range of cells, and the array formula can be one that calculates single or multiple results.
Note: If you have a current version of Microsoft 365, then you can simply enter the formula in the top-left-cell of the output range, then press ENTER to confirm the formula as a dynamic array formula. Otherwise, the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER to confirm it. Excel inserts curly brackets at the beginning and end of the formula for you. For more information on array formulas, see Guidelines and examples of array formulas.
You can refer to cells that are on other worksheets in the same workbook by prepending the name of the worksheet followed by an exclamation point ( !) to the start of the cell reference. In the following example, the worksheet function named AVERAGE calculates the average value for the range B1:B10 on the worksheet named Marketing in the same workbook.
1. Refers to the worksheet named Marketing
2. Refers to the range of cells between B1 and B10, inclusively
3. Separates the worksheet reference from the cell range reference
Click the cell in which you want to enter the formula.
In the formula bar , type = (equal sign) and the formula you want to use.
Click the tab for the worksheet to be referenced.
Select the cell or range of cells to be referenced.
Note: If the name of the other worksheet contains nonalphabetical characters, you must enclose the name (or the path) within single quotation marks ( ‘).
Alternatively, you can copy and paste a cell reference and then use the Link Cells command to create a cell reference. You can use this command to:
Easily display important information in a more prominent position. Let’s say that you have a workbook that contains many worksheets, and on each worksheet is a cell that displays summary information about the other cells on that worksheet. To make these summary cells more prominent, you can create a cell reference to them on the first worksheet of the workbook, which enables you to see summary information about the whole workbook on the first worksheet.
Make it easier to create cell references between worksheets and workbooks. The Link Cells command automatically pastes the correct syntax for you.
Click the cell that contains the data you want to link to.
Press Ctrl+C, or go to the Home tab, and in the Clipboard group, click Copy .
Press Ctrl+V, or go to the Home tab, in the Clipboard group, click Paste .
By default, the Paste Options button appears when you paste copied data.
Click the Paste Options button, and then click Paste Link .
Double-click the cell that contains the formula that you want to change. Excel highlights each cell or range of cells referenced by the formula with a different color.
Do one of the following:
To move a cell or range reference to a different cell or range, drag the color-coded border of the cell or range to the new cell or range.
To include more or fewer cells in a reference, drag a corner of the border.
In the formula bar , select the reference in the formula, and then type a new reference.
Press F3, select the name in the Paste name box, and then click OK.
Press Enter, or, for an array formula, press Ctrl+Shift+Enter.
Note: If you have a current version of Microsoft 365, then you can simply enter the formula in the top-left-cell of the output range, then press ENTER to confirm the formula as a dynamic array formula. Otherwise, the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER to confirm it. Excel inserts curly brackets at the beginning and end of the formula for you. For more information on array formulas, see Guidelines and examples of array formulas.
Frequently, if you define a name to a cell reference after you enter a cell reference in a formula, you may want to update the existing cell references to the defined names.
Do one of the following:
Select the range of cells that contains formulas in which you want to replace cell references with defined names.
Select a single, empty cell to change the references to names in all formulas on the worksheet.
On the Formulas tab, in the Defined Names group, click the arrow next to Define Name, and then click Apply Names.
In the Apply names box, click one or more names, and then click OK.
Select the cell that contains the formula.
In the formula bar , select the reference that you want to change.
Press F4 to switch between the reference types.
For more information about the different type of cell references, see Overview of formulas.
Click the cell in which you want to enter the formula.
In the formula bar , type = (equal sign).
Select a cell or range of cells on the same worksheet. You can drag the border of the cell selection to move the selection, or drag the corner of the border to expand the selection.
Do one of the following:
If you are creating a reference in a single cell, press Enter.
If you are creating a reference in an array formula (such A1:G4), press Ctrl+Shift+Enter.
The reference can be a single cell or a range of cells, and the array formula can be one that calculates single or multiple results.
Note: If you have a current version of Microsoft 365, then you can simply enter the formula in the top-left-cell of the output range, then press ENTER to confirm the formula as a dynamic array formula. Otherwise, the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER to confirm it. Excel inserts curly brackets at the beginning and end of the formula for you. For more information on array formulas, see Guidelines and examples of array formulas.
You can refer to cells that are on other worksheets in the same workbook by prepending the name of the worksheet followed by an exclamation point ( !) to the start of the cell reference. In the following example, the worksheet function named AVERAGE calculates the average value for the range B1:B10 on the worksheet named Marketing in the same workbook.
1. Refers to the worksheet named Marketing
2. Refers to the range of cells between B1 and B10, inclusively
3. Separates the worksheet reference from the cell range reference
Click the cell in which you want to enter the formula.
In the formula bar , type = (equal sign) and the formula you want to use.
Click the tab for the worksheet to be referenced.
Select the cell or range of cells to be referenced.
Note: If the name of the other worksheet contains nonalphabetical characters, you must enclose the name (or the path) within single quotation marks ( ‘).
Double-click the cell that contains the formula that you want to change. Excel highlights each cell or range of cells referenced by the formula with a different color.
Do one of the following:
To move a cell or range reference to a different cell or range, drag the color-coded border of the cell or range to the new cell or range.
To include more or fewer cells in a reference, drag a corner of the border.
In the formula bar , select the reference in the formula, and then type a new reference.
Press Enter, or, for an array formula, press Ctrl+Shift+Enter.
Note: If you have a current version of Microsoft 365, then you can simply enter the formula in the top-left-cell of the output range, then press ENTER to confirm the formula as a dynamic array formula. Otherwise, the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER to confirm it. Excel inserts curly brackets at the beginning and end of the formula for you. For more information on array formulas, see Guidelines and examples of array formulas.
Select the cell that contains the formula.
In the formula bar , select the reference that you want to change.
Press F4 to switch between the reference types.
For more information about the different type of cell references, see Overview of formulas.
Need more help?
You can always ask an expert in the Excel Tech Community or get support in the Answers community.
Источник
Link Cells Between Sheets and Workbooks In Excel
Microsoft Excel is a very powerful multi-purpose tool that anyone can use. But if you’re someone who works with spreadsheets every day, you might need to know more than just the basics of using Excel. Knowing a few simple tricks can go a long way with Excel. A good example is knowing how to link cells in Excel between sheets and workbooks.
Learning this will save a lot of time and confusion in the long run.
Why Link Cell Data in Excel
Being able to reference data across different sheets is a valuable skill for a few reasons.
First, it will make it easier to organize your spreadsheets. For example, you can use one sheet or workbook for collecting raw data, and then create a new tab or a new workbook for reports and/or summations.
Once you link the cells between the two, you only need to change or enter new data in one of them and the results will automatically change in the other. All without having to move back and forth between different spreadsheets.
Second, this trick will avoid duplicating the same numbers in multiple spreadsheets. This will reduce your working time and the possibility of making calculation mistakes.
In the following article, you’ll learn how to link single cells in other worksheets, link a range of cells, and how to link cells from different Excel documents.
How to Link Two Single Cells
Let’s start by linking two cells located in different sheets (or tabs) but in the same Excel file. In order to do that, follow these steps.
- In Sheet2 type an equal symbol (=) into a cell.
- Go to the other tab (Sheet1) and click the cell that you want to link to.
- Press Enter to complete the formula.
Now, if you click on the cell in Sheet2, you’ll see that Excel writes the path for you in the formula bar.
For example, =Sheet1!C3, where Sheet1 is the name of the sheet, C3 is the cell you’re linking to, and the exclamation mark (!) is used as a separator between the two.
Using this approach, you can link manually without leaving the original worksheet at all. Just type the reference formula directly into the cell.
Note: If the sheet name contains spaces (for example Sheet 1), then you need to put the name in single quotation marks when typing the reference into a cell. Like =’Sheet 1′!C3. That’s why it’s sometimes easier and more reliable to let Excel write the reference formula for you.
How to Link a Range of Cells
Another way you can link cells in Excel is by linking a whole range of cells from different Excel tabs. This is useful when you need to store the same data in different sheets without having to edit both sheets.
In order to link more than one cell in Excel, follow these steps.
- In the original tab with data (Sheet1), highlight the cells that you want to reference.
- Copy the cells (Ctrl/Command + C, or right click and choose Copy).
- Go to the other tab (Sheet2) and click on the cell (or cells) where you want to place the links.
- Right click on the cell(-s) and select Paste Special…
- At the bottom left corner of the menu choose Paste Link.
When you click on the newly linked cells in Sheet2 you can see the references to the cells from Sheet1 in the formula tab. Now, whenever you change the data in the chosen cells in Sheet1, it will automatically change the data in the linked cells in Sheet2.
How to Link a Cell With a Function
Linking to a cluster of cells can be useful when you do summations and want to keep them on a sheet separate from the original raw data.
Let’s say you need to write a SUM function in Sheet2 that will link to a number of cells from Sheet1. In order to do that, go to Sheet2 and click on the cell where you want to place the function. Write the function as normal, but when it comes to choosing the range of cells, go to the other sheet and highlight them as described above.
You will have =SUM(Sheet1!C3:C7), where the SUM function sums the contents from cells C3:C7 in Sheet1. Press Enter to complete the formula.
How to Link Cells From Different Excel Files
The process of linking between different Excel files (or workbooks) is virtually the same as above. Except, when you paste the cells, paste them in a different spreadsheet instead of a different tab. Here’s how to do it in 4 easy steps.
- Open both Excel documents.
- In the second file (Help Desk Geek), choose a cell and type an equal symbol (=).
- Switch to the original file (Online Tech Tips), and click on the cell that you want to link to.
- Press Enter to complete the formula.
Now the formula for the linked cell also has the other workbook name in square brackets.
If you close the original Excel file and look at the formula again, you will see that it now also has the entire document’s location. Meaning that if you move the original file that you linked to another place or rename it, the links will stop working. That’s why it’s more reliable to keep all the important data in the same Excel file.
Become a Pro Microsoft Excel User
Linking cells between sheets is only one example of how you can filter data in Excel and keep your spreadsheets organized. Check out some other Excel tips and tricks that we put together to help you become an advanced user.
What other neat Excel lifehacks do you know and use? Do you know any other creative ways to link cells in Excel? Share them with us in the comment section below.
Источник
How to merge and center
- Highlight the cells you want to merge and center.
- Click on “Merge & Center,” which should be displayed in the “Alignment” section of the toolbar at the top of your screen. The top row of cells here is selected.
- The cells will now be merged with the data centered in the merged cell.
Contents
- 1 How do you link two cells in Excel?
- 2 Can you join cells in Excel?
- 3 How do you automatically link cells in Excel?
- 4 How do you link cells?
- 5 How do you merge cells in Excel without losing text?
- 6 How do I merge cells in a table in Excel?
- 7 How do I enable merge and center in Excel?
- 8 How do you link cells in sheets?
- 9 How do you share a link in Excel?
- 10 How do I link cells in the same worksheet in Excel?
- 11 How do I merge rows in Excel without losing data?
- 12 How do I merge rows but not columns?
- 13 Can cells be merged in a table?
- 14 How do I merge cells in Excel 2019?
- 15 Why won’t Excel let me merge cells?
- 16 How do you unlock merge cells in Excel?
- 17 What is the shortcut key to merge cells in Excel?
- 18 How do you reference a cell in another worksheet?
- 19 Why do you link the spreadsheet data?
- 20 What is a hyperlink in computer?
How do you link two cells in Excel?
Combine data with the Ampersand symbol (&)
- Select the cell where you want to put the combined data.
- Type = and select the first cell you want to combine.
- Type & and use quotation marks with a space enclosed.
- Select the next cell you want to combine and press enter. An example formula might be =A2&” “&B2.
Can you join cells in Excel?
To merge a group of cells:
Highlight or select a range of cells. Right-click on the highlighted cells and select Format Cells…. Click the Alignment tab and place a checkmark in the checkbox labeled Merge cells.
How do you automatically link cells in Excel?
Go to Sheet2, click in cell A1 and click on the drop-down arrow of Paste button on the Home tab and select Paste Link button. It will generate a link by automatically entering the formula =Sheet1! A1 .
How do you link cells?
Create a link to a worksheet in the same workbook
- Select the cell or cells where you want to create the external reference.
- Type = (equal sign).
- Switch to the worksheet that contains the cells that you want to link to.
- Select the cell or cells that you want to link to and press Enter.
How do you merge cells in Excel without losing text?
How to merge cells in Excel without losing data
- Select all the cells you want to combine.
- Make the column wide enough to fit the contents of all cells.
- On the Home tab, in the Editing group, click Fill > Justify.
- Click Merge and Center or Merge Cells, depending on whether you want the merged text to be centered or not.
How do I merge cells in a table in Excel?
Merge cells
- In the table, drag the pointer across the cells that you want to merge.
- Click the Layout tab.
- In the Merge group, click Merge Cells.
How do I enable merge and center in Excel?
Merge and Center Cells in Excel
- Select the adjacent cells you want a merge.
- On the Home button, go-to alignment group, click on merge and center cells in excel.
- Click on merge and center cell in excel to combine the data into one cell.
How do you link cells in sheets?
Link to data in a spreadsheet
- In Sheets, click the cell you want to add the link to.
- Click Insert. Link.
- In the Link box, click Select a range of cells to link.
- Highlight the cell or range of cells you want to link to.
- Click OK.
- (Optional) Change the link text.
- Click Apply.
Share a workbook in Excel for the web
- Select File > Share > Share with People (or select Share in the top right).
- In the Enter a name or email address box, type the email addresses of people you want to share with.
How do I link cells in the same worksheet in Excel?
Select a cell where you want to insert a hyperlink. Right-click on the cell and choose the Hyperlink option from the context menu. The Insert Hyperlink dialog window appears on the screen. Choose Place in This Document in the Link to section if your task is to link the cell to a specific location in the same workbook.
How do I merge rows in Excel without losing data?
Combine rows in Excel with Merge Cells add-in
- Select the range of cells where you want to merge rows.
- Go to the Ablebits Data tab > Merge group, click the Merge Cells arrow, and then click Merge Rows into One.
- This will open the Merge Cells dialog box with the preselected settings that work fine in most cases.
How do I merge rows but not columns?
Select the range of cells containing the values you need to merge, and expand the selection to the right blank column to output the final merged values. Then click Kutools > Merge & Split > Combine Rows, Columns or Cells withut Losing Data. 2.
Can cells be merged in a table?
You can combine two or more table cells located in the same row or column into a single cell.Select the cells that you want to merge. Under Table Tools, on the Layout tab, in the Merge group, click Merge Cells.
How do I merge cells in Excel 2019?
How to merge cells
- Highlight the cells you want to merge.
- Click on the arrow just next to “Merge and Center.”
- Scroll down to click on “Merge Cells”. This will merge both rows and columns into one large cell, with alignment intact.
- This will merge the content of the upper-left cell across all highlighted cells.
Why won’t Excel let me merge cells?
Actually, there are two conditions that can cause the Merge and Center tool to be unavailable. You should check, first, to see if your worksheet is protected.If you turn off sharing (if it is on) and disable protection (if the worksheet is protected), then the tool should once again be available.
How do you unlock merge cells in Excel?
1. Unlock all cells on the sheet.
- Press Ctrl + A or click the Select All button.
- Press Ctrl + 1 to open the Format Cells dialog (or right-click any of the selected cells and choose Format Cells from the context menu).
- In the Format Cells dialog, switch to the Protection tab, uncheck the Locked option, and click OK.
What is the shortcut key to merge cells in Excel?
How to Merge Cells in Excel Shortcut
- Merge Cells: ALT H+M+M.
- Merge & Center: ALT H+M+C.
- Merge Across: ALT H+M+A.
- Unmerge Cells: ALT H+M+U.
How do you reference a cell in another worksheet?
To reference a cell or range of cells in another worksheet in the same workbook, put the worksheet name followed by an exclamation mark (!) before the cell address. For example, to refer to cell A1 in Sheet2, you type Sheet2!A1. For example, to refer to cells A1:A10 in Sheet2, you type Sheet2!A1:A10.
Why do you link the spreadsheet data?
✦ Link Worksheet Data – Method Two ✦
As in the example above, we are bringing in the value of cell B6 from the Paris worksheet. The destination worksheet displays the formula value, and the link formula displays in the formula bar (figure 4).
What is a hyperlink in computer?
In a website, a hyperlink (or link) is an item like a word or button that points to another location. When you click on a link, the link will take you to the target of the link, which may be a webpage, document or other online content.
Working with a lot of data can be a daunting task. However, knowing a few hacks and tricks can be useful for someone who is dealing with extensive data in Excel on a daily basis. One great example is how to link cells, worksheets, or workbooks in Excel. Linking in Excel will save you time and help you have more polished spreadsheets.
There are different ways to link cells in Excel. In this tutorial, we are going to cover certain aspects of the matter, including several solutions and methods.
The two main ways of linking cells in Excel are:
- External reference formula (Link)
- Excel hyperlink function
It is important to note that hyperlinks and external references are both very useful forms of linking different worksheets or workbooks; nevertheless, they have different purposes or uses. Here, we intend to focus on the external reference in more detail.
Linking Cells Between Sheets and Workbooks in Excel: External Reference
In Excel, you can basically use an external reference formula to refer to the content of cells on a worksheet in another workbook. This is also called linking, which is a more commonly used term. In other words, linking is referencing to:
- Another cell
- Range of cells
- A defined name
But, why is referencing useful, and how does it save time and effort?
Why Link Cells in Excel
Linking cells in Excel is beneficial when you have large volumes of data, and it is impractical to keep large worksheets in the same workbook.
Merging data
- You can use external references to integrate relevant data into a summary workbook.
- You can link several workbooks which belong to different members of the team or different departments.
- Once the source workbooks are changed, you won’t need to manually change the summary worksheet.
Giving different views of data
- You can generate a report workbook containing links to only the pertinent data.
- You can have all your other data on other source workbooks.
Organize large complex models
- You organize a complicated model by breaking it down into multiple interdependent workbooks.
- You can work on any of the sheets without opening all the related sheets.
- You can have smaller workbooks which are easier to manage.
- Smaller workbooks need less memory. They are faster to open, save and calculate
Linking Cells in Different Worksheets
Let’s start with the most basic form of external reference, which is to create a link to another worksheet (Tab) in the same workbook. Follow these steps:
- Select the cell where you want to create the link.
- Type an equal sign ‘=’.
- Go to the other worksheet that contains the cell you want to link to.
- Select the cell that you want to link to, and press Enter.
- Excel will automatically return to the original worksheet and display the value of the cell you selected.
Note: If you make any changes to the figures in the original worksheet, the value will be automatically updated in the target sheet.
What does the path represent? In this example, =Sheet2!D5, Sheet2 is the number of the sheet, and D5 is the cell that’s been linked to. The exclamation ‘!’ mark acts as a separator.
Linking a Range of Cells Using a Function
In this part, we are going to see how we can link a range of cells between worksheets in Excel. In other words, we are referencing data from a different worksheet. This is particularly useful when you have a large volume of data and want to have the results in another worksheet.
In our example, we have sales volume by quarter. We want to get the averages of sale volume for 2018, 2019, and 2020; however, we don’t want to display any of the raw data. So, we open a separate worksheet or tab. Now, follow these steps:
- Select the cell where you want to display the average.
- Type in the AVERAGE formula. Start with an equal sign, then type in AVERAGE and then open parentheses like so:
=average (
Related post: How to Calculate Average in Excel
- Now, go to the original sheet containing the raw data by clicking on the sheet tab. We want the data for 2018. So, select the data or the range of cells you want, and press ENTER to complete the path.
- When you press ENTER, Excel takes you back to the sheet where you entered the formula. And it’s going to have all the formulas there.
Note: As you can see, the formula includes the name of the sheet.
This is the formula: =AVARAGE(Sheet2!D2:D5) - We will do the same for the rest of the data, and this is the result.
Linking to a Defined Name in Another Workbook
This time we want to link different workbooks instead of worksheets. Our aim is to create an external reference to a defined name in another workbook.
Here, we have a workbook that contains budget data, and it is defined as Budget. Let’s quickly go through how to define a name in Excel. If you’re familiar with the process, skip this part.
Creating an Excel Name Range
- Select the range of cells you want to name.
- Type the name in the Name Box.
- Press, Enter.
Now, let’s go through the steps to link two different workbooks. Follow these instructions to create an external reference to a defined name in another workbook.
- Open the workbook containing the Budget data and the workbook that will contain the external reference.
- Select the cell or a range of cells you want to link to.
- Type = (equal sign).
- Switch to the other workbook and the sheet with the data you want to link. To do this: Go to View in the Menu bar. Then, find the Switch Windows option. When you click on it, you’ll notice a list of all the open workbooks. Select the workbook you want to pull data from.
- Press F3, the Paste Name window will pop up. Select the name you want to link, click OK, and press ENTER.
- Excel will automatically return to the other workbook and display the values from the range you selected.
Voila! This is how you can link two different workbooks with no sweat.
Bottom Line
In this tutorial, we covered 3 different methods, linking cells between sheets, linking a range of cells using the Average Function, and linking to a defined name in another workbook. The essential element here is the Equal sign ‘=.’ Every path you create for external referencing starts with an = (equal sign).
Did you find this tutorial useful? If so, check out our blogs and youtube channel. We offer customized Microsoft Excel solutions for businesses. If you find yourself backlogged and doing the same task over and over again, we are here to help. Our Excel programmers and consultant can automate and minimize your task.
FAQ
How do I link data from one Excel sheet to another?
You can simply type in = (equal sign) in a cell. Then click on the sheet, select the cell or range of cells you want and press enter. If you are familiar with formulas or paths, you can directly type the formula.
What is the Average formula?
Average is calculated by adding a group of numbers and then dividing the total sum by the total number of items. The Average formulas used in Excel are:
=AVERAGE(number1, [number2], …) …
=AVERAGE(B2:B11)
What are links in Excel?
External reference or a more commonly used term ‘linking’ is when you use, display or pull in data that is stored in another cell, worksheet, or even workbook. In other words, by creating external references, you can access the content of cells in another workbook, sheet, etc.
In this tutorial I am going to cover how to link cells together. This is a useful feature of Excel as you can link cells in an Excel Formula instead of typing in the values each time.
Linking cells allows you to perform calculations based on the value of cells instead of typing in values. This means that you can copy Formulas over multiple cells and should the value of any linked cell change, any Formula which relies on the changed cells value will also change. Starting with a simple example of addition, I could calculate the total of a few values using the following formula:
However should I want to change any of the values in the Formula I would have to re-type it. For this reason it is better to link cells for values of a Formula/Function. To link a cell, you start by creating a Formula using the equals sign (=). You then click on the cell you want to link:
As I am looking to add together all the values in cells A1:D1, I hit the plus sign (+) in between selecting each cell. Alternatively you can type the cell references instead of selecting with the mouse.
Now that my cells are linked if I change one of their values, the cell with my addition formula (G3) will change to. This works because when a cell is linked in an Excel Formula, the calculation will be based on the values within the linked cells. If I change Cell A1 to 7 the value in cell G3 changes to 16 without me having to change the formula.
Linking cells also works within functions:
Notice how when using the Sum Function I just clicked and drag to select all the cells I require instead of selecting each cell individually. This works the same way as if I had typed =SUM(A1,B1,C1,D1) into cell I3 but is easier and quicker.
Another useful feature of linked cells is that when you move a cell which is referenced by a particular Function or Formula, the cell references within the Function/Formula will automatically update to the new cell reference where the selected cell(s) was moved to. For example, if I move cell C1 to D10:
The reference formula in cell G3 updates to D10 automatically and remains with the value 16. Its important to note here that cell references will only be automatically updated if they are directly referenced. Notice how the value in cell I3 decreases to 13. This is because I used a cell range to reference the cells. Had I moved the whole range (A1:D1) together then the cell references would have been maintained.
Linking Cells Across Different Worksheets in the Workbook
Cell referencing/linking also works across different worksheets. For the first few examples I was working from the Sum_Values sheet. I now want to use the Average Function but the values I need for this are on the Average_Values sheet. Referencing a different sheet is a similar process, just start by entering the Formula/Function you wish to use then before you select a cell, select the different sheet, then the cell.
You then select the sheet which contains the values you require:
And finally the cells you wish to use in your formula:
You then hit enter and you will be returned to the original sheet that you entered the formula on.
You can also type in the cell reference. Start with the sheet name (Average_Values) followed by an exclamation mark (!) then the cells you wish to select (A1:D1). Altogether this gives:
=Average(Average_Values!A1:D1)
Similar Content on TeachExcel
Loop through a Range of Cells in Excel VBA/Macros
Tutorial: How to use VBA/Macros to iterate through each cell in a range, either a row, a column, or …
Limit the Total Amount a User Can Enter into a Range of Cells in Excel
Tutorial: How to limit the amount that a user can enter into a range of cells in Excel. This works…
How to Arrange Data within Cells in Excel
Tutorial: In this tutorial I am going to look at cell alignment / arrangement. These features allow …
Center Titles Across Multiple Cells in Excel
Tutorial:
How to center a title across multiple cells in Excel in order to make good looking titles…
Select Ranges of Cells in Excel using Macros and VBA
Tutorial: This Excel VBA tutorial focuses specifically on selecting ranges of cells in Excel. This…
Allow Only Certain People to Edit Specific Cells in Excel
Tutorial:
How to allow only certain people to edit certain cells or ranges in Excel.
This is a sec…