+ Reply to Thread
Results 1 to 7 of 7

Formula Error when creating Dynamic graph.....

Hybrid View

  1. #1
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Formula Error when creating Dynamic graph.....

    Quote Originally Posted by whylucky View Post
    I also tried to use index per your suggestion but it doesnt seem to be producing any results.
    exp1:
    =IF(ISERROR(MATCH(1E+300,'One Barrel'!$B:$B,1)),'One Barrel'!$D$4,'One Barrel'!$D$4:INDEX('One Barrel'!$D:$D,MATCH(1E+300,'One Barrel'!$B:$B,1)))
    number1:
    =IF(ISERROR(MATCH(1E+300,'One Barrel'!$B:$B,1)),'One Barrel'!$A$4,'One Barrel'!$A$4:INDEX('One Barrel'!$A:$A,MATCH(1E+300,'One Barrel'!$B:$B,1)))
    temp1:
    =IF(ISERROR(MATCH(1E+300,'One Barrel'!$B:$B,1)),'One Barrel'!$C$4,'One Barrel'!$C$4:INDEX('One Barrel'!$C:$C,MATCH(1E+300,'One Barrel'!$B:$B,1)))
    MATCH returns the actual row number of the last number in the column. This does permit empty cells between row 4 and the last number. But you probably would not like the graph that produces.

    1E+300 is intended to represent a "large number", larger than any number you would normally have. 1E+300 is not the largest value that Excel allows us to enter. But it is probably large enough, and it is easy to remember.

    INDEX('One Barrel'!$D:$D,...) is one of the few places where a full-column reference like D:D is okay. Excel indexes into the array; it does not load or process the entire column.

    ISERROR is needed because this is an xls file, which is XL2003 compatible. IFERROR does not exist in XL2003. If you ever upgrade to an xlsx file, the following paradigm would be more efficient:
    =IFERROR('One Barrel'!$D$4:INDEX('One Barrel'!$D:$D,MATCH(1E+300,'One Barrel'!$B:$B,1)),'One Barrel'!$D$4)
    In either case, if there are no values in row 4 or below, we return a reference to row 4. But again, you probably would not like the graph that produces.
    Last edited by joeu2004; 01-30-2016 at 03:49 AM. Reason: 1E300 explanation

+ 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: 2
    Last Post: 06-24-2015, 08:41 PM
  2. Formula Errors! Help please!
    By conwayroger25 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-19-2014, 11:55 AM
  3. If contains formula with index match formula produces errors
    By Nicole Matthews in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-31-2013, 07:39 PM
  4. Formula Errors
    By Oly Steel Man in forum Excel General
    Replies: 1
    Last Post: 08-25-2011, 10:35 AM
  5. Replies: 9
    Last Post: 03-16-2010, 03:34 PM
  6. Formula errors
    By MeSteve in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2006, 06:42 PM
  7. Excel Throwing Circular Errors When No Errors Exist
    By MDW in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2006, 09:20 AM

Tags for this Thread

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