![]() If you have used an Object Linking and Embedding (OLE) link that is returning a #REF! error, then start the program that the link is calling. You'll encounter the same error if you reference a closed workbook with a dynamic array function. In the following example, an INDIRECT function is attempting to reference a workbook that’s closed, causing a #REF! error. Example – Referencing a closed workbook with INDIRECT =INDEX(B2:E5,4,4) would return a valid result. In this example, the formula =INDEX(B2:E5,5,5) returns a #REF! error because the INDEX range is 4 rows by 4 columns, but the formula is asking to return what’s in the 5th row and 5th column.Īdjust the row or column references so they're inside the INDEX lookup range. Example - INDEX with incorrect row or column reference =VLOOKUP(A8,A2:E5,5,FALSE) would be a valid reference range, as would =VLOOKUP(A8,A2:D5,4,FALSE). In the following example, =VLOOKUP(A8,A2:D5,5,FALSE) will return a #REF! error because it’s looking for a value to return from column 5, but the reference range is A:D, which is only 4 columns.Īdjust the range to be larger, or reduce the column lookup value to match the reference range. You could also use =SUM(B2:B5) for a sum of rows.Įxample - VLOOKUP with incorrect range references Now you could delete any column within the sum range and Excel will automatically adjust the formula. ![]() If you accidentally deleted rows or columns, you can immediately click the Undo button on the Quick Access Toolbar (or press CTRL+Z) to restore them.Īdjust the formula so that it uses a range reference instead of individual cells, like =SUM(B2:D2). This is the primary reason why using explicit cell references in functions is not recommended. ![]() When you use explicit cell references like this (where you reference each cell individually, separated by a comma) and delete a referenced row or column, Excel can’t resolve it, so it returns the #REF! error. In this case we'll delete column C (2007 Sales), and the formula now reads =SUM(B2,#REF!,C2). ![]() If you were to delete column B, C or D it would cause a #REF! error. The following example uses the formula =SUM(B2,C2,D2) in column E. Example - #REF! error caused by deleting a column ![]() This happens most often when cells that were referenced by formulas get deleted, or pasted over. The #REF! error shows when a formula refers to a cell that’s not valid. 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 for iPad Excel for iPhone Excel for Android tablets Excel 2010 Excel 2007 Excel for Mac 2011 Excel for Android phones Excel for Windows Phone 10 Excel Mobile Excel Starter 2010 More. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |