+ Reply to Thread
Results 1 to 3 of 3

Line fails until subsequent line is added.

  1. #1
    Registered User
    Join Date
    11-21-2014
    Location
    Colorado
    MS-Off Ver
    2011 for Mac
    Posts
    2

    Line fails until subsequent line is added.

    I have a spreadsheet that I use to calculate my golf handicap. It is pretty complicated, and worked until recently.

    The error I have is odd. The latest line has has some errors #N/A - but when I add a new line, the error moves to the new last line. Typically, the spreadsheet looks at the last 20 entries on the main page. Actually it is the 20 rows with the most recent dates. I am now at row 335. Periodically, I have to expand the spreadsheet by copying lines down another hundred rows (there should be a better way to do this)

    Column B has an "0" if the entry is one of the 10 best rounds of my last 20 rounds of golf. Column J has a calculated value based upon my round's score and the difficulty of the course.

    L is hidden and L35 is =IF(AND(F335>='Performance Statistics'!$E$7,F335<='Performance Statistics'!$E$8,C335<21),1/J335+(RAND()/10000),0)When I unhide it, I see #N/A, so I test by replacing it with =1/J335+(RAND()/10000 That calculates correctly, but doesn't fix the other problems.

    B shows a number between 1 & 20 going from the latest date to the earliest It is #N/A for the last line:
    =IF(AND(F335>='Performance Statistics'!$E$7,F335<='Performance Statistics'!$E$8,G335>0),RANK(F335,$F$4:INDIRECT("F"&$Q$10)),500)

    C is a ranking of the corresponding scores
    =IF(AND(F335>='Performance Statistics'!$E$7,F335<='Performance Statistics'!$E$8,G335>0),RANK(L335,$L$4:INDIRECT("L"&$Q$10)),500)

    'Performance Statistics'!$E$8 has the end date 4/11/29
    'Performance Statistics'!$E$7 has the start date 6/20/51

    I'm using Excel 2011 for Mac.

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

    Re: Line fails until subsequent line is added.

    I answered a similar question yesterday.

    Get the average of the 10 lowest values from the 20 most recent dates...

    http://www.excelforum.com/excel-form...er-column.html

    Maybe you can use it.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    11-21-2014
    Location
    Colorado
    MS-Off Ver
    2011 for Mac
    Posts
    2

    Re: Line fails until subsequent line is added.

    That looks simpler than what I was doing - but mine worked until recently. And mine *still* works if I add a fake new line. Somehow my problem occurred when I got too many rows - Back when I only had 300 rows it worked fine!

+ 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. Menu with options that will be added to the next line
    By jacob999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2014, 05:12 AM
  2. Inserting new line with formula's already added
    By benbaker9876 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2012, 08:57 AM
  3. [SOLVED] Comparing two data sets that don't line up on a line to line basis
    By ghan7650 in forum Excel General
    Replies: 10
    Last Post: 05-22-2012, 05:38 PM
  4. Merge and line break added.. How To?
    By amiart in forum Excel General
    Replies: 1
    Last Post: 04-12-2005, 04:06 PM
  5. [SOLVED] Macro problem on, Yellowed line - previous line or next line.
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-29-2005, 07:06 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