+ Reply to Thread
Results 1 to 13 of 13

Issue with nesting in 2010

  1. #1
    Registered User
    Join Date
    05-03-2012
    Location
    Bloomington, MN
    MS-Off Ver
    Excel 2010
    Posts
    4

    Issue with nesting in 2010

    =IF(ISNUMBER(FIND("2002",P120)),"Above",IF(ISNUMBER(FIND("2003",P120)),"Above",IF(ISNUMBER(FIND("2004",P120)),"Above",IF(ISNUMBER(FIND("2005",P120)),"Above",IF(ISNUMBER(FIND("2005",P120)),"Above",IF(ISNUMBER(FIND("2006",P120)),"Above","Below"))))))

    I am trying to create this formula that works but I need to look for all years from 2002-2012 in the text string. More specifically, I need it to return "Above" if excel finds any of 2002, 2003, 2004, etc.. all the way up to 2012. The above is the max that is being allowed... when I complete the formula to include all my needed search... excel tells me its too many nested arguments. What can I do to make this shorter?

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

    Re: Issue with nesting in 2010

    If those are numbers you do not need the "".

    Try

    =IF(AND(P120>=2002,P120<=2012),"Above","Below")
    HTH
    Regards, Jeff

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

    Re: Issue with nesting in 2010

    assuming there is other text in the cell
    =IF(ISNUMBER(--LOOKUP(2^15,SEARCH({"2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012"},P120),{"2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012"})),"above","below")
    "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

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Issue with nesting in 2010

    ok i know this is (kinda) off-topic, and im sure its been asked before (by me perhaps - i have seen it used often), but what the heck does the 2^15 do in that formula, and why/how do you use it?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Issue with nesting in 2010

    It is a very large number.

    2 to the 15th power = 2^15 = 32768. 32768 is one more character than is allowed in a cell. 32767 characters are allowed in a cell.

    You could also use 9.99999999999999E+307 See this

    Of course I could also be missing something

    You could also you this as a function to get that same number

    =POWER(2,15)
    Last edited by jeffreybrown; 05-03-2012 at 07:54 PM.

  6. #6
    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: Issue with nesting in 2010

    Another wild guess without a sample of your data ...a
    Please Login or Register  to view this content.
    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.

  7. #7
    Registered User
    Join Date
    05-03-2012
    Location
    Bloomington, MN
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Issue with nesting in 2010

    I should have been more specific... there is text in the data. the cells comprise of years, makes, and models of vehicles and I am simply trying to seperate any cells that have any models 2002 and newer from those 2001 and older.

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

    Re: Issue with nesting in 2010

    Yes, specifics are ofter important when trying to ascertain the method to answer your OP.

    Care to post a sample workbook with what you have and what you expect?

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Issue with nesting in 2010

    =IF(COUNT(FIND({2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012},P120)),"above","below")
    entered normally or for a mite of future-proofing
    =IF(COUNT(FIND(2001+ROW(INDIRECT("1:100")),P120)),"above","below" )
    array-entered.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

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

    Re: Issue with nesting in 2010

    i think post #3 or #9 should do it ,if not what's wrong?

  11. #11
    Registered User
    Join Date
    05-03-2012
    Location
    Bloomington, MN
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Issue with nesting in 2010

    # 3 did a great job... so thank you. One last question.. What If wanted to pull my search criteria, i.e the 2002, 2003, 2004, etc from another cell on another page?

  12. #12
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Issue with nesting in 2010

    =IF(COUNT(FIND('some sheet'!A1:A10,P120)),"above","below")
    array-entered oughta work.

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

    Re: Issue with nesting in 2010

    a rethink gives
    =IF(ISNUMBER(--LOOKUP(2^15,SEARCH(ROW($A$2002:$A$2099),'some sheet'!P120),ROW($A$2002:$A$2099))),"above","below")

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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