conditional formatting on excel based on the ratio between two columns -


i have 2 columns in excel shown on picture below.

i need apply conditional formatting column c has gradient coloration of data bars reflects percentage ratio between column b , column c?

is there option how this?

excel picture

if you're willing program bit, can take care of in python openpyxl.

import openpyxl openpyxl.styles import patternfill  wb = openpyxl.load_workbook('workbook.xlsx') sheet1 = wb.get_sheet_by_name('sheet1')  gradient = 'ffffff' fill = patternfill(fill_type='solid', start_color=gradient, end_color=gradient) 

from point you'll have create comparison want between 2 columns can modify "gradient" variable color needed cell use "fill" modify spreadsheet. dont forget to:

wb.save('formatted_workbook.xlsx') 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -