Hyperlink formulas in excel

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2016 for Mac Excel 2013 Excel 2010 Excel 2007 Excel for Mac 2011 Excel Starter 2010 More…Less

This article describes the formula syntax and usage of the HYPERLINK function in Microsoft Excel.

Description

The HYPERLINK function creates a shortcut that jumps to another location in the current workbook, or opens a document stored on a network server, an intranet, or the Internet. When you click a cell that contains a HYPERLINK function, Excel jumps to the location listed, or opens the document you specified.

Syntax

HYPERLINK(link_location, [friendly_name])

The HYPERLINK function syntax has the following arguments:

  • Link_location    Required. The path and file name to the document to be opened. 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 that is stored on a hard disk drive. The path can also 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.

    Note   Excel for the web the HYPERLINK function is valid for web addresses (URLs) only. 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.

    If the jump specified in link_location does not exist or cannot be navigated, an error appears when you click the cell.

  • Friendly_name    Optional. 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.

Remark

In the Excel desktop application, to select a cell that contains a hyperlink without jumping to the hyperlink destination, click the cell and hold the mouse button until the pointer becomes a cross Excel selection cursor, then release the mouse button. In Excel for the web, select a cell by clicking it when the pointer is an arrow; jump to the hyperlink destination by clicking when the pointer is a pointing hand.

Examples

Example

Result

