+ Reply to Thread
Results 1 to 4 of 4

Conditional Chart Data

  1. #1
    Registered User
    Join Date
    03-02-2020
    Location
    Illinois, US
    MS-Off Ver
    13
    Posts
    2

    Conditional Chart Data

    Hello. I'm sure this is an easy problem but I can't figure this one out and can't find any examples of this online.

    I have data that looks like this:
    Date Device Value
    3/2/2020 a 10
    3/2/2020 b 80
    3/3/2020 a 9
    3/3/2020 b 85
    3/4/2020 a 7
    3/4/2020 b 83
    3/5/2020 a 10
    3/5/2020 b 80
    3/6/2020 a 5
    3/6/2020 b 90

    Device A Temp
    Device B Humidity

    I would like to create a dynamic table that can display these values over time and as I get new posts by these devices. Right now I'm struggling with how to separate the data into two separate lines on a chart. The values for both devices are printing in the same column. I would like to plot device a and device b as separate lines on the same chart. Is this possible?

    Thanks

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

    Re: Conditional Chart Data

    I would probably use a technique like this: https://peltiertech.com/conditional-...-excel-charts/

    Assuming your data is in column A:C:
    1) At the top of column D, enter "a", at the top of column E, enter "b".
    2) In D2, enter =IF(D$1=$B2,$C2,NA()) note the mix of relative and absolute references for easy copying.
    3) Copy D2 and paste/fill into E2 and down as far as needed.
    4) Build your chart based on columns A, D, and E.

    Will that work for you?
    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
    03-02-2020
    Location
    Illinois, US
    MS-Off Ver
    13
    Posts
    2

    Re: Conditional Chart Data

    Wow! Cool trick. I wouldn't have come up with that. Thanks for the speedy help.

  4. #4
    Registered User
    Join Date
    03-03-2020
    Location
    Kuwait
    MS-Off Ver
    2013
    Posts
    9

    Re: Conditional Chart Data

    i hope you dont mind if i post a solution too. just rearrange your data. and insert chart it will solve your problem.
    Attached Images Attached Images

+ 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. Creating Pie Chart from Conditional formatted data
    By Michael1974UK in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 08-02-2018, 03:11 PM
  2. Chart with conditional chart data
    By Josiah in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2016, 05:14 PM
  3. Conditional Formatting a Chart with data on the same bar!
    By Nick.simpson19 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 02-20-2015, 04:22 AM
  4. Conditional formatting chart data labels?
    By -AJ- in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-24-2014, 11:48 PM
  5. Conditional formatting data points within a chart?
    By mrebisz in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 03-03-2009, 05:47 AM
  6. conditional formatting chart data table
    By mss5603 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 11-05-2008, 10:13 AM
  7. Pivot Chart points for conditional data?
    By chayton6 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-05-2006, 06:10 PM

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