Cross Referencing in ExcelMS Excel or Microsoft Excel is a popular spreadsheet software to organize data in rows and columns. Since Excel allows users to organize vast amounts of data across multiple sheets, it allows using cells values by their references on other worksheets, same worksheets, and even in different workbooks. Crossreferencing of cells allows users to use cells' values in other cells without putting the actual values but their cell references. This can help make data calculations easier in large data sets in workbooks. In this article, we are discussing the brief introduction of crossreferencing in Excel. This article also discusses the stepbystep process of crossreferencing in different scenarios, including the example. What is Cross Referencing in Excel?Each cell in Excel workbook is represented by a unique address, known as a cell reference. The cell reference is typically the combination of specific column and row addresses. It consists of the letter representing the respective cell's column and the number representing the corresponding row. In the Excel workbook, the same position cells in different sheets represent identical cell references. Crossreference is nothing but a reference to information located somewhere else in the same Excel workbook. To crossreference between different workbook sheets, we must know about identifying cells by their extended addresses. The extended references help us specify the exact cell, including its sheet name, column, and row. Let us understand the crossreferencing with a simple example where we will be using the first cell of the worksheet for crossreferencing:
How to crossreference cells in Excel?Based on the scenarios, there can be different ways we may need to use cross reference in Excel. The following are the most typical crossreferencing methods used in Excel sheets:
Let us now understand each in detail: Cross Referencing Single Cells in ExcelIn a location map, the idea of grid references is used. The map is split up into various grids that help us pinpoint any particular location on the map. We typically specify any location on a map by using the individual grid references. In Excel, the spreadsheets work in an almost similar way. An Excel spreadsheet contains various cells that we can specify by their individual references, created by combining a letter for the corresponding column and a number for a specific row. For example, cell B4 is in the grid that intersects the second column (column B) and row 4. Suppose that B4 is a cell in our workbook Book1.xlsx. To reference B4 in any other cell within the same sheet, we must enter =B4 into the resultant cell. Also, we can type any desired formula with multiple cell references to get results combining values from different cells. For instance, we can type "=B4*B5" without quotes to multiply the data from cell B4 and cell B5 on any other cell, as shown below: After putting the formula combining the cell references, we must press the Enter key to get the resultant value. The above formula in the above provides the following result: In this way, we can use crossreferencing with single cells in the same worksheet. However, to reference a cell from another sheet, we must append the worksheet name before the cell, followed by the exclamation mark. For instance, if we use the formula =Sheet1!B4*Sheet2!B5 in any cell of the Sheet2, we will get the same result as above (i.e., 600). The corresponding formula will multiply the values from cells B4 and B5 from Sheet1 and provide the resultant value in the selected cell of Sheet2. After pressing the Enter key, the result is the same: In this way, we can use crossreferencing with single cells in different worksheets. Besides, Excel also allows us to reference cells from another workbook (Excel file). For this, we must use the square brackets to specify the specific Excel workbook name, followed by the extended reference. For example, =[Book1.xlsx]Sheet2!B2 will represent the same value (600) as shown in the above image when used in another workbook of the same folder. Suppose we create a new Excel file (Book2.xlsx) in the same folder as our above file (Book1.xlsx) exists. Then in Book2.xlsx, we apply the formula =[Book1.xlsx]Sheet1!B4*[Book1.xlsx]Sheet1!B5 in any cell, as shown below: After pressing the Enter key, the resultant value is given by multiplying the values from cells B4 and B5 from the Sheet1 of Excel workbook Book1.xlsx. In this way, we can use references in Excel for individual cells in the same sheet, different sheets, and even different workbooks/ spreadsheets. Referencing Cell Ranges in ExcelExcel also allows users to apply specific formulae by referencing multiple cells if the cells are in sequential order. In such cases, we can use the entire cell ranges in corresponding formulae. For example, when we need to sum values in cells B3 to B7 in our example workbook (Book1.xlsx), we usually take the entire range and supply it in a formula like this: =SUM(B3:B7). This means that we specify the range by using a colon and connecting the start and end cells. After typing the formula, we must press the Enter key to get the resultant value, as shown below: We can use the cell ranges in other sheets and workbooks by their references. The method is almost the same as the referencing approach we discussed above for individual cells. When we need to reference a cell range in another sheet within the same workbook, we must specify the corresponding sheet name before the cell range. For example, to find the sum of cells B3 to B7 from the Sheet1 into any desired cell in Sheet2, we can use the formula like this: =SUM(Sheet1!B3:B7). After pressing the Enter key, we get the resultant value in the Sheet2, the same as the above resultant sum we calculated in the Sheet1. When referencing a cell range from different Excel workbook, we need to type square brackets and the corresponding file name inside the box, followed by the extended reference and the cell range. Suppose we need to sum up the value from cells B3 to B7 and get the resultant value in any cell of another Excel file (Book2.xlsx) that is in the same folder as our primary file (Book1.xlsx) exists. Then in Book2.xlsx, we need to apply the formula =SUM([Book1.xlsx]Sheet1!B3:B7) in any cell, as shown below: After pressing the Enter key, the resultant value is given in another workbook (Book2.xlsx) by adding the values in cells B3 to B7 from the Sheet1 of primary Excel workbook (Book1.xlsx). In this way, we can use references in Excel for a range of cells in the same sheet, different sheets, and even different workbooks or spreadsheets. Referencing Named Cells in ExcelExcel allows users to specify any particular name to the desired cell within the spreadsheet. It helps to ease the referencing approach by replacing the gridstyle referencing method and allows using the specific name for a particular cell simplifies referencing cell and cell ranges. For instance, if we name a cell as 'data', we can use this name as a reference throughout the entire workbook for a defined cell. We don't need to define the extended reference in that case. This typically eliminates the chances of mistyping a cell reference or cell range and saves potential time. To specify the desired name to any cell in the workbook, we need to select or highlight the particular cell, press the rightclick button, and select the 'Define Name' option. It looks like this: In the next window, we need to type the name for the selected cell, select the scope to use the typed name for the entire workbook or specific sheets, and click the OK button. After saving the name, we can click on the particular cell and see its name in the reference area. We can also use the naming approach to define a name for a specific range of cells. After defining a name, we can use it as a reference using the formula: =data. Since we selected the 'workbook' option as a scope while naming the cell, the named cell reference can also be used in other workbook sheets. For instance, if we use the same formula (=data) in the Sheet2, we will get the same result, as shown below: Suppose we want to reference a named cell in another Excel workbook. We don't need to use the square box to type a specific workbook name inside it. Instead, we can easily specify the corresponding Excel workbook name, followed by the exclamation mark and the named cell. For instance, we can enter the formula '=Book1.xlsx!data' without quotes in any specific cell of another workbook (Book2.xlsx) and get the same result as we achieved in the above image. But, the workbooks must be saved in the same folder. In this way, we can use references in Excel for named cells in the same sheet, different sheets, and even different workbooks or spreadsheets. Example of CrossReferencing using VLOOKUPWhen we have data in multiple lists, it is not easy to manually keep all the data together in one list. However, we can crossreference them using vlookup. It does not matter how long our data list is; we can do hundreds or thousands of crossreferences with a few clicks. VlookUp searches for the values vertically down for the supplied table. The syntax of this function is as follows: Where the four parameters are as below:
Let us now crossreference data between two Excel sheets: Suppose we have the following sheet with some employees' IDs, names, and dates of birth. Also, we have another sheet with almost the same employees and their favorite colors. We need to create a combined list from both the above sheets to display employees' IDs, names, their dates of birth and favourite colors in the same sheet. We must use the VLOOKUP by using the following data in a new column (Fav. Color) created in the Sheet1:
After applying VLOOKUP with the above values, we will get the desired results like this: After pressing the Enter key and copying (or dragging) the formula into other cells, we get the following results: In the above image, the VLOOKUP function has searched for colors from Sheet2 and provided the results in Sheet1. This is the most common example of crossreferencing in Excel.
Next TopicUsing Themes in Excel
