I would have thought that =TODAY() + (6 - WEEKDAY(TODAY())) would work, but there is an bug in here somewhere.
The above still shows 5/21. (Previous Friday)
Thanks!
Please try the following formula
=TODAY()-WEEKDAY(TODAY())+IF(WEEKDAY(TODAY())>6,11,6)
Functions used:
TODAY
WEEKDAY
IF
I ended up using a switch statement. Ugly, but it works
=TODAY() + SWITCH(weekday(today()), 7,6,6,7,5,1,4,2,3,3,2,4,1,5)
Related
If I have a Text in a sum calculation which I would like to ignore. On the picture below you can see my formula. The text OFF is throwing an error on total hours for me. Any help is appreciated.
Your SUM function is pointless the way you have written it as you're already calculating the result with + and - operators (which is why you get the error). Try:
=SUM(C4,E4,G4,I4,K4,M4,O4)-SUM(B4,D4,F4,H4,J4,L4,N4)
Another approach:
=SUMIF(B3:O3,"End",B4:O4)-SUMIF(B3:O3,"Start",B4:O4)
I have the following;
Expected Started
25/02/2020 01/01/2020
I want to conditionally format the 'Started' cell (B2) - So basically, the project deadline is the 25/2/20 - but it should be started 8 weeks in advance (by 31/12/19) so if the date is greater than 31/12/19 highlight red
I can't specify the date as there will be other dates later on, so i need to try and work out the formula, would someone be able to help please?
In google-sheets, you would apply the following custom formula onto your B column range:
=($A2-(7*8)) < $B2
See the below image:
Google-Sheets Example: https://docs.google.com/spreadsheets/d/1sd59bd-fnKNTLoa7qQuBsEqFLki1uWNDLU9m7iOQemQ/edit?usp=sharing
How to article: https://www.benlcollins.com/spreadsheets/conditional-formatting-entire-row/
try a simple custom formula like:
=B2>A2+56
Hy everyone,
I try a simple trick, Use an array formula with a countblank with a filter between date. Without array, its work great, with an array, it goes crazy. why?
I use a spreadsheet to follow the present or absent off people by month. (exemple sheet)
I try to like this by line and its work fine:
=COUNTBLANK(FILTER(D9:AU9,D8:AU8>=B4,D8:AU8<=B5))
When i try to apply this to every line, its goes crazy :
=ARRAYFORMULA(IF(A8:A19<>"",COUNTBLANK(FILTER(D8:AU,D8:AU8>=B4,D8:AU8<=B5)),""))
Where is my mistake?
In C8 try this formula
={""; Arrayformula( if(len(A9:A), countif(if((D9:AU="")*(month($D$8:$8)=month($B$3)), row(A9:A)), row(A9:A)),))}
and see if that works?
Have just noticed isDate does not work in arrayformula.
Case
Want to filter all values if dates:
Used the formula:
=FILTER(data,ISDATE(data))
Expected result:
8/28/2018
Got:
#N/A
Question
Why? Other checks work in filter (isNumber, isText, isErr).
Workarounds?
Please try:
=ARRAYFORMULA(ISDATE_STRICT(A1:A11))
The function is currently not documented.
🧐: ISDATE_STRICT wont let date&time format, dates only
Do not know the reason, still curious.
Workaround: =FILTER(data,IFERROR(DATEVALUE(data))) was found here
Note: Workaround will NOT work for dates formatted as:
dd.mm.yyyy
You may use a duck-typed workaround:
=FILTER(data,REGEXMATCH(MID(data,7,4),"20\d{2}"))
Will check if formatted date has a 20XX year string inside.
Now you can convert any formula to arrayformula:
=BYROW(A2:A12,LAMBDA(r,ISDATE(r)))
A workaround that could work depending on what you're trying to do as far as Arrayformula is concerned
=ARRAYFORUMLA(ISNUMBER(VALUE(data)))
VALUE can turn the time into a number
ISNUMBER checks if it's a number
ISNUMBER works fine within ARRAYFORMULA
Excel 2010
I have a COUNTIFS formula I'm creating. So far, I have the following, which works great:
=COUNTIFS(Manager, $A7, Created Date,"<="& variable date, Closed Date, "<="& variable date)
The problem is I need to add another if-clause that counts only if 'variable date - Created Date > 14'. I can't figure out if it's possible or how I would do it. If it is possible, what criteria_range would I use and what would be the proper syntax (including quote marks) for the formula portion.
Any ideas?
In case anyone is interested, after some additional research, I ended up with the following formula:
=SUMPRODUCT(--(Manager=$A7),--(variable date-Created Date>14),--(Closed Date>variable date))
I don't completely understand the resulting formula but it did do what I needed it to do.