+ Reply to Thread
Results 1 to 15 of 15

[SOLVED] error #NAME?

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    [SOLVED] error #NAME?

    Hello,
    I'm trying a formula like this:

    = IF (B2 <18, "Young", IF (AND (B2> 18, B2 <65), "Mature"; "Elder"))

    why continue to leave in C2 (where the formula is entered) # NAME? if I write any number in B2?
    max_max

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: error #NAME?

    Hi Maxmax, two things:
    I'm not sure if you spaced out the equation just for ease of reading, but if it's actually written like that, Excel doesn't like spaces too much. But other than that, the ; after "Mature" needs to be a ,

    There may be some localization with the Italian version of Excel that I'm unaware of, but let me know if that does the trick.
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: error #NAME?

    There seems to be nothing wrong with the structure of the formula.

    What is the ; for?

    If your version used the ; then it should be in place of all the , or use all ,.

    What happens when you change "Mature","Elder"
    HTH
    Regards, Jeff

  4. #4
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: error #NAME?

    Not what you asked for, but people of exactly 18 years old will be called Elders in your formula
    When I say semicolon, u say comma!

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: error #NAME?

    = lookup(b2, {0,18,65}, {"Young","Mature","Elder"})
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: error #NAME?

    Excuse me,
    I found the error: I did copy / paste wrong:
    = IF (B2 <18, "Young", IF (AND (B2> 18, B2 <65), "Mature"; "Elder"))
    the symbol " included in the formula in the sheet was not accurate.
    max_max

  7. #7
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: error #NAME?

    In Italian this formula:

    = lookup(b2, {0,18,65}, {"Young","Mature","Elder"})

    should be:

    = Lookup(b2;{0;18;65};{"Young";"Mature";"Elder"})

    but does not work.
    max_max

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: error #NAME?

    Your age levels are not well defined.

    If B2 = 18 what result do you expect?
    If B2 = 65 what result do you expect?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: error #NAME?

    If B2 = 18 = young
    If B2 = 65 = elder

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: error #NAME?

    Try this...

    =IF(COUNT(B2),IF(B2>=65,"Elder",IF(B2>18,"Mature","Young")),"")

    Replace the commas with semi-colons if needed.

  11. #11
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: error #NAME?

    Formula Tony Valko translated into Italian:

    =SE(CONTA.NUMERI(B2);SE(B2>=65;"Anziano";SE(B2>18;"Maturo";"Giovane"));"")

    thank you
    max_max

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: error #NAME?

    You're welcome. Thanks for the feedback!

  13. #13
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: error #NAME?

    Hello to all,
    SGH formula:

    = Lookup (b2, {0,18,65}, {"Young", "Mature", "Elder"})

    translated into Italian:

    = CERCA(B2;{0;18;65};{"Young";"Mature";"Elder"})

    Thanks to all from Italy
    max_max

  14. #14
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: error #NAME?

    = CERCA(B2;{0;19;65};{"Young";"Mature";"Elder"}) if 18=young
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  15. #15
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: error #NAME?

    thanks martin

+ 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. [SOLVED] Run time error 75 (Path/File Access Error)
    By Riggers in forum Excel Programming / VBA / Macros
    Replies: 44
    Last Post: 03-05-2012, 04:51 PM
  2. #Value Error Still Not Solved
    By bbheli in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2011, 10:58 AM
  3. [SOLVED] [SOLVED] DIV/O Error
    By Melissa in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 08-18-2006, 01:30 PM
  4. [SOLVED] #VALUE! Error
    By DJL in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-24-2005, 05:45 PM
  5. [SOLVED] [SOLVED] error 400...
    By thomas in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-24-2005, 02:05 PM

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