+ Reply to Thread
Results 1 to 11 of 11

#NAME? In cell with correct Foruma

  1. #1
    Registered User
    Join Date
    08-19-2013
    Location
    BH
    MS-Off Ver
    Excel 2003
    Posts
    7

    #NAME? In cell with correct Foruma

    Hi
    Know when Excel recognizes a number as text?
    How to solve this in macro? Say in macro why I have to do this on multiple worksheets with MANY cells in which this problem occurs.

    Like the number problem I have a similar problem on a formula that Excel is recognizing as #Name?. I know what You thought, but the formula is correct. Is a simple If, see exactly what is typed in the cell = IF (B5 = "2", "two is"; "Another thing")

    If I enter the cell and press enter (press F2 and enter, even without changing anything) Excel recognizes the formula. But like as the problem of numbers recognized as text, I can not edit cell by cell. I need a macro to solve this problem happens in 12 columns of my spreadsheet with over 5,000 rows ¬ ¬

    Sorry for the first language mistake. I have arranged my question, now in english.
    Any idea? Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: #NAME? In cell with correct Foruma

    Hi,

    Are you able to upload the workbook?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-19-2013
    Location
    BH
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: #NAME? In cell with correct Foruma

    Hi Richard. You say like as:
    ActiveSheet.Calculate
    I try now but not work, and the automatic calculated is able.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: #NAME? In cell with correct Foruma

    Please upload the workbook as requested.

  5. #5
    Registered User
    Join Date
    08-19-2013
    Location
    BH
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: #NAME? In cell with correct Foruma

    Ok Richard, see this telluric forces. Kkkk!
    It only recognizes the formula when it enters and exits the cell, even without changing anything.
    Attached Files Attached Files

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: #NAME? In cell with correct Foruma

    Hi,

    What is your equivalent of the IF function in the language version you are using? Are you sure that you are not using a version of Excel in which SE() is NOT the correct syntax for this function (perhaps you are actually using an English version of Excel)?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  7. #7
    Registered User
    Join Date
    08-19-2013
    Location
    BH
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: #NAME? In cell with correct Foruma

    To do this (in the attach in previous post), put a wrong formula in the cell. How IFFF = (B2 = 3; "true", "false"). So I created a macro that fixes it.

    Sub XXX()
    Selection.Replace What:="IFFF(", Replacement:="IF(", LookAt:=xlPart, _
    SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False
    End Sub


    The result is a correct formula but is not recognized by Excel like a formula.
    How can I fix this by macro?

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: #NAME? In cell with correct Foruma

    Quote Originally Posted by XOR LX View Post
    Hi,

    What is your equivalent of the IF function in the language version you are using? Are you sure that you are not using a version of Excel in which SE() is NOT the correct syntax for this function (perhaps you are actually using an English version of Excel)?

    Regards
    1/. Have you tried this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You might have to change the commas to semi-colons.

    2/. Why is B5 text and not a number?

  9. #9
    Registered User
    Join Date
    08-19-2013
    Location
    BH
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: #NAME? In cell with correct Foruma

    Hi, thanks for replyes.
    My Software is in português. Then IF() function is SE() function. For the hurry I forgot translate the example workbook. But it is not the problem cause.

    You can do a simulation of the error right there. Folow this steps:
    1- put a wrong formula in the cell. How IFFF = (B2 = 3; "true", "false").
    2-So I created a macro that fixes it.
    Sub XXX()
    Selection.Replace What:="IFFF(", Replacement:="IF(", LookAt:=xlPart, _
    SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False
    End Sub


    The result is a correct formula but is not recognized by Excel like a formula.

  10. #10
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: #NAME? In cell with correct Foruma

    Are you not trying to compare text with a number, my point #2?

    Sometimes you say
    B2 = 3
    others you say
    B2 = "3"
    In your sample workbook the "numbers" are text, not numbers.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  11. #11
    Registered User
    Join Date
    08-19-2013
    Location
    BH
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: #NAME? In cell with correct Foruma

    Hi Marcol.
    You're right. But this is not the focus of my problem. Is only a exemple.
    My problem is: How, by macro, I can make Excel recognize that there is a formula in cell C5?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. copy and pasting a foruma and shifting reference celsl
    By zippersweater in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2013, 01:40 PM
  2. Summing cells containing a text string within an array foruma
    By absintheminded in forum Excel General
    Replies: 5
    Last Post: 09-08-2010, 06:00 PM
  3. help with this foruma
    By jladika in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-15-2008, 09:20 PM
  4. Excel->Data->Validation Foruma Query
    By rahul26 in forum Excel General
    Replies: 2
    Last Post: 06-12-2008, 03:07 AM
  5. Replies: 3
    Last Post: 05-17-2008, 05:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1