=HYPERLINK(«http://example.microsoft.com/report/budget report.xlsx», «Click for report»)

Opens a workbook saved at http://example.microsoft.com/report. The cell displays «Click for report» as its jump text.

=HYPERLINK(«[http://example.microsoft.com/report/budget report.xlsx]Annual!F10», D1)

Creates a hyperlink to cell F10 on the Annual worksheet in the workbook saved at http://example.microsoft.com/report. The cell on the worksheet that contains the hyperlink displays the contents of cell D1 as its jump text.

=HYPERLINK(«[http://example.microsoft.com/report/budget report.xlsx]’First Quarter’!DeptTotal», «Click to see First Quarter Department Total»)

Creates a hyperlink to the range named DeptTotal on the First Quarter worksheet in the workbook saved at http://example.microsoft.com/report. The cell on the worksheet that contains the hyperlink displays «Click to see First Quarter Department Total» as its jump text.

=HYPERLINK(«http://example.microsoft.com/Annual Report.docx]QrtlyProfits», «Quarterly Profit Report»)

To create a hyperlink to a specific location in a Word file, you use a bookmark to define the location you want to jump to in the file. This example creates a hyperlink to the bookmark QrtlyProfits in the file Annual Report.doc saved at http://example.microsoft.com.

=HYPERLINK(«\FINANCEStatements1stqtr.xlsx», D5)

Displays the contents of cell D5 as the jump text in the cell and opens the workbook saved on the FINANCE server in the Statements share. This example uses a UNC path.

=HYPERLINK(«D:FINANCE1stqtr.xlsx», H10)

Opens the workbook 1stqtr.xlsx that is stored in the Finance directory on drive D, and displays the numeric value that is stored in cell H10.

=HYPERLINK(«[C:My DocumentsMybook.xlsx]Totals»)

Creates a hyperlink to the Totals area in another (external) workbook, Mybook.xlsx.

=HYPERLINK(«[Book1.xlsx]Sheet1!A10″,»Go to Sheet1 > A10»)

To jump to a different location in the current worksheet, include both the workbook name, and worksheet name like this, where Sheet1 is the current worksheet.

=HYPERLINK(«[Book1.xlsx]January!A10″,»Go to January > A10»)

To jump to a different location in the current worksheet, include both the workbook name, and worksheet name like this, where January is another worksheet in the workbook.

=HYPERLINK(CELL(«address»,January!A1),»Go to January > A1″)

To jump to a different location in the current worksheet without using the fully qualified worksheet reference ([Book1.xlsx]), you can use this, where CELL(«address») returns the current workbook name.

=HYPERLINK($Z$1)

To quickly update all formulas in a worksheet that use a HYPERLINK function with the same arguments, you can place the link target in another cell on the same or another worksheet, and then use an absolute reference to that cell as the link_location in the HYPERLINK formulas. Changes that you make to the link target are immediately reflected in the HYPERLINK formulas.

Need more help?

Date yes Add (Subtract) Days to a Date Concatenate Dates Convert Date to Number Convert Date to Text Month Name to Number Create Date Range from Dates Day Number of Year Month Name from Date First Day of Month Add (Subtract) Weeks to a Date If Functions with Dates Max Date Number of Days Between Dates Number of Days in a Month Number of Weeks Between Dates Number of Years Between Dates Split Date & Time into Separate Cells Countdown Remaining Days Insert Dates Random Date Generator Using Dynamic Ranges — Year to Date Values Add (Subtract) Years to a Date Date Formula Examples Extract Day from Date Get Day Name from Date Count Days Left in Month / Year Count Workdays Left in Month / Year Get Last Day of Month Last Business Day of Month / Year Number of Work / Business Days in Month Weekday Abbreviations Auto Populate Dates Number of Months Between Dates Quarter from a Date Years of Service Change Date Format Compare Dates Time yes Add (Subtract) Hours to Time Add (Subtract) Minutes to Time Add (Subtract) Seconds to Time Add Up time (Total Time) Time Differences Change Time Format Convert Minutes to Hours Convert Time to Decimal Convert Time to Hours Convert Time to Minutes Convert Time to Seconds Military Time Round Time to Nearest 15 Minutes Overtime Calculator Number of Hours Between Times Convert Seconds to Minutes, Hours, or Time Count Hours Worked Time Differences Time Format — Show Minutes Seconds Text yes Add Commas to Cells Get First Word from Text Capitalize First Letter Clean & Format Phone #s Remove Extra Trailing / Leading Spaces Add Spaces to Cell Assign Number Value to Text Combine Cells with Comma Combine First and Last Names Convert Text String to Date Convert Text to Number Extract Text From Cell Get Last Word Remove Unwated Characters Extract Text Before or After Character How to Split Text String by Space, Comma, & More Remove Special Characters Remove First Characters from Left Substitute Multiple Values Switch First & Last Names w/ Commas Remove Specific Text from a Cell Extract Text Between Characters (Ex. Parenthesis) Add Leading Zeros to a Number Remove Line Breaks from Text Remove all Numbers from Text Reverse Text Remove Non-Numeric Characters Remove Last Character(s) From Right Separate First and Last Names Separate Text & Numbers Round yes Round Formulas Round Price to Nearest Dollar or Cent Round to Nearest 10, 100, or 1000 Round to Nearest 5 or .5 Round Percentages Round to Significant Figures Count yes Count Blank and Non-blank Cells Count Cells Between Two Numbers Count Cells not Equal to Count if Cells are in Range Count Times Word Appears in Cell Count Words in Cell Count Specific Characters in Column Count Total Number of Characters in Column Count Cells that Equal one of two Results Count Cells that do not Contain Count Cells that Contain Specific Text Count Unique Values in Range Countif — Multiple Criteria Count Total Number of Cells in Range Count Cells with Any Text Count Total Cells in a Table Lookup yes Two Dimensional VLOOKUP VLOOKUP Simple Example Vlookup — Multiple Matches Case Sensitive Lookup Case Sensitive VLOOKUP Sum if — VLOOKUP Case Sensitive Lookup Case Sensitive VLOOKUP Find Duplicates w/ VLOOKUP or MATCH INDEX MATCH MATCH Lookup — Return Cell Address (Not Value) Lookup Last Value in Column or Row Reverse VLOOKUP (Right to Left) Risk Score Bucket with VLOOKUP Sum with a VLOOKUP Function VLOOKUP & INDIRECT VLOOKUP Concatenate VLOOKUP Contains (Partial Match) 17 Reasons Why Your XLOOKUP is Not Working Double (Nested) XLOOKUP — Dynamic Columns IFERROR (& IFNA) XLOOKUP Lookup Min / Max Value Nested VLOOKUP Top 11 Alternatives to VLOOKUP (Updated 2022!) VLOOKUP – Dynamic Column Reference VLOOKUP – Fix #N/A Error VLOOKUP – Multiple Sheets at Once VLOOKUP & HLOOKUP Combined VLOOKUP & MATCH Combined VLOOKUP Between Worksheets or Spreadsheets VLOOKUP Duplicate Values VLOOKUP Letter Grades VLOOKUP Return Multiple Columns VLOOKUP Returns 0? Return Blank Instead VLOOKUP w/o #N/A Error XLOOKUP Multiple Sheets at Once XLOOKUP Between Worksheets or Spreadsheets XLOOKUP by Date XLOOKUP Duplicate Values XLOOKUP Multiple Criteria XLOOKUP Return Multiple Columns XLOOKUP Returns 0? Return Blank Instead XLOOKUP Text XLOOKUP with IF XLOOKUP With If Statement Misc. yes Sort Multiple Columns Use Cell Value in Formula Percentage Change Between Numbers Percentage Breakdown Rank Values Add Spaces to Cell CAGR Formula Average Time Decimal Part of Number Integer Part of a Number Compare Items in a List Dealing with NA() Errors Get Worksheet Name Wildcard Characters Hyperlink to Current Folder Compound Interest Formula Percentage Increase Create Random Groups Sort with the Small and Large Functions Non-volatile Function Alternatives Decrease a Number by a Percentage Calculate Percent Variance Profit Margin Calculator Convert Column Number to Letter Get Full Address of Named Range Insert File Name Insert Path Latitute / Longitude Functions Replace Negative Values Reverse List Range Convert State Name to Abbreviation Create Dynamic Hyperlinks Custom Sort List with Formula Data Validation — Custom Formulas Dynamic Sheet Reference (INDIRECT) Reference Cell in Another Sheet or Workbook Get Cell Value by Address Get Worksheet Name Increment Cell Reference List Sheet Names List Skipped Numbers in Sequence Return Address of Max Value in Range Search by Keywords Select Every Other (or Every nth) Row Basics yes Cell Reference Basics — A1, R1C1, 3d, etc. Add Up (Sum) Entire Column or Row Into to Dynamic Array Formulas Conversions yes Convert Time Zones Convert Celsius to Fahrenheit Convert Pounds to Kilograms Convert Time to Unix Time Convert Feet to Meters Convert Centimeters to Inches Convert Kilometers to Miles Convert Inches to Feet Convert Date to Julian Format Convert Column Letter to Number Tests yes Test if a Range Contains any Text Test if any Cell in Range is Number Test if a Cell Contains a Specific Value Test if Cell Contains Any Number Test if Cell Contains Specific Number Test if Cell is Number or Text If yes Percentile If Subtotal If Sumproduct If Large If and Small If Median If Concatentate If Max If Rank If TEXTJOIN If Sum yes Sum if — Begins With / Ends With Sum if — Month or Year to Date Sum if — By Year Sum if — Blank / Non-Blank Sum if — Horizontal Sum Count / Sum If — Cell Color INDIRECT Sum Sum If — Across Multiple Sheets Sum If — By Month Sum If — Cells Not Equal To Sum If — Not Blank Sum if — Between Values Sum If — Week Number Sum Text Sum if — By Category or Group Sum if — Cell Contains Specific Text (Wildcards) Sum if — Date Rnage Sum if — Dates Equal Sum if — Day of Week Sum if — Greater Than Sum if — Less Than Average yes Average Non-Zero Values Average If — Not Blank Average — Ignore 0 Average — Ignore Errors Math yes Multiplication Table Cube Roots nth Roots Square Numbers Square Roots Calculations yes Calculate a Ratio Calculate Age KILLLLLLL Calculate Loan Payments GPA Formula Calculate VAT Tax How to Grade Formulas Find yes Find a Number in a Column / Workbook Find Most Frequent Numbers Find Smallest n Values Find nth Occurance of Character in Text Find and Extract Number from String Find Earliest or Latest Date Based on Criteria Find First Cell with Any Value Find Last Row Find Last Row with Data Find Missing Values Find Largest n Values Most Frequent Number Conditional Formatting yes Conditional Format — Dates & Times Conditional Format — Highlight Blank Cells New Functions XLOOKUP Replaces VLOOKUP, HLOOKUP, and INDEX / MATCH Logical yes AND Checks whether all conditions are met. TRUE/FALSE IF If condition is met, do something, if not, do something else. IFERROR If result is an error then do something else. NOT Changes TRUE to FALSE and FALSE to TRUE. OR Checks whether any conditions are met. TRUE/FALSE XOR Checks whether one and only one condition is met. TRUE/FALSE Lookup & Reference yes FALSE The logical value: FALSE. TRUE The logical value: TRUE. ADDRESS Returns a cell address as text. AREAS Returns the number of areas in a reference. CHOOSE Chooses a value from a list based on it’s position number. COLUMN Returns the column number of a cell reference. COLUMNS Returns the number of columns in an array. HLOOKUP Lookup a value in the first row and return a value. HYPERLINK Creates a clickable link. INDEX Returns a value based on it’s column and row numbers. INDIRECT Creates a cell reference from text. LOOKUP Looks up values either horizontally or vertically. MATCH Searches for a value in a list and returns its position. OFFSET Creates a reference offset from a starting point. ROW Returns the row number of a cell reference. ROWS Returns the number of rows in an array. TRANSPOSE Flips the oriention of a range of cells. VLOOKUP Lookup a value in the first column and return a value. Date & Time yes DATE Returns a date from year, month, and day. DATEDIF Number of days, months or years between two dates. DATEVALUE Converts a date stored as text into a valid date DAY Returns the day as a number (1-31). DAYS Returns the number of days between two dates. DAYS360 Returns days between 2 dates in a 360 day year. EDATE Returns a date, n months away from a start date. EOMONTH Returns the last day of the month, n months away date. HOUR Returns the hour as a number (0-23). MINUTE Returns the minute as a number (0-59). MONTH Returns the month as a number (1-12). NETWORKDAYS Number of working days between 2 dates. NETWORKDAYS.INTL Working days between 2 dates, custom weekends. NOW Returns the current date and time. SECOND Returns the second as a number (0-59) TIME Returns the time from a hour, minute, and second. TIMEVALUE Converts a time stored as text into a valid time. TODAY Returns the current date. WEEKDAY Returns the day of the week as a number (1-7). WEEKNUM Returns the week number in a year (1-52). WORKDAY The date n working days from a date. WORKDAY.INTL The date n working days from a date, custom weekends. YEAR Returns the year. YEARFRAC Returns the fraction of a year between 2 dates. Engineering yes CONVERT Convert number from one unit to another. Financial yes FV Calculates the future value. PV Calculates the present value. NPER Calculates the total number of payment periods. PMT Calculates the payment amount. RATE Calculates the interest Rate. NPV Calculates the net present value. IRR The internal rate of return for a set of periodic CFs. XIRR The internal rate of return for a set of non-periodic CFs. PRICE Calculates the price of a bond. YIELD Calculates the bond yield. INTRATE The interest rate of a fully invested security. Information yes CELL Returns information about a cell. ERROR.TYPE Returns a value representing the cell error. ISBLANK Test if cell is blank. TRUE/FALSE ISERR Test if cell value is an error, ignores #N/A. TRUE/FALSE ISERROR Test if cell value is an error. TRUE/FALSE ISEVEN Test if cell value is even. TRUE/FALSE ISFORMULA Test if cell is a formula. TRUE/FALSE ISLOGICAL Test if cell is logical (TRUE or FALSE). TRUE/FALSE ISNA Test if cell value is #N/A. TRUE/FALSE ISNONTEXT Test if cell is not text (blank cells are not text). TRUE/FALSE ISNUMBER Test if cell is a number. TRUE/FALSE ISODD Test if cell value is odd. TRUE/FALSE ISREF Test if cell value is a reference. TRUE/FALSE ISTEXT Test if cell is text. TRUE/FALSE N Converts a value to a number. NA Returns the error: #N/A. TYPE Returns the type of value in a cell. Math yes ABS Calculates the absolute value of a number. AGGREGATE Define and perform calculations for a database or a list. CEILING Rounds a number up, to the nearest specified multiple. COS Returns the cosine of an angle. DEGREES Converts radians to degrees. DSUM Sums database records that meet certain criteria. EVEN Rounds to the nearest even integer. EXP Calculates the exponential value for a given number. FACT Returns the factorial. FLOOR Rounds a number down, to the nearest specified multiple. GCD Returns the greatest common divisor. INT Rounds a number down to the nearest integer. LCM Returns the least common multiple. LN Returns the natural logarithm of a number. LOG Returns the logarithm of a number to a specified base. LOG10 Returns the base-10 logarithm of a number. MOD Returns the remainder after dividing. MROUND Rounds a number to a specified multiple. ODD Rounds to the nearest odd integer. PI The value of PI. POWER Calculates a number raised to a power. PRODUCT Multiplies an array of numbers. QUOTIENT Returns the integer result of division. RADIANS Converts an angle into radians. RAND Calculates a random number between 0 and 1. RANDBETWEEN Calculates a random number between two numbers. ROUND Rounds a number to a specified number of digits. ROUNDDOWN Rounds a number down (towards zero). ROUNDUP Rounds a number up (away from zero). SIGN Returns the sign of a number. SIN Returns the sine of an angle. SQRT Calculates the square root of a number. SUBTOTAL Returns a summary statistic for a series of data. SUM Adds numbers together. SUMIF Sums numbers that meet a criteria. SUMIFS Sums numbers that meet multiple criteria. SUMPRODUCT Multiplies arrays of numbers and sums the resultant array. TAN Returns the tangent of an angle. TRUNC Truncates a number to a specific number of digits. Stats yes AVERAGE Averages numbers. AVERAGEA Averages numbers. Includes text & FALSE =0, TRUE =1. AVERAGEIF Averages numbers that meet a criteria. AVERAGEIFS Averages numbers that meet multiple criteria. CORREL Calculates the correlation of two series. COUNT Counts cells that contain a number. COUNTA Count cells that are non-blank. COUNTBLANK Counts cells that are blank. COUNTIF Counts cells that meet a criteria. COUNTIFS Counts cells that meet multiple criteria. FORECAST Predict future y-values from linear trend line. FREQUENCY Counts values that fall within specified ranges. GROWTH Calculates Y values based on exponential growth. INTERCEPT Calculates the Y intercept for a best-fit line. LARGE Returns the kth largest value. LINEST Returns statistics about a trendline. MAX Returns the largest number. MEDIAN Returns the median number. MIN Returns the smallest number. MODE Returns the most common number. PERCENTILE Returns the kth percentile. PERCENTILE.INC Returns the kth percentile. Where k is inclusive. PERCENTILE.EXC Returns the kth percentile. Where k is exclusive. QUARTILE Returns the specified quartile value. QUARTILE.INC Returns the specified quartile value. Inclusive. QUARTILE.EXC Returns the specified quartile value. Exclusive. RANK Rank of a number within a series. RANK.AVG Rank of a number within a series. Averages. RANK.EQ Rank of a number within a series. Top Rank. SLOPE Calculates the slope from linear regression. SMALL Returns the kth smallest value. STDEV Calculates the standard deviation. STDEV.P Calculates the SD of an entire population. STDEV.S Calculates the SD of a sample. STDEVP Calculates the SD of an entire population TREND Calculates Y values based on a trendline. Text yes CHAR Returns a character specified by a code. CLEAN Removes all non-printable characters. CODE Returns the numeric code for a character. CONCATENATE Combines text together. DOLLAR Converts a number to text in currency format. EXACT Test if cells are exactly equal. Case-sensitive. TRUE/FALSE FIND Locates position of text within a cell.Case-sensitive. LEFT Truncates text a number of characters from the left. LEN Counts number of characters in text. LOWER Converts text to lower case. MID Extracts text from the middle of a cell. PROPER Converts text to proper case. REPLACE Replaces text based on it’s location. REPT Repeats text a number of times. RIGHT Truncates text a number of characters from the right. SEARCH Locates position of text within a cell.Not Case-sensitive. SUBSTITUTE Finds and replaces text. Case-sensitive. TEXT Converts a value into text with a specific number format. TRIM Removes all extra spaces from text. UPPER Converts text to upper case. VALUE Converts a number stored as text into a number.

Содержание

  1. HYPERLINK function
  2. Description
  3. Syntax
  4. Remark
  5. Examples
  6. Work with links in Excel

HYPERLINK function

This article describes the formula syntax and usage of the HYPERLINK function in Microsoft Excel.

Description

The HYPERLINK function creates a shortcut that jumps to another location in the current workbook, or opens a document stored on a network server, an intranet, or the Internet. When you click a cell that contains a HYPERLINK function, Excel jumps to the location listed, or opens the document you specified.

Syntax

The HYPERLINK function syntax has the following arguments:

Link_location Required. The path and file name to the document to be opened. 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 that is stored on a hard disk drive. The path can also 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.

Note Excel for the web the HYPERLINK function is valid for web addresses (URLs) only. 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.

If the jump specified in link_location does not exist or cannot be navigated, an error appears when you click the cell.

Friendly_name Optional. 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.

In the Excel desktop application, to select a cell that contains a hyperlink without jumping to the hyperlink destination, click the cell and hold the mouse button until the pointer becomes a cross , then release the mouse button. In Excel for the web, select a cell by clicking it when the pointer is an arrow; jump to the hyperlink destination by clicking when the pointer is a pointing hand.

Examples

=HYPERLINK(«http://example.microsoft.com/report/budget report.xlsx», «Click for report»)

Opens a workbook saved at http://example.microsoft.com/report. The cell displays «Click for report» as its jump text.

=HYPERLINK(«[http://example.microsoft.com/report/budget report.xlsx]Annual!F10», D1)

Creates a hyperlink to cell F10 on the Annual worksheet in the workbook saved at http://example.microsoft.com/report. The cell on the worksheet that contains the hyperlink displays the contents of cell D1 as its jump text.

=HYPERLINK(«[http://example.microsoft.com/report/budget report.xlsx]’First Quarter’!DeptTotal», «Click to see First Quarter Department Total»)

Creates a hyperlink to the range named DeptTotal on the First Quarter worksheet in the workbook saved at http://example.microsoft.com/report. The cell on the worksheet that contains the hyperlink displays «Click to see First Quarter Department Total» as its jump text.

=HYPERLINK(«http://example.microsoft.com/Annual Report.docx]QrtlyProfits», «Quarterly Profit Report»)

To create a hyperlink to a specific location in a Word file, you use a bookmark to define the location you want to jump to in the file. This example creates a hyperlink to the bookmark QrtlyProfits in the file Annual Report.doc saved at http://example.microsoft.com.

Displays the contents of cell D5 as the jump text in the cell and opens the workbook saved on the FINANCE server in the Statements share. This example uses a UNC path.

Opens the workbook 1stqtr.xlsx that is stored in the Finance directory on drive D, and displays the numeric value that is stored in cell H10.

Creates a hyperlink to the Totals area in another (external) workbook, Mybook.xlsx.

=HYPERLINK(«[Book1.xlsx]Sheet1!A10″,»Go to Sheet1 > A10»)

To jump to a different location in the current worksheet, include both the workbook name, and worksheet name like this, where Sheet1 is the current worksheet.

=HYPERLINK(«[Book1.xlsx]January!A10″,»Go to January > A10»)

To jump to a different location in the current worksheet, include both the workbook name, and worksheet name like this, where January is another worksheet in the workbook.

=HYPERLINK(CELL(«address»,January!A1),»Go to January > A1″)

To jump to a different location in the current worksheet without using the fully qualified worksheet reference ([Book1.xlsx]), you can use this, where CELL(«address») returns the current workbook name.

To quickly update all formulas in a worksheet that use a HYPERLINK function with the same arguments, you can place the link target in another cell on the same or another worksheet, and then use an absolute reference to that cell as the link_location in the HYPERLINK formulas. Changes that you make to the link target are immediately reflected in the HYPERLINK formulas.

Источник

Work with links in Excel

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.

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.

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:

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:

In Excel for Windows, the following example creates a link to the area named Totals in another (external) workbook, Mybook.xls:

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.

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:

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.

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 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.

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:

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

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.

Источник

Skip to content

Как использовать функцию ГИПЕРССЫЛКА

В статье объясняются основы функции ГИПЕРССЫЛКА в Excel и приводятся несколько советов и примеров формул для ее наиболее эффективного использования.

Существует множество способов создать гиперссылку в Excel. Чтобы сделать ссылку на определенную веб-страницу, вы можете просто ввести ее URL-адрес в ячейку, нажать Enter, и Microsoft Excel автоматически преобразует запись в интерактивную гиперссылку. 

Чтобы создать ссылку на другой рабочий лист или определенное место в другом файле Excel, вы можете использовать контекстное меню «Гиперссылка» или комбинацию клавиш Ctrl + К. 

Но если вы хотите вставить на рабочий лист много одинаковых или похожих ссылок, то самый быстрый способ — использовать формулу гиперссылки, которая упрощает создание, копирование и редактирование гиперссылок в Excel.

Функция ГИПЕРССЫЛКА в Excel — синтаксис и способы использования

Функция ГИПЕРССЫЛКА в Excel используется для создания ссылки, которая направляет пользователя в указанное место в том же документе или открывает другой документ или веб-страницу. Используя формулу гиперссылки, вы можете ссылаться на:

  • Определенное место, например ячейку или именованный диапазон в файле Excel (на существующем листе, или на другом листе, или в другой книге).
  • Документ Word, презентацию PowerPoint или другой документ, хранящийся на жестком диске, в локальной сети или в Интернете.
  • Закладка в документе Word.
  • Веб-страница в Интернете.
  • Адрес электронной почты для создания нового сообщения.

Эта функция доступна во всех версиях Excel для Office 365, Excel от 2019 до 2000. В Excel Online функцию ГИПЕРССЫЛКА можно использовать только для веб-адреса (URL).

Синтаксис функции ГИПЕРССЫЛКА следующий:

ГИПЕРССЫЛКА(адрес ; [имя])

Где:

  • адрес (обязательно) — по которому необходимо перейти.

Он может быть представлен как ссылка на ячейку, содержащую ссылку, или же быть текстовой строкой, заключенной в кавычки, которая содержит путь к файлу, хранящемуся на локальном диске, или URL-адресом в Интернете.

Если указанный путь ссылки не существует или не работает, формула гиперссылки выдаст ошибку при попытке кликнуть по ней.

  • имя (необязательно) — это пояснительный текст, который будет отображаться в ячейке. Чтобы было понятно, куда ведёт ссылка. Если опущено, то адрес из первого аргумента отображается как текст ссылки.

Этот аргумент может быть представлен в виде числа, текстовой строки, заключенной в кавычки, или ссылки на ячейку, содержащую нужный текст.

Щелчок по ячейке с формулой гиперссылки открывает файл или веб-страницу, указанную в аргументе адрес.

Ниже вы можете увидеть простейший пример формулы гиперссылки Excel, где A2 содержит имя, а B2 содержит адрес:

=ГИПЕРССЫЛКА(B2; A2)

Результат может выглядеть примерно так:

Ниже вы можете ознакомиться с примерами формул, демонстрирующими другие варианты использования функции ГИПЕРССЫЛКА в Excel.

Как использовать ГИПЕРССЫЛКА в Excel — примеры формул

Переходя от теории к практике, давайте посмотрим, как вы можете использовать функцию ГИПЕРССЫЛКА, чтобы открывать различные документы прямо из ваших рабочих таблиц. Мы также обсудим более сложную формулу, в которой она используется в сочетании с несколькими другими функциями для выполнения сложной задачи.

Функция Excel ГИПЕРССЫЛКА позволяет вам создавать ссылки нескольких различных типов, в зависимости от того, какое значение вы указываете в аргументе адрес. Рассмотрим, как создавать ссылки на листы, файлы, веб-страницы и другие элементы.

Гиперссылка на другой рабочий лист

Чтобы вставить гиперссылку на другой лист в той же книге, укажите перед именем целевого листа знак решетки (#), после него – восклицательный знак и имя целевой ячейки, например:

=ГИПЕРССЫЛКА(«#Лист1!A1″;»Лист1»)

Приведенная выше формула создает гиперссылку с текстом перехода «Лист1», которая открывает Лист1 из текущей книги и устанавливает курсор в A1.

Если имя рабочего листа содержит пробелы или неалфавитные символы, оно обязательно должно быть заключено в одинарные кавычки, например:

=ГИПЕРССЫЛКА(«#Лист 1!A1″;»Лист 1″)

Таким же образом можно создать гиперссылку на другую ячейку того же листа. Например, чтобы вставить гиперссылку, которая приведет вас к ячейке A1 на том же листе, используйте формулу, подобную этой:

=ГИПЕРССЫЛКА(«#A1″;»Перейти к ячейке А1»)

Гиперссылка на другую книгу

Чтобы создать гиперссылку на другую книгу, необходимо указать полный путь к целевой книге в следующем формате:

«Диск:ПапкаКнига.xlsx»

Например:

=ГИПЕРССЫЛКА(«C:ГиперссылкиКнига2.xlsx»;»Книга2″)

Чтобы перейти на конкретный лист и даже в конкретную ячейку, используйте этот формат:

«[Диск:ПапкаКнига.xlsx]Лист!Ячейка»

Например, чтобы добавить гиперссылку с названием «Книга3», которая открывает Лист2 в Книга2, хранящейся в папке Гиперссылки на диске С, попробуйте следующую формулу:

=ГИПЕРССЫЛКА(«[C:ГиперссылкиКнига2.xlsx]Лист2!A1″;»Книга2 Лист2 А1»)

В данном случае вы используете так называемую абсолютную гиперссылку, в которой целевой адрес абсолютно зафиксирован.

Если вы планируете в ближайшее время переместить свои файлы в другое место, более целесообразно создать относительную гиперссылку примерно так:

=ГИПЕРССЫЛКА(«ГиперссылкиКнига2.xlsx»;»Книга2″)

И раз об этом зашел разговор, остановимся подробнее на абсолютных и относительных гиперссылках.

Абсолютные и относительные гиперссылки в Excel

Microsoft Excel поддерживает два типа ссылок: абсолютные и относительные, в зависимости от того, указываете ли вы полный или частичный адрес.

Абсолютная гиперссылка содержит полный адрес, включая протокол и доменное имя для URL-адресов, а также полный путь и имя файла для документов. Например:

Абсолютный URL: https://mister-office.ru/funktsii-excel/function-if-excel-primery.html

В Интернете общепринятой практикой является использование относительных URL-адресов. В гиперссылках Excel всегда следует указывать полные URL-адреса веб-страниц . Однако Microsoft Excel может понимать URL-адреса без протокола. 

Например, если вы введете «www.mister-office.ru» в ячейку, Excel автоматически добавит протокол «http» по умолчанию и преобразует его в гиперссылку, по которой вы можете перейти.

Со ссылками на файлы немного сложнее.

При создании ссылок на файлы Excel или другие документы, хранящиеся на вашем компьютере, вы можете использовать как абсолютные, так и относительные адреса. 

Абсолютная ссылка на файл Excel: C:Excel filesSource DataBook1.xlsx

В случае абсолютной гиперссылки путь к цели указан совершенно явно и точно и должен быть обновлен каждый раз, когда файл перемещается в другое место.

Относительная гиперссылка содержит частичный адрес. Например:

Пример относительной ссылки на файл Excel:   Source dataBook1.xlsx

Относительная гиперссылка — это гиперссылка, которая содержит целевой адрес относительно адреса файла, в котором она записана.

В относительной гиперссылке отсутствующая часть пути к файлу относится к расположению активной книги. Основное преимущество этого подхода заключается в том, что вам не нужно редактировать адрес ссылки при перемещении файлов в другое место. 

Например, если ваша активная книга и целевая книга находятся на диске C, а затем вы перемещаете их на диск D, относительные гиперссылки будут продолжать работать до тех пор, пока относительный путь к целевому файлу остается неизменным. 

Гиперссылка на именованный диапазон

Если вы создаете гиперссылку на именованный диапазон на рабочем листе, укажите полный путь к целевому имени:

«[Диск:ПапкаКнига.xlsx]Лист!Имя»

Например, чтобы вставить ссылку на диапазон с именем «Диапазон_данных», хранящийся на Лист2 в Книга2, используйте следующую формулу:

=ГИПЕРССЫЛКА(«[C:ГиперссылкиКнига2.xlsx]Лист2!Диапазон_данных»;»Книга2 Лист2 Диапазон данных»)

Если вы ссылаетесь на именованный диапазон уровня рабочей книги, имя листа указывать не нужно, например:

=ГИПЕРССЫЛКА(«[C:ГиперссылкиКнига2.xlsx]Диапазон_данных_1″;»Диапазон данных 1»)

Гиперссылка для открытия файла, хранящегося на жестком диске

Чтобы создать ссылку, открывающую другой документ, укажите полный путь к этому документу в следующем формате:

«Диск:Папкаимя_файла.расширение»

Например, чтобы открыть документ Word с именем Прайслист, который хранится в папке  Word files на диске D, используйте следующую формулу:

=ГИПЕРССЫЛКА(«D:Word filesПрайс-лист.docx»;»Прайс лист»)

Гиперссылка на закладку в документе Word

Чтобы сделать гиперссылку на определенное место в документе Word, заключите путь к документу в [квадратные скобки] и используйте закладку , чтобы определить место, к которому вы хотите перейти.

Например, следующая формула добавляет гиперссылку на закладку с именем Таблица_скидок в файле Цены.docx :

=ГИПЕРССЫЛКА(«[C:ГиперссылкиЦены.docx]Таблица_скидок»;»Скидки»)

Гиперссылка на файл на сетевом диске

Чтобы открыть файл, хранящийся в вашей локальной сети, укажите путь к этому файлу в формате универсального соглашения об именах (UNC), в котором перед именем сервера используется двойная обратная косая черта, например:

«\имя_серверапапкаимя_файла.расширение»

Приведенная ниже формула создает гиперссылку под названием « Прайс на сервере», которая открывает книгу «Прайс-лист.xlsx », хранящуюся на SERVER1 в папке Alex :

=ГИПЕРССЫЛКА(«\SERVERAlexПрайс-лист.xlsx»;»Прайс на сервере»)

Чтобы открыть сетевой файл Excel на определенном листе, заключите путь к файлу в [квадратные скобки] и напишите далее имя листа, восклицательный знак (!) и ячейку, на которую указывает ссылка:

=ГИПЕРССЫЛКА(«[\SERVERAlexПрайс-лист.xlsx]Лист1!А1″;»Прайс Лист1 на сервере»)

Гиперссылка на веб-страницу

Чтобы создать гиперссылку на веб-страницу в Интернете, укажите ее URL-адрес, заключенный в кавычки, например:

=ГИПЕРССЫЛКА(«https://www.mister-office.ru»4; «Перейти на Мистер Офис»)

Приведенная выше формула вставляет гиперссылку под названием «Перейти на Мистер Офис», которая открывает домашнюю страницу нашего веб-сайта.

Гиперссылка для отправки электронного письма

Чтобы создать по клику на ячейку новое сообщение для определенного получателя, укажите адрес электронной почты в следующем формате:

«mailto:email_address»

Например:

=ГИПЕРССЫЛКА(«mailto:alex@mister-office.ru»;»Отправить email»)

Приведенная выше формула добавляет гиперссылку под названием « Отправить email», и нажатие на нее создает новое почтовое сообщение.

Искать значение и создать гиперссылку на первое совпадение

При работе с большими наборами данных вы часто можете оказаться в ситуации, когда вам нужно найти конкретное значение и вернуть соответствующие данные из другого столбца. Для этого вы используете либо функцию ВПР, либо более мощную комбинацию ПОИСКПОЗ ИНДЕКС .

Но что, если вы хотите не только получить соответствующее значение, но и перейти к позиции этого значения в исходном наборе данных, чтобы просмотреть другие детали в той же строке? Это можно сделать с помощью функции ГИПЕРССЫЛКА Excel с некоторой помощью функций ЯЧЕЙКА, ИНДЕКС и ПОИСКПОЗ.

Общая формула для создания гиперссылки на первое совпадение выглядит следующим образом:

ГИПЕРССЫЛКА(«#»&ЯЧЕЙКА(«адрес»; ИНДЕКС( массив; ПОИСКПОЗ ( искомое_значение ;  диапазон_поиска ;0))), ИНДЕКС( массив; ПОИСКПОЗ ( искомое_значение; диапазон_поиска ;0)))

Чтобы увидеть эту формулу в действии, рассмотрим следующий пример. Предположим, у вас есть список продавцов в столбце A и проданных товаров в столбце C. Вы хотите найти первый товар, проданный определенным продавцом, и создать гиперссылку на какую-либо ячейку в этой строке, чтобы вы могли перейти туда просмотреть все другие подробности, связанные именно с этим конкретным заказом.

С искомым значением в ячейке F2, списком продавцов (диапазон поиска) в A2:A10 и списком товаров (массив данных) в C2:C10 формула принимает следующий вид:

=ГИПЕРССЫЛКА(«#»&@ЯЧЕЙКА(«address»; ИНДЕКС($C$2:$C$10; ПОИСКПОЗ($E2;$A$2:$A$10;0))); ИНДЕКС($C$2:$C$10; ПОИСКПОЗ($E2;$A$2:$A$10;0)))

Как видно на скриншоте ниже, формула извлекает найденное значение и преобразует его в интерактивную гиперссылку, которая направляет пользователя к позиции первого совпадения в исходном наборе данных.

Если вы работаете с длинными строками данных, то может быть удобнее, чтобы гиперссылка указывала на первую ячейку в строке, где найдено совпадение. Для этого вы просто указываете другой массив в первой комбинации ИНДЕКС ПОИСКПОЗ – столбец A (в этом примере $A$2:$A$10):

=ГИПЕРССЫЛКА(«#»&@ЯЧЕЙКА(«address»; ИНДЕКС($A$2:$A$10; ПОИСКПОЗ($E2;$A$2:$A$10;0))); ИНДЕКС($C$2:$C$10; ПОИСКПОЗ($E2;$A$2:$A$10;0)))

Эта формула приведет вас к первой ячейке в строке с найденным товаром, который в нашем случае был обнаружен в третьей ячейке строки:

Примечание. Обратите внимание на использование абсолютных ссылок на ячейки для используемых диапазонов. Это важно, если вы планируете вставить более одной гиперссылки, скопировав формулу вниз по столбцу.

Как редактировать несколько гиперссылок одновременно

Как упоминалось в начале статьи, одним из наиболее полезных преимуществ гиперссылок на основе формул является возможность редактирования сразу нескольких формул гиперссылок за один приём с помощью функции Excel «Заменить все».

Предположим, вы хотите заменить старый URL-адрес своей компании (old-website.com) новым (new-website.com) во всех гиперссылках на текущем листе или во всей книге. Чтобы это сделать, выполните шаги, описанные ниже:

  1. Нажмите клавиши Ctrl + Н, чтобы открыть вкладку «Заменить» диалогового окна «Найти и заменить».
  2. В поле «Найти» введите текст, который вы хотите изменить (в данном примере — «old-website.com»). В поле Заменить на введите новый текст («new-website.com» в данном примере).
  3. В правой части диалогового окна нажмите кнопку Параметры.
  4. В вкладке Параметры выберите Лист или Книга в зависимости от того, хотите ли вы изменить гиперссылки только на текущем листе или на всех листах текущей книги.
  5. Там же в параметрах в пункте Искать в выберите Формулы.
  6. В качестве дополнительной меры предосторожности сначала нажмите кнопку «Найти все», и Excel отобразит список всех формул, содержащих искомый текст:

  1. Просмотрите результаты поиска, чтобы убедиться, что вы хотите изменить все найденные формулы. Если вы это сделаете, перейдите к следующему шагу, в противном случае уточните поиск.
  2. Нажмите кнопку «Заменить все». Excel заменит указанный текст во всех найденных гиперссылках и сообщит, сколько изменений было внесено.
  3. Нажмите кнопку Закрыть. Готово!

Аналогичным образом вы можете одновременно редактировать текст ссылки (второй параметр) во всех формулах гиперссылки. При этом убедитесь, что заменяемый текст в аргументе имя нигде не появляется в адресе, чтобы не нарушить формулы.

ГИПЕРССЫЛКА Excel не работает — причины и решения

Самая распространенная причина, по которой формула гиперссылки не работает (и первое, что вы должны проверить!) — это несуществующий или неверный путь в аргументе адрес. Если это не так, проверьте следующие две вещи:

  1. Если место назначения ссылки не открывается при нажатии на гиперссылку, убедитесь, что расположение ссылки указано в правильном формате. Примеры формул для создания различных типов гиперссылок можно найти выше.
  2. Если вместо текста ссылки появится ошибка типа ЗНАЧ! или N/A, скорее всего, проблема связана с аргументом имя вашей формулы гиперссылки.

Как правило, такие ошибки возникают, когда имя возвращается какой-либо другой функцией (функциями), например, в нашем ВПР и гиперссылке на первое совпадение. В этом случае в ячейке формулы появится ошибка #Н/Д, если искомое значение не будет найдено в таблице поиска. Чтобы предотвратить такие ошибки, вы можете рассмотреть возможность использования функции ЕСЛИОШИБКА для отображения пустой строки или некоторого понятного для пользователя текста вместо значения ошибки.

Вот как можно создавать различные ссылки с помощью функции Excel ГИПЕРССЫЛКА. 

Другие статьи по теме:

Как удалить сразу несколько гиперссылок В этой короткой статье я покажу вам, как можно быстро удалить сразу все нежелательные гиперссылки с рабочего листа Excel и предотвратить их появление в будущем. Решение работает во всех версиях Excel,…
Гиперссылка в Excel: как сделать, изменить, удалить В статье разъясняется, как сделать гиперссылку в Excel, используя 3 разных метода. Вы узнаете, как вставлять, изменять и удалять гиперссылки на рабочих листах, а также исправлять неработающие ссылки. Гиперссылки широко используются…
Как использовать функцию ДВССЫЛ – примеры формул В этой статье объясняется синтаксис функции ДВССЫЛ, основные способы ее использования и приводится ряд примеров формул, демонстрирующих использование ДВССЫЛ в Excel. В Microsoft Excel существует множество функций, некоторые из которых…

What is HYPERLINK Function in Excel?

The HYPERLINK function of Excel helps create a link (or hyperlink), which when clicked, takes the user to the intended location. Every link is given a desired on-screen name. Once a hyperlink is created, this name is underlined and displayed in blue. Apart from text, a picture can also be turned into a clickable hyperlink.

For example, the formula =HYPERLINK(“http://www.wallstreetmojo.com/”,”WSM”) creates a hyperlink named “WSM.” When clicked, this hyperlink opens the website “www.wallstreetmojo.com.”

The purpose of creating a hyperlink in ExcelTo insert a hyperlink, right-click on the cell, click on hyperlink, and then choose the last option, which will open a wizard box to insert a hyperlink. Then, in the field for an address, type the hyperlink’s URL.read more is to provide the end-user with an additional source of information. This source is usually related to the current data of the worksheet. The HYPERLINK function is categorized under the Lookup & Reference functions of Excel.

Table of contents
  • What is HYPERLINK Function in Excel?
    • Formula of the HYPERLINK Function of Excel
    • Examples
      • Example #1–Send an Email Using a Hyperlink
      • Example #2–Switch Between the Worksheets Using a Hyperlink
      • Example #3–Open a File Using a Hyperlink
    • How to Make a Picture or Cell of Excel a Clickable Hyperlink?
    • The Key Points Governing Hyperlink Formula in Excel
    • Frequently Asked Questions
    • Hyperlink Excel Function Video
    • Recommended Articles

Formula of the HYPERLINK Function of Excel

The formula of the HYPERLINK function of Excel is shown in the following image.

Hyperlink Function formula

The HYPERLINK function of Excel accepts the following arguments:

  • Link_location: This is the path to the intended location. It can be supplied as a text string enclosed within double quotation marks or a reference to a cell that contains this text string. The intended location can be a cell, named range (in any workbook), bookmark or file in Word, web page on the intranet or Internet, file on Excel or PowerPoint, etc.
  • Friendly_name: This is the on-screen name of the hyperlink. It is also called the jump text, link text or anchor text. It can be supplied as a text string enclosed within double quotation marks, numeric value or reference to a cell containing the on-screen name. The blue color of the jump text indicates that it is clickable.

The argument “link_location” is required while “friendly_name” is optional. If the latter is omitted, the former is considered as the jump text.

The HYPERLINK formula in excel can return errors in the following situations:

  • If the path specified as the “link_location” does not exist, an error is displayed on clicking the hyperlink.
  • If there is an issue with the “friendly_name,” the cell shows an error in place of the jump text.

Hyperlink-Function-in-Excel

Examples

Let us consider a few examples to understand the working of the HYPERLINK function in Excel.

Example #1–Send an Email Using a Hyperlink

To send an email using a hyperlink, follow the listed steps:

  1. Open the HYPERLINK function by typing =HYPERLINK in Excel.
  2. Prefix “mailto:” (within double quotation marks) to an email address. Use the ampersand operator to join this prefix and the cell containing the email address. This serves as the “link_location” argument.
  3. Close the parentheses and press the “Enter” key.

The HYPERLINK formula is displayed in cell C2 of the following image.

You can download this HYPERLINK Function Excel Template here – HYPERLINK Function Excel Template

Hyperlink EXAMPLE 1-2

Result of the HYPERLINK formula: The prefix along with the entire address (mailto:[email protected]) will be displayed as a hyperlink. Since the “friendly_name” argument has been omitted in the HYPERLINK formula, the “link_location” is used as the jump text.

Clicking the created hyperlink will open the “compose” page of the default email account. The given email address will be automatically entered in the “To” field. This field contains the email address of one or more recipients.

Likewise, the HYPERLINK formula has been applied to cells C3 and C4. The outputs of the HYPERLINK formulas are displayed in these cells. Notice that the “friendly_name” has been omitted for the hyperlinks of these cells as well.

Note: “Mailto” links are used in HTML to send emails from the default mail client of the user. The address mentioned in the “mailto” link is considered to belong to the intended recipient.

Example #2–Switch Between the Worksheets Using a Hyperlink

To switch to a different worksheet within the same workbook via a hyperlink, follow the listed steps:

  1. Open the HYPERLINK function by typing =HYPERLINK in Excel.
  2. Prefix the hash (#), followed by the name of the worksheet, the exclamation mark (!), and the cell referenceCell reference in excel is referring the other cells to a cell to use its values or properties. For instance, if we have data in cell A2 and want to use that in cell A1, use =A2 in cell A1, and this will copy the A2 value in A1.read more of the intended location. This serves as the “link_location” argument.
  3. Enter the jump text enclosed within double quotation marks.
  4. Close the parentheses and press the “Enter” key.

The HYPERLINK formula is displayed in cell C5 of the following image.

Hyperlink EXAMPLE 1-3

Result of the HYPERLINK formula: A hyperlink with jump text “to Example1” will be created. Clicking this hyperlink will take the user to cell A1 of the worksheet “Example1.” In this way, one can move within a workbook through hyperlinks.

Likewise, the hyperlinks of cells C6 and C7 will take the user to the intended locations given in cells B6 and B7 respectively.

Therefore, hyperlinks can be used to link the table of contents of a workbook to the different areas of worksheets.

Alternate Method to Switch Between the Worksheets

This section lists the alternative steps to the preceding method. The steps to switch to a different worksheet (within the same workbook) by using a hyperlink are listed as follows:

  1. Type the jump text in a cell. Next, select this cell.
  2. Click the “hyperlink” option from the “links” group of the Insert tab.
  3. The “insert hyperlink” dialog box opens. Under “link to” displayed on the left side, select “place in this document.”
  4. In “text to display,” Excel automatically displays the selected jump text. In “type the cell reference,” enter the cell reference of the intended location.
  5. Under “or select a place in this document,” choose the worksheet where the user would be taken.
  6. Click “Ok.”

The “insert hyperlink” dialog box is shown in the following image. In this case, clicking the jump text “Sheet Example1,” will take the user to cell A1 of worksheet “Example3.”

Hyperlink EXAMPLE 1-4

Example #3–Open a File Using a Hyperlink

To open a file through a hyperlink, follow the listed steps:

  1. Open the HYPERLINK function by typing =HYPERLINK in Excel.
  2. Enter the reference to a cell containing the full path of the file. The path should include the location, name, and extension (like .docx, .xlsx, .pptx, and so on) of the file. This serves as the “link_location” argument.
  3. Enter the jump text enclosed within double quotation marks.
  4. Close the parentheses and press the “Enter” key.

The HYPERLINK formula is displayed in cell C3 of the following image.

Hyperlink EXAMPLE 1-5

Result of the HYPERLINK formula: A hyperlink with jump text “NVP Function” is created. Clicking this hyperlink opens the file titled “NPV function.” This file is currently stored on the desktop of the user.

Likewise, the hyperlink of cell C4 opens an image having the “.jpg” extension. The hyperlink of cell C5 opens a Word document titled “top advanced excel formulas and functions.”

How to Make a Picture or Cell of Excel a Clickable Hyperlink?

Let us learn how to make a picture or cell of Excel clickable. Note that the procedure of creating hyperlinks in both cases is the same.

The steps to make a picture or cell of Excel clickable are listed as follows:

  1. Select the picture or the cell containing the text which needs to be made clickable. Right-click the selection and choose “hyperlink” from the context menu.

    The selection and “hyperlink” option are shown in the following image. Note that the green box shown on the left side is currently not clickable. This box is just an ordinary picture of Excel, which has been inserted from the “picture” option (“illustrations” group) of the Insert tab.

    Note: Alternatively, after selecting the cell or picture, one can click “hyperlink” from the “links” group of the Insert tab.

    Hyperlink EXAMPLE 1

  2. The “insert hyperlink” dialog box opens. Enter the path or the “link_location” in the address box and click “Ok.” The options “existing file or web page” (under “link to”) and “current folder” (under “look in”) automatically appear to be selected. Let them remain the way they are.

    We have entered the path as “http://www.e2esols.com/,” as shown in the following image. As one begins to type “www” in the address box, Excel automatically inserts “http,” colon (:), and forward slashes (/) at the right places. So, when the user clicks on the picture (shown in step 1), he/she will be taken to this website.

    In this way, a picture or cell of Excel can be turned into a clickable hyperlink. Note that the position or the appearance of the picture is not impacted. It has only been made clickable.

    Note: The web address or URL (uniform resource locator) entered in this example does not exist. This URL has been used for example purposes only.

    Insert Hyperlink

The Key Points Governing Hyperlink Formula in Excel

The important points related to creating hyperlinks in Excel are stated as follows:

  • The “insert hyperlink” dialog box (opens by clicking “hyperlink” on the Insert tab) shows a “screen tip” option on the top-right side. When clicked, it allows the user to enter information related to the hyperlink. This information is displayed when the cursor rests on the hyperlink and changes to a hand icon.
  • It is possible to select a cell containing a hyperlink without being taken to the intended location. This can be done by following either of the stated methods:
    • Select an adjacent cell and use the arrow keys to select the cell containing the hyperlink.
    • Click the required cell (containing the hyperlink) and keep the mouse button pressed until the cursor assumes a “plus” or “cross” sign. Once this sign is displayed, release the mouse button.

Frequently Asked Questions

1. Define the HYPERLINK function of Excel with the help of an example.

The HYPERLINK function helps create hyperlinks in Excel. When such a hyperlink is clicked, it takes the user to a different web page, document, bookmark, workbook, and so on. By creating a hyperlink in a worksheet, the end-user is given access to an additional source of data.

For example, the formula =HYPERLINK(“http://www.123.com/”,123) creates a hyperlink named 123. When this link is clicked, the stated website (www.123.com) opens.

Note: For more details on the usage of the HYPERLINK function, refer to the examples of this article.

2. How to use the HYPERLINK function in Excel?

The HYPERLINK function of Excel can be used by following the listed steps:
a. Open the HYPERLINK formula by typing =HYPERLINK in Excel.
b. Enter the path of the destination. This is the place where the user would be taken on clicking the hyperlink.
c. Enter the name of the hyperlink, which will be displayed to the user. If the name is not entered, the path will be displayed as the name.
d. Close the parentheses and press the “Enter” key.

Note: For more details on the arguments of the HYPERLINK excel formula, refer to its syntax given in this article.

3. Where is the “hyperlink” button and how is it used to add a hyperlink in Excel?

The “hyperlink” button is in the “links” group of the Insert tab. It is used to add a hyperlink to a blank cell, cell containing a string (whether textual or numerical) or cell containing an image.

For inserting a hyperlink using the “hyperlink” button, follow the listed steps:
a. Select the cell or image on which a hyperlink needs to be created.
b. Click the “hyperlink” button from the Insert tab or the “hyperlink” option from the context menu. The context menu appears when the selected cell or image is right-clicked.
c. The “insert hyperlink” dialog box opens. Enter a name for the hyperlink in the “text to display” box.
d. Enter the address in the address box. This address is the URL of a web page.
e. Click “Ok.”

A hyperlink is created using the “hyperlink” button of Excel. In case, an image was selected in pointer “a,” it becomes clickable.

Note: While creating this hyperlink, let the default selections of Excel (“existing file or web page” under “link to” and “current folder” under “look in”) stay in place. The other options under “link to” can also be used depending on the kind of destination.

Hyperlink Excel Function Video

Recommended Articles

This has been a guide to the HYPERLINK function in Excel. Here, we explain how to use the HYPERLINK excel formula along with step-by-step examples. You may also look at these useful functions in Excel–

  • Excel Mathematical FunctionMathematical functions in excel refer to the different expressions used to apply various forms of calculation. The seven frequently used mathematical functions in MS excel are SUM, AVERAGE, AVERAGEIF, COUNTA, COUNTIF, MOD, and ROUND.read more
  • Hyperlinks in Excel VBAHyperlinks are URLs attached to a value that appear when we hover the mouse over it. When we click on it, the URL is opened. In VBA, we have an inbuilt property to create hyperlinks. We use the add method and the hyperlink statement to insert a hyperlink.read more
  • Insert a Picture/Image in Excel CellTo insert a picture/image in Excel cell, a user can: Directly drag and drop or copy-paste image from file location on the computer to Excel cell; or Go to Insert option in Excel after selecting the cell and add desired image from the computer’s file location.read more

Like this post? Please share to your friends:
  • Hush the baby dont say word
  • Hush not a word to
  • Hush little baby don t say a word что это
  • Hush little baby don t say a word текст
  • Html с помощью word