+ Reply to Thread
Results 1 to 5 of 5

Error bars with variable error

  1. #1
    Registered User
    Join Date
    10-22-2015
    Location
    Nottingham, England
    MS-Off Ver
    2010, 2013
    Posts
    37

    Error bars with variable error

    Hi All,

    I've got a sheet on which we measure and log the quality of water on a day to day basis. The percentage error for the machine depends on the reading that was given (see below for the specifics). I'm not sure how to get this information into error bars, and have been told by the powers that be, that they won't accept the chart unless it has error bars on it.

    +/-10% error at 2.25 ppm
    +/-20% error at 0.75 ppm
    +/-30% error at 0.20 ppm

    I believe that in order to do this, i'll need a calculation to work out the percentage error dependant on the value that's been entered, and then the entire thing put into an 'if' statement.

    Any ideas?

    Thanks!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,844

    Re: Error bars with variable error

    Rather than an IF() function, I would probably use a lookup table for the error values.
    Please Login or Register  to view this content.
    Then, with concentration in, say, E2, F2 could be =vlookup(E2,$A$2:$B$4,2,true) (help file for the vlookup() function https://support.office.com/en-us/art...8-93a18ad188a1 ). The error bars can then be added to the chart series using the "custom error" bars option.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    10-22-2015
    Location
    Nottingham, England
    MS-Off Ver
    2010, 2013
    Posts
    37

    Re: Error bars with variable error

    So if the data that i need to calculate an error value for and then put into a vlookup is in column 'C' from cell 2 downwards, how would i go about this? Would i need to create two more columns for the upper and lower percentage error?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-22-2015
    Location
    Nottingham, England
    MS-Off Ver
    2010, 2013
    Posts
    37

    Re: Error bars with variable error

    forgot to take the passwords from the sheet(s)

    the relevant chart is on the 'Ammonia-Turbidity Chart' Sheet
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,844

    Re: Error bars with variable error

    how would i go about this? Would i need to create two more columns for the upper and lower percentage error?
    If I understand this question, I would say that it is probably not necessary. The main reason I can think of to include separate upper and lower per cent errors is if you would like the option in the future of having different upper and lower per cent errors (+10%/-20%). Only you would know if this is a real possibility.

    Is there a specific part of creating a lookup table then referring to it in a lookup function that you are having trouble with? I have thought that the help file was fairly well written. There are numerous tutorials and examples on the net. If I understood exactly what you were stuck on, it would be easier to speak specifically to the part you are having trouble with. The attached example shows a very simple lookup table and function.
    Attached Files Attached Files

+ 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: 16
    Last Post: 04-23-2015, 06:41 AM
  2. Error bars not showing up for 1-variable data
    By Kinzie in forum Excel General
    Replies: 0
    Last Post: 01-21-2015, 05:39 PM
  3. [SOLVED] New Error/Old Code - Run Time Error 91; Object variable or With block variable not set
    By humboldtguy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-15-2014, 12:39 AM
  4. [SOLVED] Error 91 - Object Variable Not Set error with Global Variable
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2013, 06:19 AM
  5. Replies: 2
    Last Post: 03-28-2012, 02:29 PM
  6. Range bars, not error bars
    By Anselm in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-14-2010, 12:38 AM
  7. chart: error bars with custom error range
    By brickc1 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-26-2009, 11:52 AM

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