I'm looking to change a cell value according to the today's date and another requirement.
I'm creating a publication schedule on google sheet and I'm want to create a criticaly cell.
As the editorial staff gets closer to the selected publication date, the more urgent it is to react.
I would also like this "critical" cell to be able to take take in consideration another box that indicates if the article is already finished.
For example: :
A paper is due to be published on March 8. This item is not indicated as "finished". This is March 4th. There are 4 days left for the paper to be finished. I would like the "critical" box to read "high".
However, if the status box for the review says "finished" then the review box says "low".
Do you have an idea?
Thank you very much for your help
Taking this sample sheet, you can use this formula to mark critical column as Low or High:
=IF(($B2-TODAY()<=4)*($C2<>"Finished"),"High","Low")
Enter this formula on the first row and drag down to the rest of the rows:
Or if you want only a single formula on D2, you can use:
=ARRAYFORMULA(IF(B2:B<>"",IF((B2:B-TODAY()<=4)*(C2:C<>"Finished"),"High","Low"),""))
Related
I work for a small business that depends quite a lot on the weather. I’m trying to create a spreadsheet (in google sheets) to predict daily revenue. At the moment the spreadsheet simply multiplies last year’s corresponding day by the growth percentage to get this year’s daily values. I’m trying to include the weather forecast (15 days) in the calculation. I’ve managed to import the forecast successfully using an api tutorial that I found online (https://www.visualcrossing.com/weather-data), and include the forecast values in the revenue calculation.
Now for the issue:
*the revenue prediction is a spreadsheet with every row being a day of the year, making the spreadsheet 365 rows long
*the imported forecast (in another tab, not sure that’s relevant) is only 15 rows long and updates every day, meaning that it remains that length. No new row is added during the update: the data just shift one row up and the first day disappears while a new day takes the bottom row.
My formula in the revenue tab identifies the weather data in the weather tab by row but when I pull the formula down for the whole year (down 365 rows, that is), only the first 15 rows refer to existing data in the weather tab. -> Not only are the results obtained based on the wrong row as soon as the weather tab updates on day 2, but they are also referring to totally empty cells from day 16 on.
So my questions are:
*is there a way to force the daily weather forecast to remain on its row and add a new row every day, or failing that,
*is there a way for the formula to recognize the matching day cells and use the value of the cell x columns to the right of it, effectively skipping the row referencing altogether
I’ve added a very simplified sketch of the spreadsheets for the more visual helpers out here
Apologies if this is unclear, I do not have a tech background but am happy to clarify anything if needed.
-- Edit: Here is a screenshot of the revenue tab. The expected output is in column K. The values in it at the moment are incorrect.
Seems like you just need a dynamic way to match the dates? I can't tell if you meant to have prior year data in other tab, but this spreadsheet matches your example and returns the value irrespective of the row order.
The formula being used (in the top row) is:
=B1*index(WeatherTab!B:B,match(A1,WeatherTab!A:A,))*index(WeatherTab!C:C,match(A1,WeatherTab!A:A,))
I am running an Elimination pool for the Premier League and I'm trying to track the teams picked from week to week.
I have a list of all the teams in the Premier League listed under each person in the pool. I then have a list of each week's picks. If a team was picked this week I would like that team's cell to turn red with a strikethrough.
https://monosnap.com/file/MUPxy2Lqv9H4lMbiPNmp2ReAvUXjk1
I've tried doing conditional Formatting:
Range: A2:A21
Custom formula is: =B25
But it doesn't work. Any thoughts?
This is easier if the first 21 rows are moved across one column to the right. I'd show you how but posting your data as an image only is inconsiderate and I can't be bothered. However then selecting Rows1:21 and applying a CF formula rule of:
=A1=index(A$25:A,match("zzz",A$25:A))
with formatting of your choice should work.
The scenario I am faced with is kind of an odd one. Basically, I am designing a Google Sheet for work that will allow the employees to log their tech support phone calls and then a report will automatically update on another page, keeping a collective tally of sorts of all the activity on a particular day.
What I am trying to do is write a function that searches another sheet for a particular date and, if that date is found, sum a particular column of values for that day only. There are pictures attached that should help explain the problem.
Basically, I am trying to write a general equation in the cell reading "FALSE" that will look up the date of that row (in this case 1/1/2017) in the "Spendgo Minutes" sheet. If that date were to be found somewhere on that sheet (not necessarily at the top of the sheet), the "Minutes Gained" column would be summed up, but for that date only (not the entire column). Here is my running formula right now that has errors:
=IF(COUNTIF('Spendgo Tally'!$A$3:$A,$B7),'Spendgo Tally'!$G3)
Does anyone know how this might be possible? Feel free to ask any clarifying questions.
You're looking for SUMIF
= SUMIF('Spendgo Tally'!$A$3:$A,$B7,'Spendgo Tally'!$G3:$G)
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.
For reference, please visit this Google Doc which is a simplified example of my problem, which is to determine total sales in Blue and Green markets each month.
Each month, I receive a new sales report from accounting for all of our markets and I add the sheet to the main workbook. My team is in charge of assigning "colors" to the markets and tracking this. As it's privileged information, we can't have accounting auto-tag these in the data they send over.
One solution would be, for each new monthly report that comes in, tag each city with the color. However, we have hundreds of markets and this isn't very practical to go through each time.
I assume that a SUMIFS function would work here, but am unsure how to set it up when there are values spread across multiple sheets.
You can use this function in B8 of February tab:
=SUM(IF(COUNTIFS($A$2:$A$5,Color!$A$2:$A$5,Color!$B$2:$B$5,'Sales February'!A8)>0,$B$2:$B$5,0))
COUNTIFS($A$2:$A$5,Color!$A$2:$A$5,Color!$B$2:$B$5,'Sales February'!A8)>0 gets an array of the countries that belong to the colour specified in A8 of the current tab (Would that be possible to put only Green and remove February Sales from that cell?).
If the country belongs to the particular colour, then return the array of corresponding values in column $B$2:$B$5.
Lastly, sum this array.
Note:
You need to array enter this formula in Excel (by holding Ctrl+Shift then hit Enter after typing in the formula).
In Google Spreadsheets, you array enter a formula by wrapping the formula around =ArrayFormula(), meaning you use:
=ArrayFormula(SUM(IF(COUNTIFS($A$2:$A$5,Color!$A$2:$A$5,Color!$B$2:$B$5,'Sales February'!A8)>0,$B$2:$B$5,0)))
In Excel you can use this "array formula"
=SUM(SUMIF(A$2:A$5,IF(Color!B$2:B$5=A8,Color!A$2:A$5),B$2:B$5))
confirmed with CTRL+SHIFT+ENTER
The same formula works in google docs if wrapped in arrayformula, i.e.
=arrayformula(SUM(SUMIF(A$2:A$5,IF(Color!B$2:B$5=A8,Color!A$2:A$5),B$2:B$5)))
or you can use FILTER as user3465711 suggests, i.e.
=SUM(filter(B$2:B$5,isnumber(match(A$2:A$5,IF(Color!B$2:B$5=A8,Color!A$2:A$5),0))))