+ Reply to Thread
Results 1 to 12 of 12

Formula causing name error, where is the error?

  1. #1
    Forum Contributor
    Join Date
    01-29-2018
    Location
    United states
    MS-Off Ver
    2019
    Posts
    242

    Formula causing name error, where is the error?

    Ok I finally got this to work as I want to report the values needed, but I get a name error

    If C21,C22,C23 has a number value AA14 should read Tri sodium phosphate, AA15 Disodium phosphate, AA16 mono sodium phosphate, and AA17 phosphate. This works fine no issues

    If C21,C22 has a number AA14 should read Di sodium phosphate, AA15 should read Mono sodium phosphate, and AA16 should read phosphate, and AA17 should be blank, However I am getting a name error there

    If C21 has a number, AA14 should read Mono sodium phosphate, and AA15 should read Phosphate, and AA16, AA17 should be blank, but I am getting a name error there


    Now when C21 has no number value AA14 should read Phosphate, and AA15,AA16,AA16 should be blank which they are and is working correctly.

    So what is causing the #NAME? errors when the C21 and C22 have a number value??


    Please help

    I have been struggling with this for close to a day
    Attached Files Attached Files
    Last edited by AliGW; 02-09-2020 at 06:17 AM. Reason: Irrelevant section of title removed: this is a HELP forum!!!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,756

    Re: Please help, Formula causing name error, where is the error?

    AA17 shows Phosphate here, not an error.

    AA16 shows Mono Sodium Phosphate.

    I can't troubleshoot a workbook that isn't showing any errors such as you suggest.

    Excel 2016 (Windows) 32 bit
    AA
    AB
    AC
    AD
    14
    Tri Sodium Phosphate
    15
    Di Sodium Phosphate
    16
    Mono Sodium Phosphate
    17
    Phosphate
    18
    Sheet: Acetic Acid

    Please update your forum profile if you are no longer using Excel 2007.
    Last edited by AliGW; 02-09-2020 at 06:16 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Formula causing name error, where is the error?

    Your problem is using different double quotes =IF(AND(C21="";C22="");"";IF(AND(C22="";C23="");””;IF(AND(C23="";C24="");AF14;IF(C23<>"";AG14;""))))

    Try =IF(AND(C21="";C22="");"";IF(AND(C22="";C23="");"";IF(AND(C23="";C24="");AF14;IF(C23<>"";AG14;""))))

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,756

    Re: Formula causing name error, where is the error?

    Nice spot, Pepe!

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Formula causing name error, where is the error?

    @Ali
    If you delete C22 and C23 the error triggers

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,756

    Re: Formula causing name error, where is the error?

    I do wish members would provide workbooks showing the error - we shouldn't be having to jump through hoops to find it!

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Formula causing name error, where is the error?

    I already get the creeps when I see merged cells
    This being said you are , as usual, right !

  8. #8
    Forum Contributor
    Join Date
    01-29-2018
    Location
    United states
    MS-Off Ver
    2019
    Posts
    242

    Re: Please help, Formula causing name error, where is the error?

    Aligw here is the new book showing the errors
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    01-29-2018
    Location
    United states
    MS-Off Ver
    2019
    Posts
    242

    Re: Formula causing name error, where is the error?

    Pepe, That did it Thank YOU

    I could not find the problem and it drove me NUTS!!!
    Last edited by AliGW; 02-09-2020 at 07:13 AM. Reason: Please don't quote unnecessarily!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,756

    Re: Formula causing name error, where is the error?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  11. #11
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Formula causing name error, where is the error?

    Quote Originally Posted by born2dive00 View Post
    Pepe, That did it Thank YOU

    I could not find the problem and it drove me NUTS!!!
    I just used the "evaluate formula" tool when the formula went berserk. It's not perfect but it does help

  12. #12
    Valued Forum Contributor
    Join Date
    08-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, Office 365
    Posts
    467

    Re: Formula causing name error, where is the error?

    When a big spreadsheet formula gives an error, I try to locate the cause of the error by highlighting each section of the formula in the formula-bar, and pressing the F9 calc-button. If the highlighted-section doesn't show an error with the F9 calc-button, I press [Esc] to cancel that, and highlight a different section, press F9 calc again, etc etc etc.

    zeddy

+ 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. Drop Down Causing Formula Error Between Worksheets?
    By spurredhal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-15-2013, 06:34 PM
  2. VLOOKUP Formula causing an error
    By japc90 in forum Excel General
    Replies: 2
    Last Post: 07-25-2006, 06:40 PM
  3. [SOLVED] Formula Causing a Save Error Message
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  4. Formula Causing a Save Error Message
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. [SOLVED] Formula Causing a Save Error Message
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] Formula Causing a Save Error Message
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 05:05 AM
  7. Formula Causing a Save Error Message
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  8. [SOLVED] Formula Causing a Save Error Message
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 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