Dynamically update a Bar Chart by user selecting checkboxes in Google Sheets - google-sheets

I have a horizontal bar chart where one of the bars on the chart needs to be dynamic based on a user selection of checkboxes in a google sheet. I can get this to work with one checkbox "=IF(C5=TRUE,D5+100,100)" but not sure how to get to work when multiple check boxes are selected.
enter image description here
I have a "Base UPH" of 100 and just need to add the values in the "Multiplier" column if the checkbox(s) are TRUE. The idea is that the user could select one or all of the checkboxes and see how the "C-Dynamic" would be improved.
Any tips, much appreciated Thanks!
Able to get to work, but only for a single checkbox with this formula: =IF(C5=TRUE,D5+100,100)

You could do it with SUMIF, like this:
=100+SUMIF(C5:C8,TRUE,D5:D8)

Related

Looking for Solution in google sheets

Hi helpful and professional people of Stack overflow. I seek help for a solution for a attendance marking spread sheet.
So I have made a column of 10 rows with check boxes within each cell.
How should proceed to allow(or is it possible) for the following to happen:
When the checkbox is ticked( cell value = true ), the cell beside it on the right will be greyed out in colour.
When the checkbox is not ticked( cell value = false ), the cell beside it on the right will come out with a dropdown list to choose some options.
Thank you in advance if there is a solution for this.
Assuming that your checkboxes are in column C and drop-down lists in column D, use conditional formatting in column D to solve the first question. You would need a custom formula rule like =C2 where C2 refers to the topmost checkbox cell.
The easiest way to handle the drop-down lists would be to let them always sit in place, and trust that graying out is sufficient to show the user that a drop-down list is currently not available.
If that is not a viable solution for you, use an onEdit(e) function to create a drop-down list dynamically when a checkbox is ticked, and remove a drop-down list when a checkbox is unticked. See the createDropDownList_ script for sample code.

How can I check the two checkboxes on Google sheet?

image <- I have a google sheet like in the photo. When I check the box behind the cars here, the name of that car is written in the result section. I want that when I tick one of the two checkboxes, the other will not be checked. That is, only one of the two checkboxes should be selected at a time. When one is selected, the other should not be selected. How can I solve this with google sheets formulas without writing app script code?
image2 <- The formula in cell D2:
=IFS(COUNTIF(A2, TRUE),B2,COUNTIF(A3, TRUE),B3,COUNTIF(A2, False),"",COUNTIF(A3, False),"")
One checked checkbox at a time (similar to a radio button behavior) isn't actually supported in Google Sheets at the moment.
However, there are certain ways to circumvent this kind of issue. It can be via Apps Script or Sheets itself.
Since you are looking for a Sheets related solution, an alternative would be using an in-cell dropdown instead of checkboxes. That way, you could only select just one car at a time and you don't need complex formula to get the chosen value itself, you just need to set the cell formula to =B2 to get the dropdown chosen value.
Sample:
To add a dropdown in Sheets, see the reference below:
Reference:
Drop-down List

Customise Stacked Bar Data Labels

I have a dataset in google sheets that shows how often I do certain sports. I have created a stacked bar chart by month to follow the trend. I would like to use emojis to use as the data labels so that I don't need to have a legend. However I do not know how to change the data labels from being a count and to be customisable text?
For example for swimming I'd like it to show the emoji: 🏊 rather than "2" for jan, "4" for feb etc.
Is this possible?
It's not possible for stacked charts. It is for regular Charts, as you can see in this solution:
You can use emojis as labels by adding notes to the chart. You will have to copy the emojis from external sites and do the following steps:
In the column to the right of each data point, add your text notes (in this case, emojis).
Double-click the chart you want to add notes to.
At the right, click Setup.
In the box next to "X-axis," click More and then Add labels.
Enter the data range with your notes. For example, C1:C3.
Click OK.
In my case, the chart looks like this:
Since your Chart is stacked, this is not possible for this case. I recommend you to request this feature to Google by clicking on Help > Send feedback.

Show the arrow of dropdown list

I want to make a dropdown list in my spreadsheet. I did it using data validation but I want to make an arrow in the cell for that list.
All the answers suggest the solution in the photo which I can't find it in my spreadsheet at all.
right click on a cell, row, column or range
click on the last option - Data validation
window opens which will look like your picture

Google Sheets - Validation list to default on selection in another cell, but still provide drop-down options

I'm stuck on this one, and after a number of google searches am now wondering if I'm the only person who's ever tried to do this.
I have a google sheet that users are required to fill in. There is a drop-down selection option at the top, specifying the region the user needs the file for.
However, as the user gets down to the lines for the individual items required, some (a small number) may not be for the region selected at the top.
So what I'm trying to do is add the regions to the individual lines. The default for each line should be the region selected at the top, so this should show as pre-selected. But I want the user to be able to still click on a drop-down arrow and select a different region for a line.
Does anyone have any ideas on how to do this? Thank you!
Okay,
I'm unsure of your expected outcome, your request is also not very clear -
What I've done is created a list via Data validation, however, if a user enters data into the adjacent column:
https://docs.google.com/spreadsheets/d/1OsrQCUt-Urf_Gx8_l9CBZkaUlDc311-S-0csa9GAtCQ/edit?usp=sharing
also it's good practice to share an example of your workbook for others to edit and work on.
let me know if this is what you wanted.

Resources