Excel find and or function is not found

If you’ve been using Excel formulas for a while, you probably encountered the annoying #NAME? errors. Excel shows us this error to help us fix the problem with a formula, but it doesn’t exactly say what is really wrong with the formula.

The ‘#NAME?’ error appears in the cell when Excel doesn’t recognize your formula or arguments of your formula. It indicates that there is something is wrong or missing with the characters your formula used and that needs to be rectified.

There are several reasons why you would ever see the #NAME? errors in Excel. The common cause is the simple misspelling of the formula or function. But there are other reasons too including, incorrectly typed range name, misspelled cell range, missing quotation marks around the text in the formula, missing colon for a cell range, or incorrect formula version. In this article, we’ll explain some of the most common issues that can cause a #Name error in Excel and how to fix them.

Misspelled Formula or Function Name

The most common cause of #Name error is the misspelling of the function name or when the function doesn’t exist. When you entered an incorrect syntax of a function or formula, the #Name error is displayed in the cell where the formula is entered.

In the following example, the COUTIF function is used to count the number of times an item (A1) repeats in the list (column A). But, the function name “COUNIF” is misspelled as “COUNTIIF” with double ‘II’, hence the formula returns the #NAME? error.

All you have to do is correct the spelling of the function, and the error is rectified.

To avoid this error, you can use the formula suggestions rather than manually typing the formula. As soon as you start typing the formula, Excel will display a list of matching functions below where you’re typing as shown below.

Double-click on one of the suggested functions or press TAB to accept a function suggested by autocomplete. Then, enter the arguments and press Enter.

Incorrect Cell Range

Another cause for the #Name error is because the cell range is entered incorrectly. This error will occur if you forget to include a colon (:) in a range or used the wrong combination of letters and numbers for the range.

In the example below, the range reference is missing a colon (A1A6 instead of A1:A6), so the result returns the #NAME error.

In the same example, the cell range has the wrong combination of letters and numbers, so it returns the #NAME error.

Now, the range used in cell A7 has been fixed to get the proper result:

Misspelled Named Range

A named range is a descriptive name, used to refer to individual cells or range of cells instead of the cell address. If you misspell a named range in your formula or refer to a name that is not defined in your spreadsheet, then the formula will generate the #NAME? Error.

In the below example, the range C4:C11 is named “Weight”. When we try to use this name to sum the range of cells, we get the #Name? error. It’s because the range name “Weight” is misspelled “Wieght” and the SUM function in B2 returns the #NAME? error.

Here, we get the #Name error, because we tried to use the undefined named range “Load” in the formula. The named range “Load” doesn’t exist in this sheet, so we got the #NAME error.

Below, correcting the spelling of the defined cell range fixes the issue and returns the ‘46525’ as the total weight of the Meat.

To avoid this error, you can use the ‘Paste Name’ dialog box to insert the name of the range into the function instead of typing the name. When you need to type the name of the range within your formula, press the F3 function key to see the list of named ranges in your workbook. On the Paste Name dialog box, select the name and click ‘OK’ to automatically insert a named range into the function.

This way you don’t have to manually type the name which prevents the error from happening.

Check the Scope of Named Range

Another reason you might get a ‘#NAME?’ error is when you try to reference a locally scoped named range from another worksheet within the workbook. When you are defining a named range, you can set whether you want the scope of the named range to the whole workbook or only to a particular sheet.

If you have set the scope of the named range to a particular sheet and try to reference it from a different worksheet, you will see the #NAME? Error.

To check the scope of the named ranges, click the ‘Name Manager’ option from the ‘Formula’ tab or press Ctrl + F3. It will show you all the named ranges and table names in the workbook. Here, you can create, delete or edit the existing names.

Although you can check the scope of the named ranges in the ‘Name Manager’ dialog box, you can’t change it. You can only set the scope when creating a named range. Correct the named range accordingly or define a new named range to fix the issue.

Text Without Double Quotes (” “)

Entering a text value without double quotes in a formula will also cause the #NAME Error. If you enter any text values in the formulas, you must enclose them in double quotation marks (” “), even if you’re only using a space.

For example, the formula below is trying to look up the quantity of ‘Pig’ in the table using the VLOOKUP function. But, in B13, the text string ‘Pig’ is entered without double quotes (“ “) in the formula. So the formula returns the #NAME? error as shown below.

If there are quotes around a value, Excel will treat it as a text string. But when a text value is not enclosed in double-quotes, Excel considers it as a named range or formula name. When that named range or function is not found, Excel returns the #NAME? error.

