new poster here :-) this place as helped me throughout my years of learning I.T stuff as I progress through Adulthood
So this formula im having an issue with with is for a Google SHeet.
basically I want a SHEET that only displays todays ATTENDANCE, and not YESTERDAY or previous dates attendance. So I have two sheets (Today) and (NewData)
New Data (Sheet)
Picture Reference
TODAY Attendance Sheet
Picture 2 Reference
now my formula is this as follows, the part that is broken is the ending (everything after =, as the = should reference cell B1 of Today Attendance Sheet, so it auto populates any new inputted data throughout the day
=QUERY(NewData!$A$1:$H$136,"select A, C, B where E = date '"&TEXT(DATEVALUE("1/1/2000"),"yyyy-mm-dd")&"'",1)
BROKEN WRONG CODE is “”””= date '"&TEXT(DATEVALUE("1/1/2000"),"yyyy-mm-dd")&"'",1)“”””
I like FILTER better than QUERY
=FILTER({'New Data'!A2:A,'New Data'!C2:C,'New Data'!B2:B}, DATEVALUE(LEFT('New Data'!A2:A,FIND(" ",'New Data'!A2:A))) = $B$1)
Todays Attendance Sheet
New Data Sheet
Related
I need a google sheet formula to calculate number of days on the market with my start date but my secondary cell data either has a end date assigned (no issue there) and others with no date (meaning this should default to current date). The issue I have is sheets doesn't recognize cells without an end date and I would like Sheets to recognize no cell data as current date so I get the number of current days until I enter a true end date. Please advise how to configure a simple date formula rule if possible.
I've tried =C1-D1 formula where C1 is start date and D1 is end date. This works fine for cells with end dates entered. The formula however doesn't work if I have yet to apply an end date (empty cell) and would like Sheets to recognize this empty cell as current date. In other words 0 = current date
Something like this?
=IF(D1="",TODAY(),D1)-C1
I am making a new sheet. B2:D2 - Cuvee, Sweet Pea, Zurkle (strains),
A - Dispensary (https://docs.google.com/spreadsheets/d/11ele1sfanpaXYdC4Ng2eWZSPDCCliguEf_ndep_REYU/edit#gid=0)
I want to search another sheet (https://docs.google.com/spreadsheets/d/1SvVyTrHO9saAZrr9DGxrSUNjZr-Y1JfPdSuwng50QE8/edit#gid=0) for the following criteria:
A: Product (B:D above)
D: Dispensary, and
E: Date
and return the last/latest date in the new chart. i.e. return the last date a specific product was purchased by a specific dispensary into the new sheet.
I am new at this and can get the formula for searching the criteria, but do not know how to return the latest date.
Assume that your need to place data in a separate spreadsheets, here is the answer:
Place this formula in 'B3' of your 'Chart 2' spreadsheet.
Since this formula uses IMPORTRANGE() function to get your source data, you may need to Accept it to load data from other spreadsheet on the 1st run.
=LAMBDA(SOURCE,DISPENLOOKUP,PRODUCTLOOKUP,
LAMBDA(PRODUCT,DISPEN,DATE,
MAKEARRAY(COUNTA(DISPENLOOKUP),COUNTA(PRODUCTLOOKUP),LAMBDA(ROWINDEX,COLINDEX,
IFERROR(TEXT(MAX(
FILTER(DATE,SEARCH(INDEX(DISPENLOOKUP,ROWINDEX),DISPEN),SEARCH(INDEX(PRODUCTLOOKUP,COLINDEX),PRODUCT))
),"dd/mm/yyyy"),"")
))
)(INDEX(SOURCE,,1),INDEX(SOURCE,,2),INDEX(SOURCE,,5))
)(QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1SvVyTrHO9saAZrr9DGxrSUNjZr-Y1JfPdSuwng50QE8/edit#gid=0","Sheet1!A1:E"),"WHERE Col1 IS NOT NULL"),$A$3:$A,$B$2:$2)
I have a cell with today’s date "like cell j11", and I have a "table shifts employee" that contains the numbered beginning of the month to its end, and the table contains data. I want to design a dashboard. If today’s date is equal to the date in the table, it shows me the name of the employees at the time of shift and the data written for the day. I need the formula.
You can combine the =today() function with a =vlookup() against your table to return the correct row of what you are looking for. The formulas are displayed in the image under the relevant cells.
In this example it finds todays date, and looks up the relevant date in the table, and returns the data you want to see into F5 and G5.
I've got a Google Form that gathers data into a Google Sheet #1 (say, requests from employees to work on certain days).
My goal is to make a pretty-print list of people who requested to work this week Saturday and Sunday.
Looks like I need to have the data from sheet #1 appear at sheet #2 if it meets certain criteria - all the employee names who's working day from sheet #1 equals to this Saturday.
How can I automatically have in sheet #2 certain data from sheet #1 that meets a criteria?
How can I describe the criteria 'smth equals to this Saturday and Sunday'?
How can I create an output Google Form from sheet #2 formatted nicely ready to print?
Please try:
=query(Responses!A:E,"Select C,D,E where B < date '"&text(today()+6,"yyyy-MM-dd")&"' and (dayOfWeek(B) = 1 or dayOfWeek(B) = 7)")
is it possible to place the name of the first worksheet in a cell and then use it in a formula to reference information for my second sheet?
I am using Google Spreadsheets, and I have one worksheet that houses scheduling data for employees in columns for each day of the week. The second worksheet builds a payroll report, and directly references columns in the first sheet like so:
='Sales Report - WB 10.06'!B3
My question is, is it possible to place the name of the first worksheet in a cell ('Sales Report - WB 10.06') and then use it in a formula to reference information for my second sheet?
My current issue is that I have to create a new schedule and a new payroll sheet for 10 different regions on a weekly basis, and duplicating and changing the formulas in 70 columns to reference the correct sheet will become very tedious.
It would be much easier to just update a cell in the spreadsheet so that the formulas point to the correct worksheet to reference data from.
Yes, by using the INDIRECT function:
A1: Sales Report - WB 10.06
Then you can use:
=INDIRECT("'"&A1&"'!B3")
Hi just used this with MATCH "=MATCH($C10,indirect("'"&B$4&"'!$A:$A"),0)
Cell B4 is a date that changes, MATCH checks sheet name from B4 (A Date) column A1 to A returning the position of whatever you have in C10
So useful to have a variable as a Sheet name Many thanks.