I need help. The employee has 10 hours per year at SICK, which are paid as working hours. I need help with formula. Example and more info are here:
https://docs.google.com/spreadsheets/d/1OfrNwIxavO89qN0HSZ6x_3hVi1MS1orFNv2VOd0OMx0/edit?usp=sharing
Try dividing the problem into smaller parts, like this:
cumulative sick hours: =sum(D$2:D2)
paid sick hours: =if( E2 < D$8; D2; max(0; D$8 - n(E1)) )
total: =sum(B2:C2; F2)
See the new Solution sheet in your sample spreadsheet.
Related
I have a personal finances Google Sheet with all my expenditures (column A) and corresponding dates (column B) of the month when they are due to be paid.
I would like to create a formula that shows me what is left for the remainder of the month depending on what day of the month I am looking at the sheet.
Something like, ifDate is today, sum all remaining dates of the month expenses.
TIA
Use this formula it works even if the dates is disordered.
=SUMIF(C2:C,">"&F2,B2:B)
Update
=SUMIF(D3:D,">"&TODAY(),C3:C)
I am trying to create a savings spreadsheet where people save X amount of days in a week after they have reached X amount in income.
Can any Google Sheet experts help me achieve the following:
When the "amount" >= "min amount" (C1) then repeat the number of No's and Yes's according to the pattern (number of consecutive days) in B2 and B3
Example image:
example google sheet image
Example Google Sheet:
https://docs.google.com/spreadsheets/d/1n4Jg_uZUHBKi36S7HnkWWqqBTSTo3nKY9QgWP7wK9_o/edit?usp=sharing
Here's a possible solution.
={"SAVE:";ArrayFormula(if(A11:A52<C1,"NO",
{if(sequence(countif(A11:A52,"<"&C1)),);
array_constrain(flatten(split(concatenate(transpose(
if(sequence(1,countif(A11:A52,">="&C1)),
rept({"YES";"NO"}&"❄️",C2:C3)))),"❄️")),countif(A11:A52,">="&C1),1)}))}
I am looking to create a spreadsheet that my staff fill out, it then gives me a master sheet with all the data, then I import dynamically to my financial spreadsheet telling me the average cost of my client over the last 30 days.
I am looking to create an AVERAGE formula of the last 30 days when Date = Today (Monday) (I want the weekday Monday as that's when staff hand in invoices)
Hope this makes sense, it's really tough!
Here's a video of me explaining my desired outcome
https://www.loom.com/share/3a9cb75052b246d1af2ba2f9ce9180a7
I've followed several guides & can't figure it out.
=ArrayFormula(iferror(query(average(if(today() - weekday(today(),3)-30)))))
I expected $90 average and I just get blank
You could use this formula:
=AVERAGE(VLOOKUP(TODAY()-WEEKDAY(TODAY(),2)+1,A:H,2,FALSE),VLOOKUP(TODAY()-WEEKDAY(TODAY(),2)-6,A:H,2,FALSE),VLOOKUP(TODAY()-WEEKDAY(TODAY(),2)-13,A:H,2,FALSE),VLOOKUP(TODAY()-WEEKDAY(TODAY(),2)-20,A:H,2,FALSE))
To break it down in to its component parts, the AVERAGE is taken from VLOOKUP results:
VLOOKUP(TODAY()-WEEKDAY(TODAY(),2)+1,A:H,2,FALSE)
The VLOOKUP is looking for the last Monday from the current date:
TODAY()-WEEKDAY(TODAY(),2)+1
Then
TODAY()-WEEKDAY(TODAY(),2)-6
and so on...
When using on your sheet, you will have to specify the column you want to reference in your look up, for colunm B (brand1) use: A:H,2,FALSE), for colunm C (brand2) use: A:H,3,FALSE), for colunm d (brand3) use: A:H,4,FALSE) and so on...
=INDEX(QUERY({INDIRECT("A2:D"&ROW()-1)},
"select avg(Col2),avg(Col3),avg(Col4)
where Col1 <= date '"&TEXT(TODAY(), "yyyy-MM-dd")&"'
and Col1 >= date '"&TEXT(TODAY()-30, "yyyy-MM-dd")&"'"), 2, )
I have a column with weeknumbers incrementing from 1 to 42.
Next to it I would like to have the corresponding monthnumbers from 1 to 12.
So e.g. next to week 1, 2, 3 it would be month 1.
How would I achieve this in google sheets?
Best
Florian
A week number may span a month end, so two different months for different days in the same week. ie
Not possible.
It's possible if you'll count concrete dates.
A1:
=ARRAYFORMULA( (ROW(INDIRECT("a1:a"&42)) - 1) * 7 + today())
adjust the date, change today() to your start date.
B1:
=FILTER(WEEKNUM(A1:A,1),A1:A<>"")
adjust week type if needed, change 1
C1:
=FILTER(MONTH(A1:A),A1:A<>"")
I am trying to create an attendance sheet for my dance class students, which happens on weekends only.
Is there a good way to roll only weekend dates on a google sheet?
TIA
Put starting date in A1, number of days in A2 and this formula in A4:
=FILTER(ARRAYFORMULA(A1+ row(INDIRECT("A1:A"&A2))),
WEEKDAY(ARRAYFORMULA(A1+ row(INDIRECT("A1:A"&A2))),2)>5)
The result: