+ Reply to Thread
Results 1 to 18 of 18

Conditional Formatting Data Bar Percentage

  1. #1
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Conditional Formatting Data Bar Percentage

    Good Morning,
    I am trying to figure out how to create the correct formula for the data gradient fill in conditional formatting to based on time spent in that zone and total duration. The cells have been formatted to indicate hours, minutes, seconds ([h]:mm:ss).
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Conditional Formatting Data Bar Percentage

    I don't get the idea of ​​what you want.

  3. #3
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Conditional Formatting Data Bar Percentage

    Hi DJunqueira,
    I want the data gradient bar to be filled in based on the percentage of time spent in a particular zone. So for example, Zone 1 is 15 min, Zone 2, 15 min and Zone 5, 30 min and the total duration was 60 min. I would want the data gradient fill to fill that cell based on the percentage of time. In this case, Zone 1 and 2 would be filled at the value of 25% each and Zone 5 would be 50%.

    Hope this makes sense.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: Conditional Formatting Data Bar Percentage

    Where is the data gradient bar supposed to be? There are NO CF rules on that sheet.

    Please mock up MANUALLY exactly what you want to see where you want to see it.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor
    Join Date
    09-03-2016
    Location
    Catania, Italy
    MS-Off Ver
    Excel 2019
    Posts
    181

    Re: Conditional Formatting Data Bar Percentage

    Hi
    I suppose you can see here

    Hi,
    Mario

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: Conditional Formatting Data Bar Percentage

    I don't think that is what the OP wants. No chart/graph has been requested here.

  7. #7
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Conditional Formatting Data Bar Percentage

    Maybe I got what you want, see the conditional format in the worksheet.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Conditional Formatting Data Bar Percentage

    Hi AliGW,
    I have updated the attachment to review what I am looking to do.
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: Conditional Formatting Data Bar Percentage

    Thanks - I feared that was the case.

    You won't be able to do this: gradient bar CF can't work with relative cell references, unfortunately. The whole CF offering is long overdue an overhaul by Microsoft.

    You are going to need to consider a compromise. You really don't want to flood your workbook with CF, anyway, as it will eventually slow things down to a crawl, and too much colour can be hard on the eyes and, actually, counter-productive.

  10. #10
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Conditional Formatting Data Bar Percentage

    When I finally nailed it, ))

    So, you seems to have solved it.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: Conditional Formatting Data Bar Percentage

    I don't think so, actually. The data bars in your suggestion are not proportionate.

  12. #12
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Conditional Formatting Data Bar Percentage

    I just wished to understand what he wanted and he showed the same purpose.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: Conditional Formatting Data Bar Percentage

    Let me try to show you.

    With the suggested data in post #3, this is what yours does:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    D
    E
    F
    2
    1
    2
    3
    4
    5
    Duration
    3
    0:15:00
    0:30:00
    0:15:00
    1:00:00
    4
    0.010416667
    0.020833333
    0
    0
    0.01041667
    Sheet: Sheet1

    All three data bars show as 100% full, where two should show as 25% full, one as 50% full and the other two as empty. You'll need to test this yourself, as my image does not show the CF, just the values.

    Does this help? The proportions are dependent on the TOTAL value in column F.

  14. #14
    Forum Contributor
    Join Date
    09-03-2016
    Location
    Catania, Italy
    MS-Off Ver
    Excel 2019
    Posts
    181

    Re: Conditional Formatting Data Bar Percentage

    HI
    I had suggested a Chart because the solution I suggest (see attachment) might be what the OP is looking for.
    HI,
    Mario
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Conditional Formatting Data Bar Percentage

    Thank you AliGW, Marius44 and DJunqueira, thank you for attempting this. I echo your thoughts AliGW that CF needs a complete overhaul.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: Conditional Formatting Data Bar Percentage

    There may be a VBA solution - would you like me to move this to the VBA section?

  17. #17
    Registered User
    Join Date
    05-03-2023
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel For Mac 365
    Posts
    19

    Re: Conditional Formatting Data Bar Percentage

    VBA is way beyond my capabilities. No need, thanks.

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: Conditional Formatting Data Bar Percentage

    OK. In that case, if that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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: 1
    Last Post: 10-08-2021, 09:01 PM
  2. [SOLVED] Getting a percentage from conditional formatting
    By Archer142 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-04-2021, 06:31 AM
  3. [SOLVED] Conditional Formatting with Data Bars - Based on Completion Percentage
    By benwahchang in forum Excel General
    Replies: 9
    Last Post: 11-14-2014, 03:38 PM
  4. [SOLVED] Conditional formatting on a percentage
    By sunrunner4kr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2013, 11:28 AM
  5. Replies: 2
    Last Post: 02-26-2013, 03:47 AM
  6. Conditional formatting percentage
    By philip32686 in forum Excel General
    Replies: 5
    Last Post: 09-19-2011, 09:22 PM
  7. Conditional formatting a percentage
    By Wyatt12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-22-2008, 12:23 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