Google sheets. Change cell value based on chekbox - google-sheets

I’m looking script or formulas or guideline for next task in Google sheets: If checkbox is cheked then value in cell change on “vacation”. If checkbox is unchecked then value in cell go back to previous value. The screenshot visually shows what should happen. I’m newbie and can’t find solution. I will be very grateful if someone helps me in any way. Screenshot
I apologize that I did not accurately state the essence of the question, function "IF" is not suitable since the second condition is dynamic, like this week the specialist works on one schedule (8-11), and next week on a different schedule (it can be any)
it would be great if the "if" function worked like this
=IF(H1=TRUE,"vacation","return the previous value")

=IF(H1=TRUE,"vacation","8-11")

Or you can go to Data Validation and create your own rules like this.
This is how I did mine:
I wanted to make my checkboxes for money management and so if I have a checkbox checked then the value means say $100 and I can play with the value $100 instead of the value TRUE.

Related

How to design a system in Google Sheets that allows for people who don't speak the same language to know they're typing the same thing

I admit this is a strange request. Essentially myself and another person who speaks Mandarin need to work on scheduling asynchronously through a spreadsheet. If either of us enters something in, in our respective sections, it should update the other person's section to match. So If I changed Order 1 on Day 1 from Apple to Butter, it should look at the translated text for Butter in Chinese and update the dropdown list entry for Order 1 on Day 1 from Apple to Butter
Unfortunately it doesn't seem like there's anyway to add formulas to dropdown lists. Any advice here?
I created a super simplified spreadsheet of what I'm looking for Spreadsheet
there is a GOOGLETRANSLATE formula:
also, you have DETECTLANGUAGE that outputs the language code:
both of them (DETECTLANGUAGE is able to work with vertical arrays only) are not supported under ARRAYFORMULA so you will need to drag them around. also, it's worth mentioning that formulae are always 1-directional so you can have a dropdown to be translated but that translated output can't be used directly as the input for back-translation creating a paradox. with a scripted solution, you may have more flexibility tho.

How can I mark something as ‘yes’ or ‘no’ based on when two cells match as well as whether another cell is blank — in Numbers

I’m using Numbers on an iPad (I don’t have a Mac).
I have a list of physical tools on one tab. On another tab I have a table of dates and times when the tools were checked out and checked in.
On the first tab (where the tools are listed), I’d like to have a column that says whether or not the tool is available based on whether or not it’s been checked out but not checked back in.
So I want to write a formula that looks for the name of the tool on the second tab, and when it finds it, checks to see whether any of the checkin cells are blank. If there’s a blank one, the formula should print ‘no’. If there aren’t any blank cells, the formula should print ‘yes’.
Is this possible? If so, can anyone suggest a formula please? It’s a bit too complex for me… (I have rudimentary coding skills.)
Xlookup may help.
With XLOOKUP, you can find values in columns and rows, or look for exact, approximate or partial matches.https://www.apple.com/au/numbers/features/
XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
For example:
XLOOKUP(<cell>,Tool checkin::A,Checkin,"no",0,-1)
Then an if statement can turn it into a yes/no value:
IF(<cell>=0,"no","yes")

How do I get a cell to retain text, after the cell it pulls from changes text?

This question will have two parts. If you're willing to help me out, feel free to address whichever chunk you've got the time or interest for. Thanks in advance.
Assume there are two cells in a spreadsheet, the first (A1) has the text hello inside, and the second (A2) has =T(A1), so they now both say hello. If I want to change the text in A1, but want the text in A2 to continue to read hello, is there a way to automate this?
For some context, this is part of a larger project where I want to create a column of stock tickers that I like. Ideally, I could type the ticker name into a cell, check a box if I want to track it, and it would automatically add itself to a column. Where the first part of this question becomes relevant is that I would then move on to another stock, deleting the first ticker I wrote, but still wanting it in my column.
The second part of the question is about making the column. My instinct would be to use the =ARRAYFORMULA function, but that draws from a column to begin with, so I'm a little bit stuck.
Thanks
answer for Q1:
no, not possible unless you hardcode A2 as:
=T("hello")
or you use a script to remember your value but in that case, the A2 will host a custom function instead of the formula you mentioned
ofc what you are mentioning with those tickers, checkboxes and moving values around it's completely doable with a script
answer for Q2:
it depends on the formulae you use. not all formulas are supported under ARRAYFORMULA

OnEdit or Time based triggers to check one cell then edit another

My scripting skills are not the greatest but I can not figure out how to accomplish what I need to with just functions inside of Google Sheets.
My sheet looks something like this: https://docs.google.com/spreadsheets/d/1R6YJIR37wtOt8ZknSdMQPFFp0Llf_LHpmGCV32iQY00/edit#gid=1213399830
I have form responses being brought into the second tab via the Indirect function and are then modified with a ArrayFormula function to convert everything to the correct unit of measure and the summed to keep everything on the same row. All of this could be altered if needed.
I then have a column that is totaling inputs in other columns to give me my on hand inventory. We'll call this TotalsColumn.
What I am attempting to achieve is to make a script that checks the form responses, then either with:
OnEdit (which if I understand correctly does not work for information being ported in) and then alter the corresponding cell in the TotalsColumn.
or if not possible, then
With a time based trigger checking the ported information to see if there is a new entry if I don't sum it with a last function or something, or if the information remains summed (which seems easier to me) then to check if the sum is greater than it was last time it was checked and alter TotalsColumn.
The alter to the TotalsColumn, regardless of which method used, will always be a static number and I am pretty sure I'll need to make a script for each of my different inventory items but that's fine if I can just figure out a way of making this happen.
Thank for your time and any information you can provide.
Please feel free to point me to another thread where I can start to piece together a solution, I just could not find anything that related closely enough to my question or find a good jumping off point.
What happens in this situation?

How to make Google Sheets cell with a referencing formula to the whole column not display until updated

I have a couple of different docs I'm working with where I have formulas that, when I enter a payment made, will automatically update a financial column with balances due and amounts remaining, and I'm running into the same trouble on both.
One is tracking payments received for someone buying something from me and making payments that subtracts the payment from the balance due and shows the payment history, and the other is tracking medical expenses and showing the payment made, how much has been paid toward the deductible, and how much is remaining on the deductible.
All are simple sum formulas, and that's not the issue. The issue is that I don't want to see the same figure repeating all the way down my columns. I would like to find a way to make a value not actually "show up" until it has been updated, so the last figure displayed in the column is the one I can glance at to find the balance due, and it only displays there until I enter another payment, and then the cell below it "activates" and shows and is the one to look to, even though the whole column has the sum formula running to update as I enter more information. I hope that makes sense.
I'm presuming conditional formatting with changing the font to white? I just can't quite seem to get it. I'm sure I could do it one cell at a time to reference the cell above it, or even reference if the respective payment cell that will update that cell is blank, but that is a LOT of clicks and I just know there has to be a way to do an entire column at once.
Any help is greatly appreciated! Seeing the repeating numbers is just too much to take in for me.
Thank you!!
What I have
What I want it to look like, while maintaining the formula throughout the column
Assuming $2,599.00 is in G3, please try clearing formatting from and selecting ColumnsF:G and Format, Conditional formatting..., Format cells if... Custom formula is and:
=$B1=0
Then choose white font for formatting and Done.

Resources