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?

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
Post a Comment