Just enclose the text value “Pig” in double-quotes in the formula and the #NAME error will disappear. After quotes have been added, the VLOOKUP function returns the Pig’s quantity as ’15’.

Note: The text value needs to be enclosed with straight double quotes (i.e. “Dog”). If you enter a text value with smart quotes (i.e. ❝Dog❞), Excel won’t recognize these as quotes and will instead result in the #NAME? error.

Using New Version Formulas in Older Excel Versions

The functions that were introduced in the new Excel version don’t work on older Excel versions. For instance, new functions such as CONCAT, TEXTJOIN, IFS, SWITCH, etc. were added in Excel 2016 and 2019.

If you try to use these new functions in older Excel versions like Excel 2007, 2010, 2013 or open a file that contains these formulas in an older version, you’ll probably get a #NAME error. Excel doesn’t recognize these new functions because they don’t exist in that version.

Sadly, there is no fix to this issue. You simply can’t use the newer formulas in an older version of Excel. If you are opening a workbook in an older version, make sure you don’t include any of the newer functions in that file.

Also, If you save a workbook that has a macro with a formula using the ‘Save As’ option, but you didn’t enable the macros in the newly saved file, you’ll likely see a #NAME error.

Finding all #NAME? Errors in Excel

Let’s say you receive a large spreadsheet from a colleague and you’re not able to perform some calculations due to errors. If you don’t know where all of your errors lie, there are two different ways you can use to find #NAME errors in Excel. 

Using the Go To Special Tool

If you want to find any and all errors in your worksheet, you can do so with the Go To Special feature. The Go To Special Tool finds not only the #NAME? errors but all kinds of errors in a spreadsheet. Here’s how you do this:

Open the spreadsheet in which you want to select the cells with error, then, click on the ‘Find and Select’ icon in the Editing group of the ‘Home’ tab.

Alternatively, press F5 open the ‘Go To’ dialog and click the ‘Special’ option.

Either way, it will open the ‘Go to Special’ dialog box. Here, choose the ‘Formulas’ option, deselect all the other options under Formulas and then, leave the box that says ‘Errors’ selected. Then, click ‘OK’.

This will select all the cells that have any kind of error in them as shown below. After the error cells are selected, you can then treat them however you want.

Using Find and Replace

If you only want to find out the #NAME errors in the sheet, you can use the Find and Replace tool. Follow these steps:

First, select the range or select the entire worksheet (by pressing Ctrl + A) in which you want to find the Name error. Then, click ‘Find & Select’ in the ‘Home’ tab and select ‘Find’ or press Ctrl + F.

In the Find and Replace dialog box, type #NAME? in the ‘Find what’ field and click the ‘Options’ button.

Then, choose ‘Values’ in the ‘Look in’ drop-down, and then choose either ‘Find Next’ or ‘Find All’.

If you select ‘Find Next’, Excel selects the cells one by one that has the Name error which can be treated individually. Or, if you select ‘Find All’, another box will appear under the Find and Replace dialog that lists all the cells with the #NAME errors.

Avoiding #NAME? Errors in Excel

We have seen the most common cause of #NAME errors in Excel and how to fix and avoid them. But the best way to prevent the #NAME errors is to use the Function Wizard to enter formulas in the sheet.

Excel Function Wizard allows you to quickly generate valid functions. It provides you with a list of functions with syntax (range, criteria) which you can easily implement. Here’s how:

First, select the cell where you want to insert the formula. Then, you can either go to the ‘Formulas’ tab and click the ‘Insert Function’ option on the Function Library group or you can click on the Function Wizard button ‘fx’ located on the toolbar next to the formula bar.

You can also choose a function from any one of the categories available in the ‘Function Library’ under the ‘Formulas’ tab.

In the Insert Function dialog box, click on the drop-down menu next to ‘select a category’ and pick one of the 13 categories listed there. All the functions under the selected category will be listed in the ‘Select a function’ box. Select the function you want to insert and click ‘OK’

Alternatively, you can type the formula (you can also type a partial name) in the ‘Search for a function’ field and search for it. Then, double-click on the function or click ‘OK’.

This will open up the Function Arguments dialog box. Here, you need to enter the function’s arguments. For example, we want to look up the quantity of the ‘Pig’ in the table using the VLOOKUP function.

The Look_value is entered ‘Pig’. For Table_array, you can directly enter the range of the table (A1:D9) in the field or click the upward arrow button inside the field to select the range. Co_index_num is entered ‘3’ and Range_lookup is set to ‘TRUE’. Once, you have specified all the arguments, click the ‘OK’ button. 

