I have a google spreadsheet which we use to feed inventory purchase and issue data. The only problem is my staff can manipulate purchased quantity, prices and other variables at a later date. I want that if they enter the data in a cell and try to edit it whenever after 12 hours of entering the data, the cell should get highlighted. If possible, the cell should not highlight if I edit the data.
How to change background color of a cell if it is edited after a specific duration?
134 Views Asked by SHIRIN BANSAL At
1
There are 1 best solutions below
Related Questions in GOOGLE-APPS-SCRIPT
- How to display a Google Document inline image on HTML page?
- How to add Named Ranges to sub-paragraph elements in Google apps-script
- Output API data to a csv file
- automated email sending - variable in Htmlbody
- union data in multiple tabs
- How to real-time monitor the emails?
- How to pass function arguments to another function?
- Google sheers: On edit event trigger
- TypeError: Cannot read property "length" from undefined
- How to upload any file to FTP Server using Google Apps Script
- Authentication Error while using google SpreadSheet API
- Javascript on Google Sheets - Get Column Number from Prompt Input
- Apps Script, Count BG Color function on conditionally formatted cells
- Edit a google spreadsheet using javascript/client side code
- Import google spreadsheet data to google doc app script
Related Questions in GOOGLE-SHEETS
- Ignore #VALUE! error in SORT function
- Count Unique Values Repeated Dates
- Skyscanner Flights API and Google script
- Not able to access spreadsheet using google spreadsheet API
- SPLIT using " " delimiter in Google Sheets won't always preserve period following number
- union data in multiple tabs
- Google sheers: On edit event trigger
- Conditionally formatting multiple rows with the same conditions
- Authentication Error while using google SpreadSheet API
- Javascript on Google Sheets - Get Column Number from Prompt Input
- Apps Script, Count BG Color function on conditionally formatted cells
- Unable to authenticate with Google through the Java SDK for reading spreadsheet data
- Edit a google spreadsheet using javascript/client side code
- Google Spreadsheets, match/lookup in ALL rows, except the current one
- Google apps script for Spreadsheet - russian symbol substitute as a question mark
Related Questions in GS-CONDITIONAL-FORMATTING
- Conditional Formatting Rows With Date Formula
- How to change background color of a cell if it is edited after a specific duration?
- How can you autofill conditional formatting on Google Sheet with data anchored on one cell?
- Comparing an entire sheet to itself for ANY duplicates
- Conditional Format Duplicate Cell Values in Each Row in Google Sheets
- Colour coding a grade in a cell based on a grade in another cell
- Format column depend on date cell
- google script conditional formatting
- Highlight cells based on date AND cell value
- Conditional formatting for a cell that contains a single numeric text character
- Google Spreadsheet: Changing cell colours if one or multiple text variables exist
- How to make [Conditional Formatting] script?
- custom formula conditional formating - Only weekedays and 3 days in future
- If contents of A3 match A2, I want it to turn green
- Conditionally format a list of two-word items with A B treated the same as B A
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
A simple solution is to have a column when this data is entered (if the data is added with a google form, then you are already set to go on that front). At that point all you need is a
onEdittriggered function that fetches that timestamp, doesvar curTime = new Date()and then check what is the difference between them, and if it's greater than 12 hours you do ae.range.setBackground('red')or whatever color you wish (remember that the function must haveedefined likefunction checker(e)).Having it ignore edits done by you is also simple, just have an a simple
and it will stop the script if the session users email matches your own.
For future reference please also provide what code you have so far, as currently we don't know what research you have done so far, what worked and what did not. Remember — here you won't get someone to write the program for you, only solve issues you have with code you already have.