+ Reply to Thread
Results 1 to 7 of 7

Suggestions for alternative to using "IF" and "AND" functions, I have exceeded 64 levels.

  1. #1
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Suggestions for alternative to using "IF" and "AND" functions, I have exceeded 64 levels.

    Hi, I was using
    Please Login or Register  to view this content.
    with some other formulas to open a pdf file within various folders based on year and month, =2015 is the year and =4 is the month.
    I now have too many years, excel error says no more than 64 levels. I currently need to go up to 2021 March.


    I am looking for suggestions for how I may be able to accomplish this please!
    Many thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Suggestions for alternative to using "IF" and "AND" functions, I have exceeded 64 lev

    I'm sure there is a way to construct this string without the IF/AND, but you need to explain how you are getting the file names. How you get "2015-16" from April 2015, and why are April and May both "2015-16"?

    P.S. Nice user name!
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Suggestions for alternative to using "IF" and "AND" functions, I have exceeded 64 lev

    =IF(AND(H21=2015,I21=4),"2015-16",IF(AND(H21=2015,I21=5),"2015-16"))

    What does the "16" in "2015-16" represent and should the second instance also be "2015-16" ??

  4. #4
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: Suggestions for alternative to using "IF" and "AND" functions, I have exceeded 64 lev

    Please see attached file, I hope it makes it a little clearer.
    Attached Files Attached Files

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Suggestions for alternative to using "IF" and "AND" functions, I have exceeded 64 lev

    This formula will compose the folder name based on C5 and D5. It will work for any year.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    P.S. Future reference: It would have helped immensely to mention in your first post that 2015-16 means a fiscal year from April 2015 to March 2016.

  6. #6
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: Suggestions for alternative to using "IF" and "AND" functions, I have exceeded 64 lev

    6StringJazzer. Thank you very much for the code, perfect thanks. Apologies for the initial lack of detail.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Suggestions for alternative to using "IF" and "AND" functions, I have exceeded 64 lev

    Glad to help! And I will think of you every time I pick up a tuning fork.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Help on "IF", "FIND", "SUBSTITUTE", & "LEFT/RIGHT" FUNCTIONS
    By pooja135 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-20-2018, 03:56 PM
  3. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  4. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. Replies: 5
    Last Post: 06-26-2006, 09:23 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