You will see the result in the selected cell and the completed formula in the Formula bar.

Using the Formula Wizard can save you a lot of time and help you avoid the #NAME? errors in Excel.

That’s it.

RobbieL

Board Regular

Joined
Oct 4, 2007
Messages
109


  • #1

I have a sheet with a list of names on and I’ve noticed that when I use ctrl+F to use the find function, even when I know i have entered the correct name it still will not work. I have identifed times when I know the name is there on the sheet, but the find function says «Excel cannot find the data you are searching for»

Im unable to put any pics up as my work pc has java disable so photobucket ect won’t work but has anyone else come across this problem and how did you rectify it? A search macro perhaps?

Excel Facts

Format cells as time

Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

  • #2

Hi

Do you only have a single cell selected at the time you run Find? Also, make sure via the Options button when you go to Find that you don’t have «Match entire cell contents» checked (or possibly the «Match case» option either)

RobbieL

Board Regular

Joined
Oct 4, 2007
Messages
109


  • #3

Yes just a single cell selected and the 2 check boxes are not populated. If it would be more helpful I have taken a screen dump which I can upload later from my personal pc?

  • #4

I’m not sure why it wouldn’t be working — have you tried the usual things of closing and reopening the workbook? Go ahead and post a screenshot — hopefully someone will have an idea what the problem is.

Laxieryuah

New Member

Joined
Oct 31, 2017
Messages
11


  • #5

You can try also to select all then make find.
try this. press ctrl+a 2 times then you can find the word now by
pressing ctrl+f.

ZVI

ZVI

MrExcel MVP

Joined
Apr 9, 2008
Messages
3,875
Office Version
  1. 2019
  2. 2016
  3. 2010
Platform
  1. Windows


  • #6

May be Find format was set previously.
Try Ctrl-F — Format — Clear Find Format

JAWChemist

New Member

Joined
Apr 15, 2020
Messages
1
Office Version
  1. 2007
Platform
  1. Windows


  • #7

Old post but still seems to occur.
In the Find and Replace box, «Match entire cell contents» was not checked.
Checking it and un-checking it seemed to work.

File explorer found the file with an authors full name «Mair, B. J. and….». Using find and Within: Workbook did not find the worksheet.
In the worksheet with the entry, it did not find it even though clearly seen.
Used it to find cell with «Got» as the full cell entry. It found several. Tried it with Mair and it could not find it.
Even though the «Match entire cell contents» was unchecked, checked it and check mark appear, unchecked it and check mark disappeared.
It then found several cells with the partial information «Mair».

Rugger83

New Member

Joined
Jun 2, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows


  • #8

May be Find format was set previously.
Try Ctrl-F — Format — Clear Find Format

Thanks. This fixed my problem.

Similar threads

See all How-To Articles

This tutorial demonstrates some fixes for when Find and Replace is not working in Excel.

excel find not working 9

Common Issues and Fixes for Find Errors

In Excel, the Find & Replace feature makes the searching process faster and easier when you want to find specific information in a worksheet. But sometimes this feature can stop working.

Nonexistent Text

The most common reason for the error is that the string you’re searching doesn’t exist. Say you have a data set with prices in Columns A, B, and C.

excel find not working 10

If you enter text that doesn’t exist in the workbook in the Find what box and click Find All, Excel displays an error message.

excel find not working 9

It’s normal to get the error message above if you search for nonexistent text. But if you try to find and replace a text string that does exist in the workbook and you still get this error message, try the following solutions.

Replace All Without Find All

If you forget to click the Find All or Find Next option before clicking the Replace All or Replace option, it results in the error message: Microsoft Excel cannot find a match.

excel find not working 6

To fix this mistake, first click the Find All (or Find Next) button, and then press the Replace All (or Replace).

excel find not working 7

Wrong Cell Selection

If it’s only one cell selected, Excel goes through the entire worksheet.

excel find not working 5

If more than one cell is selected, then the Find option from the Find & Replace feature is only applied to those cells.

excel find not working 4

So, to fix this problem, check that you made the right cell selection or just select a single cell in order to apply the Find option to the entire worksheet (orworkbook).

Protected Sheet

Another possible reason why Find doesn’t work is that your sheet is protected. In a protected sheet, you can find text, but you won’t be able to make any changes with Replace.

excel find not working 1

To fix this problem, in the Ribbon, go to Review and click on Unprotect Sheet icon.

