Google Sheets SUMIF Using Partial Date/Time Stamp as Wild Card Criteria - google-sheets

I am trying to figure out a SUMIF formula that looks for a partial dat/time match and sums a range based on that match. I am using the date data validation in one cell as the criteria, but the range that I am attempting to match it to is formatted differently, so it isn't working. The dates in the criteria range are formatted as "MM/DD/YY HH:MM:SS" and the date in the criteria cell is formatted "MM/DD/YY" because it's selected from the calendar pop up.
Here is the formula I have, and it works if I edit the criteria range values to "MM/DD/YY", but this isn't a practical option for me, as this value is duplicated on multiple sheets in different number formats.
=SUMIFS(Data!G:G,Data!F:F,""&N8&"")
I'm using SUMIFS here instead of SUMIF because I'll be adding multiple criteria once I figure this piece out.
I'm sorry I can't share this sheet as it's for work, but it's fairly straightforward. I am trying here to use a wildcard for cell N8, which contains the date validation, to find the partial date match from F:F Range, and then SUM matching values in G:G range, but when the format contains the time, it doesn't work.
I would appreciate any help or suggestions! Thanks.

If you have true dates, use formula:
=ArrayFormula(SUMIFS(Data!G:G,INT(Data!F:F),N8))
if dates are entered as text, then:
=ArrayFormula(SUMIFS(Data!G:G,LEFT(Data!F:F,10),N8))
in this case months and days must be formatted with leading zero.

Please try the below formula:
=sumifs(Data!G:G,,arrayformula(value(text(Data!F:F,"mm/dd/yy"))),""&N8&"")

Related

Debug a numeric value in a date column SQL

I have a couple of queries running in Google Sheets via Supermetrics.
These all have a column with the date ('2020-05-26') and a numeric column Cost ('3450')
Sometimes in rerunning these queries one of the rows does not show a date format, but a date formatted as number, e.g. '43976' for 2020-05-25. I am importing the sheets in Big Query, but when importing the date column as a date format, I get an error whenever there is one row formatted as a number.
I tried using an arrayformula in Google Sheets to overcome the formatting issue there, but that does not work since you cannot import a column with aan array formula in Google sheets.
I tried importing the column as a string, that works. Now however, I need to make sure all rows are recognised as a date. I used the following formula to change the string into a date, but again that one row formatted as '43976' will block the whole query.
How do I convert a string column, with both values formatted as a date "2020-05-25" and values formatted as a number '43976' to a date column? Thanks for your help!
Hereby a screenshot; however, the formatting is overwritten by the supermetrics query that is run daily, so just changing the formatting in the column here won't help (it will fix it for this day, but not going forward) - I've tried that already..

How to match format of matching value? *Google Sheets

How to match format of matching value? *Google Sheets
https://i.stack.imgur.com/xeZmS.png
If I understand your question, I think I have an answer for you. See sample sheet here:
https://docs.google.com/spreadsheets/d/1QhED3qsoUiX0Km8R86Rg6kHdKdjwQW0uhHZeOd40Sy4/edit?usp=sharing
Note that this currently requires one formula for each of your due date columns, but these are easily dragged across, from D10, for as many columns as you need. There may be a way to combine them as one, but I haven't figured that out yet.
This conditional formatting rule's formula is applied to include D10:D and across as many columns as you need - D10:I18 in this sample sheet.
=arrayformula(index($A$2:$C$18,match(D$9&D10,$A$2:$A$18&$B$2:$B$18,0),3))
which combines the date and the item name, finds them in the initial data, and sees whether the Paid checkbox is ticked. If yes, it formats the text as "strikethrough". For clarity, I've also formatted the cell to gray, but this is easily removed, in the formatting options for that conditional formatting rule.
REFERENCE:
INDEX
ARRAYFORMULA
Conditional Formatting rules

Google Sheets Formula cannot get the date from another cell

I want to get the price of bitcoin on exact date.
The dates are written in Column A and they are updated regularly from a Google form
This is an example of the working formula, but the date in it is written manually (2017-01-31):
=ARRAYFORMULA(IF(ISBLANK($B$2:$B),"",CRYPTOFINANCE("BTC/USD", "price",2017-01-31)))
But when I try to get the dates from Column A, mentioned with $C$2:$C - Google sheets do not understand it
=ARRAYFORMULA(IF(ISBLANK($B$2:$B),"",CRYPTOFINANCE("BTC/USD", "price",$C$2:$C)))
Click here to check The spreadsheet
Thank you in advance!
"Doctor, it hurts when I do this."
In the example spreadsheet you are converting the dates into text for the column C, using the explicit TEXT() function. Then you are wondering why they no longer work as dates?
Stop converting to text.

Google Sheets Conditional formatting based on multiple conditions

I had a spreadsheet in google sheets in my last company which highlighted all my rows based on my qualifying conditions. I can't remember what conditional formatting I used.
I have tried the =IFAND and =AND functions along with others.
This is what I am trying to do:
If column B says DTC and the dates are between two ranges I want it
highlighted. Then I will have multiple rules that vary in dates and
words.
This is the last formula I tried.
=AND($B2="DTC",$E2>="10/1/2017",$E2<="10/6/2018")
If you enconclose dates between quotations marks they will be treated as strings, not as dates. Used DATE(year,month,day) instead.

How to apply google spreadsheet arrayformula for picking out the earliest date in a mixed set of values?

I need to somehow cross data from 2 columns with different criteria: in the first one I have worker's id, in the other - their dates of activities. The idea is to display the earliest date for a selected worker. I tried to organize it via SUMIFS but it only shows one correct date for a worker which started on the absolutely earliest date from the whole range.
See my sample spreadsheet with those formulas here:
https://docs.google.com/spreadsheets/d/1somY2LxNpQic1vclubw-DV9h0Jo3lqcwUuqrI-Praw0/edit?usp=sharing
In other words I'm looking for a formula that will sort out only dates of an appropriate (chosen) worker and display the minimal (earliest) date from it.
Try:
=query(A1:B8; "select A, min(B) group by A";1)
See also cell G1 in the spreadsheet you shared.
Alternatively, try:
=vlookup(D2; sort(A2:B8; 2;1); 2; 0)

Resources