Reputation: 11
I am looking to import a column/data based off a common date.
Currently using =TODAY()+2 in "Sheet A" to get the date. I have another sheet ("Sheet B"), which has data that is updated every day automatically, with a row of dates.
I want my spreadsheet to import the column of data in "Sheet B" based on the date generated by =TODAY()+2 in "Sheet A".
For reference, the date I would want today would be in 'DL7' in "Sheet B". And the cell =TODAY()+2 is in is 'O1' in "Sheet A".
Upvotes: 1
Views: 1203
Reputation: 5953
You can use FILTER() to get the data column in "SheetB" based on the date value in "SheetA"
SheetB:
SheetA:
Formula:
SheetA A1: =today()+2
SheetA B1: =filter(SheetB!A2:AD,SheetB!A2:AD2=A1)
SheetB!A2:AD
SheetB!A2:AD2=A1
If SheetA and SheetB is in a separate Google Sheet. You can use this formula in SheetA B1:
=filter(importrange("https://docs.google.com/spreadsheets/d/1RPQ7WOTOZZSirf60kP6nULhViCdsuGHcOxxxxx/edit","SheetB!A2:AD"),index(importrange("https://docs.google.com/spreadsheets/d/1RPQ7WOTOZZSirf60kP6nULhViCdsuGHcOxxxxx/edit","SheetB!A2:AD"),1,0)=A1)
Upvotes: 1