Finding Latest Date Based on Dataset in Google Sheets - google-sheets

I have a dataset in 2 separate worksheets.
In worksheet one, we keep track of website's that we have scanned and when we have scanned them last. Each website will have multiple rows of data as each site is typically scanned each week.
In worksheet two, we have our database of websites that we can along with additional info pertaining to those websites.
I am wondering if there is a formula that we can use in worksheet two that will pull the last date scanned from our data in worksheet one?
A reference spreadsheet is here: https://docs.google.com/spreadsheets/d/1clrqDaWiKa2xCAgdZxcVfW_g06MmG7LSrp_fUDF0_Sw/edit?usp=sharing
I would like the "Date Last Scanned" in worksheet two to show the most recent date shown in column B on worksheet one.
Thanks in advance!
I have a dataset in 2 separate worksheets.
In worksheet one, we keep track of website's that we have scanned and when we have scanned them last. Each website will have multiple rows of data as each site is typically scanned each week.
In worksheet two, we have our database of websites that we can along with additional info pertaining to those websites.
I am wondering if there is a formula that we can use in worksheet two that will pull the last date scanned from our data in worksheet one?
A reference spreadsheet is here: https://docs.google.com/spreadsheets/d/1clrqDaWiKa2xCAgdZxcVfW_g06MmG7LSrp_fUDF0_Sw/edit?usp=sharing
I would like the "Date Last Scanned" in worksheet two to show the most recent date shown in column B on worksheet one.
Thanks in advance!

Put this formula in cell 'Dataset 2'!C2:
=to_date( maxifs('Dataset 1'!B$2:B, 'Dataset 1'!A$2:A, B2) )
Format the cell as Format > Number > Date or another date format of your preference. Then copy the cell down as far as needed.

Related

Google Sheets formula help - total the number of X in a specific data range from another sheet

I have a spreadsheet with multiple pages. on page one i have a chart with row values of months and column values of different subjects.
i would like to have a formula that supplies a live update of all instances of X in a specific data range on page one and the data on page two. (ie: total number of times "Apple" is listed in column B for the month of august, date in column A).
of note: data is added to the top of this sheet every day, so the cells need to be dynamic
thank you for your assistance.

How can I count the number of items listed on a different google sheet based on dates in 2 different cells and if another cell is blank?

I have a google doc that tracks information about employee training (Example 1). I have another google doc that needs to summarize the information (Example 2) from multiple different sheets which mirror example 1 but for different teams.
Example 1: this sheet is tracking employees start dates, dates they finish training, and if they have quit. (there are multiple different docs all with the same format that I'm pulling from using importrange).
I need a formula that will count the number of employees currently in training. So count if start date is equal to or after today, end date is equal to or less than today, and the quit column is blank.
If the formula worked the way it should, and I was looking at the summary doc on 11/10/2021, it should report 4 people in the "# in Training" column on the table below (Example 2).
I have tried using an ArrayFormula with CountIfs to accomplish this, but it still pulls 0. Here is the formula I've been playing with:
=ArrayFormula(COUNTIFS('tracker'!$B$2:$B, "<="&TODAY(), 'tracker'!$C$2:$C, ">="&TODAY(), 'tracker'!$D$2:$D,""))
Give a try on below formula-
=COUNTIFS(B2:B8,"<=" & DATE(2021,11,10),C2:C8,">=" & DATE(2021,11,10),D2:D8,"")

Provide a summary sheet based on data from other sheet in same workbook

I am creating a sheet where I am tracking the working hours of some employees in google sheets.
Each month I need to provide a summary per employee to sign. Until now I was doing it by hand, but there must be some better way to do it.
A test sheet can be found here, the first sheet is data, the second sheet is the summary I am looking for.
https://docs.google.com/spreadsheets/d/1LmJYMqJTEpjSKNY4qFXhLRaBbotj7lUEHauynzHISwg/edit?usp=sharing
Is there any way to use an array formula with some filters for Employee name and a date range to accomplish this?

Simple time functions in Excel/Google Sheets

I am creating a tool for my restaurant. Everyday, I have employees input their sales numbers into a Google Form on their phones. The results of which are archived in a Google Sheets spreadsheet as 'FormResults'.
I need a way to auto-write only the most recent values of each employee's formResults data into the appropriate slots to do the daily calculations of tips in sheet1.
I also want to archive the form data. This is why I don't just manually input the data daily into the calculator.
This is my crude If statement:
If {A15=today,B15=Mike} then write Contents of C15 into this cell
A1,B2,C2 are in sheet2 and I want sheet1 to only display the most recent value of each of these.
Do either of these work as you want (assuming cell A1 contains the employee name)?
To return the data from most recent date:
=MAX(FILTER(sheet2!C:C,sheet2!B:B=A1))
Or to return data from today
=FILTER(sheet2!C:C,sheet2!B:B=A1,INT(sheet2!A:A)=TODAY())

Google Sheets Copy Down Issue

I have a google form that my students fill out daily. All form responses feed into one workbook. From the workbook, I have a spreadsheet for "Clean" data. Which is just the information from the responses sheet needed to graph progress. The formula I am using in A2 is: ='Form Responses 1'!N2
Nothing too complicated right?
However, each day that I want to show the kids their progress on the charts, I have to select the last two entries in the Clean Data worksheet and copydown the formulas in order for the new data to appear. Apparently, every time there is a new form submission, google sheets changes the cell address in the formulas. Is there any way around this?
As JPV commented, the "pushing down of formulae" by form submissions may be counteracted by using an array formula (in row 2):
=ArrayFormula('Form Responses 1'!N2:N)
And as Akshin commented, if you were in fact bringing over a couple of columns for graphing purposes, you can do it all in one with QUERY. For example:
=QUERY('Form Responses 1'!A:N,"select A, N",1)

Resources