+ Reply to Thread
Results 1 to 2 of 2

Gradient Lines on Value, not Percentage

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Bend, Oregon
    MS-Off Ver
    365 ProPlus
    Posts
    51

    Gradient Lines on Value, not Percentage

    Hey All,

    So I've got the gradient line chart going, however is it possible to base the gradients on actual values and not percentages? See the problem I'm having on the 'Combined' tab of the attached workbook. When there's no data, the gradient is skewed. I can adjust this each day, but to do it right calls for a permanent solution.

    Is this possible? I've seen articles for bar charts, but not line. And applying the same techniques doesn't work.

    Thanks for your time,
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Gradient Lines on Value, not Percentage

    You can use this formula in cell C2 of the Combined sheet (changes in red compared with your existing formula):

    =(IFERROR(AVERAGEIF(data_Jan2021!$A$2:$A$90,B2,data_Jan2021!$B$2:$B$90),NA()))

    and copy down ONLY for the January dates. It will return the error message #N/A, which your graph will ignore, but you could use conditional formatting to turn the font colour to white if you don't want to see the error.

    Is that what you were looking for?

    Hope this helps.

    Pete

+ 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. Tricky Color Gradient Macros With Lines
    By Mark123456789 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2020, 02:57 AM
  2. Show percentage difference between 2 lines in a chart.
    By Vasary in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-02-2017, 09:38 AM
  3. [SOLVED] Gradient fill according to percentage
    By nooredein in forum Excel General
    Replies: 14
    Last Post: 04-28-2014, 02:14 PM
  4. Help with gradient coloring!
    By hhillma in forum Excel General
    Replies: 1
    Last Post: 07-06-2012, 03:44 PM
  5. Gradient Calculations
    By baboon76 in forum Excel General
    Replies: 2
    Last Post: 07-06-2008, 01:51 PM
  6. 2d gradient
    By dthan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2008, 05:25 PM
  7. Cell Gradient
    By dtutterow in forum Excel General
    Replies: 0
    Last Post: 11-19-2005, 09:02 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