+ Reply to Thread
Results 1 to 6 of 6

Why do my formulas stop working when I save, close, and then re-open my spreadsheet?

Hybrid View

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    3

    Thumbs up Why do my formulas stop working when I save, close, and then re-open my spreadsheet?

    I am copying a formula that pulls data from the immediate group of cells below in the same column. the formula is =MIN((G6:G20>0,G6:G20)). When I copy and paste and change the cells in the formula so that the same formula is now pulling data from the immediate group of cells across in the same row, the formula also works just great. EXCEPT, when I save. close and re-open the workbook, and I change the value of one of the data cells, the formula output displays #value.

    What I am trying to do is I have one of 4 options that go in the data cells - 0,1,2,3. I want the output cell where the formula is to display the lowest option greater than 1. So if all the cells to the right of the formula cell have the number 3, but one has a 2 and another has a 0, the output cell will display 2 because that is the lowest number greater than 1.

    Do I need a different formula since I am now pulling data horizontally instead of vertically? Is there some way to protect the formula? It doesn't appear to be changing, so I'm not sure why once I re-open, now the correct answer won't appear.
    Last edited by Mary_moe84; 12-15-2011 at 10:37 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,121

    Re: Why do my formulas stop working when I save, close, and then re-open my spreadshe

    Please post a sample workbook.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-14-2011
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Why do my formulas stop working when I save, close, and then re-open my spreadshe

    Here is the sample. As you see on sheet 1, you can change the stop lights to 0-3, and the appropriate change will be made in the summary row - changing to the min value greater than 0, so if you enter a 0 resulting in a black circle, the summary row will never turn black, but default to the next lowest vlaue.

    However, on sheet 2, when I have copied the exact formula, and you can try it, and transpose so the summary row is now a summary column, I get the #value error once I save and close and re-open the file. Go ahead and try it - you can get the formula to work, but once you close and reopen, that is when you begin to get the error.

    Thanks!!!!
    Attached Files Attached Files

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

    Re: Why do my formulas stop working when I save, close, and then re-open my spreadshe

    its an array formula you have to enter it using ctrl+shift +enter see link in my signature "how to enter array formula"
    or you could avoid it by using
    =SMALL(C3:Q3,1+COUNTIF(C3:Q3,0))
    instead
    Last edited by martindwilson; 12-14-2011 at 06:30 PM.
    "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

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Why do my formulas stop working when I save, close, and then re-open my spreadshe

    If you have negative numbers change Martin's formula to;

    =SMALL(C3:Q3,1+COUNTIF(C3:Q3,"<=0"))

    Or,

    =SMALL(C3:Q3,FREQUENCY(C3:Q3,0)+1)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    12-14-2011
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Why do my formulas stop working when I save, close, and then re-open my spreadshe

    Thanks Haseeb and Martin. We had 4 people trying to figure this out, and it's nice to have 2 ways to do it.

    -Mary

+ 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