I am trying to achieve the following: I have a google sheet with a stock price pulled from =GOOGLEFINANCE("ticker", "price"). I want that cell containing the stock price to flash green or red conditional on that cell updating with a higher or lower price as before.
I want to avoid having any form of helper cells, storing old values of the price, etc.
Is this something a script would achieve?
Thanks a lot for your help, everyone!
Related
I have a spreadsheet with specific formatting and a running total formula in column F.
Example
The sheet is currently bordered, but when it is full, I want to be able to click the red drawing on the right, and insert a new row above the totals that maintains the formatting and the formula.
I have tried using a macro on both relative and absolute settings but when i do so, it adds a new line in the same spot pushing other lines down and also copies any values in the cash in/out columns for the row above
I'm looking for a way to create a dynamic calendar in Google Sheets. - I have the basics already made. But I'm wondering if there is a way for the contents of the cell for each day to be different depending on the month.
For example:
If I entered "test" in 04/02/23 when I use the dropdown to go to March, the 04/03/22 cell would be blank & I could enter different info relevant to that date. All the while "test" would remain in 04/02/23 cell.
I know you would be able to achieve this with IF statements, but I'm looking for a wat to do this without changing formula each time a different event is added to the calendar.
Here's what I currently have:
https://docs.google.com/spreadsheets/d/1X4fRhpBhdCjblKPUWcULZ0Rv6mlHTqWwU1Hfco0h7JA/edit?usp=sharing
Thanks for any help.
I have a google sheet that I'm working to test a small dashboard on. My goal is to show the time some units are out of manufacturing and heading to the finishing department for polish, coloring, etc. What I want to achieve is to have the color of the bar for the associated row to change color when one of the cells is populated. In my googling, I've managed to find bits and pieces, but I don't know enough JavaScript to be able to take the things I have found and use them, let alone understand them for the most part.
Here is the test sheet I've been working on: https://docs.google.com/spreadsheets/d/1b09CKYbrxe7riS6mXx6OfQk4TrQcBcghU4_YvuIt1lA/edit?usp=sharing
Basically, I want for the D Column to change the row's bar on the second tab of the spreadsheet.
I do understand it would be an onEdit(e) function and an IF statement to make it work. As well, a second function for changing the bars, but I don't know what that would be.
I have two different Google spreadsheets (these are separate files). I would like to calculate the sum of two cells (say A1) in the first and second spreadsheet/file and have it show up in a third/new spreadsheet/file. Is this possible and how might one go about doing this? Thank you.
you can use the IMPORTRANGE formula, which is ("URL of other sheet","range of cells you want to import").
Make sure both parts of the formula have " around them, so that the formula in the 3rd sheet would be something like:
=IMPORTRANGE("Sheet1Key","Sheet1!A1")+IMPORTRANGE("Sheet2Key","Sheet1!A1")
I am creating a spreadsheet that will sum the daily inserted hours per activity for each week individually. This spreadsheet allows an increase in height for each week as needed
(ex. week 3 in image below demonstrates another row for inserting a 3rd activity per day).
What I would like to do is find a way to determine the height of the merged cells on the left to be used in dynamically determining the cells to include in a sum total in the last column.
I have found how to determine the existence of merged cells and how to determine the width of merged cells by exporting to HTML, but the latter seems it would not work for my situation as I am looking for a way to do instantaneous height determining to be used in an essentially fancy sum function.
I would like to know if/how it is possible to dynamically determine a merged cell's height using google apps script within google spreadsheet.
Any suggestions or guidance would be appreciated!
I'm assuming that you know where the first row of where the merged cells is. If you know the row position of the merged cell you want to change, I think you can use the getRowHeight() method of the Spreadsheet class, which returns an integer.
getRowHeight Google Documentation
If the problem is, that you can't find the row position of the merged cell you want to change, that's a different question I guess.
You can also set the height:
setRowHeight
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Sets the first row to a height of 200 pixels
sheet.setRowHeight(1, 200);