+ Reply to Thread
Results 1 to 6 of 6

formula is not working; however, it worked on previous versions of the same file

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    Lake Elsinore
    MS-Off Ver
    Excel 2010
    Posts
    46

    Unhappy formula is not working; however, it worked on previous versions of the same file

    Hello,

    I currently have a workbook that has several sheets and one of the array formulas has quit working. In previous version of the workbook the formula works. I had to add columns to the sheet that contains the formula but that's the only change that I've made. The formula actually works on a few lines but then it stops. I've gone through the workbook and cleared the contents in columns and row that I'm not using, I've gone back to a version of the file that worked, I've gone into each of the cells and hit Ctrl + Shft - and I've closed and reopened Excel in hopes to figure out the problem but no luck. Below is the formula that's causing me such pain (it is repeated down to 2600 rows)

    =IFERROR(INDEX(EN$5:EN$2298,SMALL((IF(LEN(EN$5:EN$2298),ROW(INDIRECT("1:"&ROWS(EP5:EP$2298))))),ROW(A1)),1),"")
    =IFERROR(INDEX(EN$5:EN$2298,SMALL((IF(LEN(EN$5:EN$2298),ROW(INDIRECT("1:"&ROWS(EP6:EP$2298))))),ROW(A2)),1),"")
    =IFERROR(INDEX(EN$5:EN$2298,SMALL((IF(LEN(EN$5:EN$2298),ROW(INDIRECT("1:"&ROWS(EP7:EP$2298))))),ROW(A3)),1),"")

    formula works up to the 3rd role - and nothing after that.

    PLEASE HELP - I've been working on this for hours and have tries several ways of completing it.

    Regards,

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: formula is not working; however, it worked on previous versions of the same file

    You lost me at IF(LEN(EN$5:EN$2298)..

    Under what condition is this true?

  3. #3
    Registered User
    Join Date
    10-11-2012
    Location
    Lake Elsinore
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: formula is not working; however, it worked on previous versions of the same file

    Not sure of what you are asking.

    The purpose of this formula is to look at column EN5 through EN2298 and create a list. Column EN is contains IF statements based on several cells and if there is a result is will be populated if not the cell will be a blank. I can't have any blank spaces in the list so that is why column EN has the formula listed above. The LEN portion of the fomula was given to me - was told that I needed it to make sure the list would be in numerical / alpha order and that it would eliminate any blank cells.


    Hope this helps.

  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
    52,946

    Re: formula is not working; however, it worked on previous versions of the same file

    Did you make sure that they were entered AS array formulas?

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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 Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: formula is not working; however, it worked on previous versions of the same file

    I can't help but feel as though the expression is missing a term.

    The statement appears to read as "IF THE LENGTH OF EN5 TO EN2298" but there's no qualifying statement.

    It's not being compared to anything. If you are able to desensitize your information and post an example, it would be considerably easier to troubleshoot what went wrong than to picture it in our heads.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formula is not working; however, it worked on previous versions of the same file

    Just curious. What LEN function over range of cell supposed to accomplish. I've never seen such implementation of this function anywhere.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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: 1
    Last Post: 09-05-2013, 02:39 PM
  2. Replies: 2
    Last Post: 11-15-2012, 10:52 AM
  3. Replies: 1
    Last Post: 01-02-2012, 02:47 PM
  4. vacation accrual formula based on previous year avg hours worked
    By lfox in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-05-2009, 03:41 PM
  5. Replies: 3
    Last Post: 10-08-2005, 03: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