excel find not working 2

In the dialog box, enter the password to unlock it.

excel find not working 3

As a result, you should be able to use the Find & Replace feature on your worksheet.

Corrupted Excel Worksheet

Sometimes the Find & Replace feature won’t work because the data you are looking for is actually missing from the worksheet due to Excel file corruption. In this case, the best thing you can do is to repair the file using the Restore function.

See also: Using Find and Replace in Excel VBA and Find & Replace Question Marks and Asterisks

Purpose 

Test multiple conditions with OR

Return value 

TRUE if any arguments evaluate TRUE; FALSE if not.

Usage notes 

The OR function returns TRUE if any given argument evaluates to TRUE, and returns FALSE only if all supplied arguments evaluate to FALSE. The OR function can be used as the logical test inside the IF function to avoid nested IFs, and can be combined with the AND function.

The OR function is used to check more than one logical condition at the same time, up to 255 conditions, supplied as arguments. Each argument (logical1, logical2, etc.) must be an expression that returns TRUE or FALSE or a value that can be evaluated as TRUE or FALSE. The arguments provided to the OR function can be constants, cell references, arrays, or logical expressions. 

The purpose of the OR function is to evaluate more than one logical test at the same time and return TRUE if any result is TRUE. For example, if A1 contains the number 50, then:

=OR(A1>0,A1>75,A1>100) // returns TRUE
=OR(A1<0,A1=25,A1>100) // returns FALSE

The OR function will evaluate all values supplied and return TRUE if any value evaluates to TRUE. If all logicals evaluate to FALSE, the OR function will return FALSE. Note: Excel will evaluate any number except zero (0) as TRUE.

Both the AND function and the OR function will aggregate results to a single value. This means they can’t be used in array operations that need to deliver an array of results. To work around this limitation, you can use Boolean logic. For more information, see: Array formulas with AND and OR logic.

Examples

For example, to test if the value in A1 OR the value in B1 is greater than 75, use the following formula:

=OR(A1>75,B1>75)

OR can be used to extend the functionality of functions like the IF function. Using the above example, you can supply OR as the logical_test for an IF function like so:

=IF(OR(A1>75,B1>75), "Pass", "Fail")

This formula will return «Pass» if the value in A1 is greater than 75 OR the value in B1 is greater than 75.

Array form

If you enter OR as an array formula, you can test all values in a range against a condition. For example, this array formula will return TRUE if any cell in A1:A100 is greater than 15:

=OR(A1:A100>15)

Note: In Legacy Excel, this is an array formula and must be entered with control + shift + enter.

Notes

  • Each logical condition must evaluate to TRUE or FALSE, or be arrays or references that contain logical values.
  • Text values or empty cells supplied as arguments are ignored.
  • The OR function will return #VALUE if no logical values are found

