Forum Discussion
Using checkboxes to create percentage bar
- Feb 16, 2024
Including the values on the worksheet to give an alternating pattern is a step backward because it makes any calculation harder. The formula I would use is
= BYROW(status * {60,20,10,10,10}%, LAMBDA(x, SUM(x)))which spills to return the entire column of overall percentages.
[Look out for the new checkboxes when the come available; they are much better to set up and use]
I have hopes that the Insert/CellControls/CheckBox that is currently out for beta-testing on Windows machines will eventually find its was to other platforms because it is there that they are most needed.
Dropdowns can be set to work with TRUE/FALSE or 1/0, in which case they can be used directly by the existing formulas. If you opt for "Yes"/"No" a slight modification to any dependent formula is required
= BYROW((StatusYesNo="Yes") * {60,20,10,10,10}%, LAMBDA(x, SUM(x)))Note the new name was 'StatusYesNo' was introduced simply because 'Status' is still in use on the original sheet. Something else that should happen sometime over the coming months is that it should be possible to simplify the formula to read
= BYROW((StatusYesNo="Yes") * {60,20,10,10,10}%, SUM)but not yet.