Sub SM_Z()  
‘  
‘ Макрос записан 02.03.2005 (Efimov)  
‘  
   FRM = «=MAX(‘[Список студентов.xls]Список групп’!R4C1:R13C1)»
   Range(«B5»).Formula = FRM  
   m = 3 + Range(«B5»).Value  
   ActiveSheet.Shapes(«Group»).Select  
   With Selection  
       .ListFillRange = «‘[Список студентов.xls]Список групп’!$B$4:$B$» & m
       .LinkedCell = «$I$3»  
       .DropDownLines = Range(«B5»).Value  
       .Display3DShading = True  
   End With  

     Range(«E2»).Select  
   ActiveCell.FormulaR1C1 = _  
       «=VLOOKUP(R3C9,'[Список студентов.xls]Список групп’!R4C1:R13C2,2)»
       ActiveSheet.Shapes(«Bill»).Select  
   GR = Range(«E2»).Value  
   FRM = «=MAX(‘[Список студентов.xls]» & GR & «‘!R8C1:R38C1)»
   Range(«A5»).Formula = FRM  
   m = 7 + Range(«A5»).Value  
   With Selection  
       .ListFillRange = «‘[Список студентов.xls]» & GR & «‘!$B$8:$B$» & m
       .LinkedCell = «$A$4»  
       .MultiSelect = xlNone  
       .Display3DShading = True  
   End With  
   FRM = «=VLOOKUP(R4C1,'[Список студентов.xls]» & GR & «‘!R4C1:R» & m & «C4,2)»
   Range(«B4»).Select  
   ActiveCell.FormulaR1C1 = FRM  

         FRM = «=VLOOKUP(R4C1,'[Список студентов.xls]» & GR & «‘!R4C1:R» & m & «C4,3)»
   Range(«D4»).Select  
   ActiveCell.FormulaR1C1 = FRM  

         FRM = «=VLOOKUP(R4C1,'[Список студентов.xls]» & GR & «‘!R4C1:R» & m & «C4,4)»
   Range(«F4»).Select  
   ActiveCell.FormulaR1C1 = FRM  

         If ActiveSheet.Name = «Задание» Then  
       Prep = «='[Список студентов.xls]» & GR & «‘!R5C4»
       Range(«I23»).Formula = Prep  
   End If  
End Sub  

  Sub Print_zsm()  
‘  
   N = Range(«A5»)  
   For i = 1 To N  
       Range(«A4»).Value = i  
       Application.Run «‘Комплектование машин по объектам строительства__мг_mod.xls’!GSN»  
       pa = «A1:» & Cells(1, 1)  
       ActiveSheet.PageSetup.PrintArea = pa  
       ActiveSheet.PageSetup.PrintArea = pa  
       With ActiveSheet.PageSetup  
           .LeftMargin = Application.InchesToPoints(0.78740157480315)  
           .RightMargin = Application.InchesToPoints(0.78740157480315)  
           .TopMargin = Application.InchesToPoints(0.78740157480315)  
           .BottomMargin = Application.InchesToPoints(0.78740157480315)  
           .HeaderMargin = Application.InchesToPoints(0.511811023622047)  
           .FooterMargin = Application.InchesToPoints(0.511811023622047)  
           .PrintQuality = 600  
           .CenterHorizontally = True  
           .CenterVertically = True  
           .Orientation = xlLandscape  
           .PaperSize = xlPaperA4  
           .FitToPagesWide = 1  
           .FitToPagesTall = 1  
       End With  
       ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True  
   Next i  
End Sub  
Sub GSN()  
‘  
‘ Макрос1 Макрос  
‘ Макрос записан 18.06.2009 (Владимир Ефимов)  
‘  

  ‘  
   Dim c(8) ‘ массив для значений ядра  
   Dim s(200) ‘ массив для случайных чисел  
   c(1) = 37584381  
   c(2) = 190999663  
   c(3) = 196446317  
   c(4) = 123567149  
   c(5) = 1480745561  
   c(6) = 442596621  
   c(7) = 340029183  
   c(8) = 203022663  

       Range(«F3»).Select  
   ActiveCell.FormulaR1C1 = _  
       «=RIGHT(RC[-2],LEN(RC[-2])-FIND(«»-«»,RC[-2],LEN(RC[-2])-3))»
   nc = Cells(3, 6)  
   If nc > 8 Then nc = 8  
   mn = Len(Cells(4, 2)) & Len(Cells(4, 4)) & Len(Cells(4, 6)) + Cells(4, 1)  
   mnm = mn Mod 2  
   If mnm = 0 Then mn = mn + 1  
   bb = c(nc) * mn  
   mn = Right(bb, 4)  
   For i = 1 To 200  
      bb = c(nc) * mn  
      mn = Right(bb, 4)  
      s(i) = Right(bb, 8) / 100000000  
      ‘Cells(i + 5, 9) = s(i)  
   Next i  
‘  
‘———   конец генератора случайных чисел ———  
‘  
   ni = 10  
   nj = 10  
   For i = 1 To ni  
      For j = 1 To nj  
          k = j + nj * (i — 1)  
          Cells(i + 9, j + 1) = Cells(10, 12) — Cells(10, 13) + 2 * Cells(10, 13) * s(k)  
      Next j  
   Next i  
‘  
‘  ——- заполнили матрицу затрат  
‘  
   If ActiveSheet.Name = «Решение» Then  
       [B56:K65] = 0
       SolverOk SetCell:=»$D$54″, MaxMinVal:=2, ValueOf:=»0″, ByChange:=»$B$56:$K$65″  
       SolverSolve UserFinish:=True  
   End If  
End Sub  

  Sub Main_m()  
   Application.Run «‘Комплектование машин по объектам строительства__мг_mod.xls’!SM_Z»  
   Application.Run «‘Комплектование машин по объектам строительства__мг_mod.xls’!GSN»  
End Sub  

    Первый раз имею дело с макросами.  
Надеюсь то что надо скопировал

Понравилась статья? Поделить с друзьями:
  • Excel find all cells with value
  • Excel financial function in
  • Excel financial analysis это
  • Excel financial analysis официальный сайт
  • Excel filtering with formulas