how do you make index&match work in google sheets with dates

Ronderbecke

Board Regular
Joined
Oct 4, 2017
Messages
73
I have an excel document where I have a function working just fine but I cannot get it to work in google sheets. I can't seem to figure out why it won't work properly, but I feel like it is because its using dates. I have tried using text() and indirect() functions along with formatting the columns to show as plain text and nothing works. Here is currently the function working in excel:
=INDEX($A$2:$A$10,MATCH(B3,$A$2:$A$10,1))
8/1/2021​
8/12/2021
8/1/2021​
9/17/2021​
9/5/2021
12/13/2021​
1/17/2022​
It pulls perfectly but gives in google sheets in always just displays the last date in the row? Do I have to use a different function?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
when i use your formula in gsheets, it works correctly. be sure your dates are formatted as dates not text

8/1/20218/12/20218/1/2021
9/17/20219/5/20218/1/2021
12/13/20211/1/202212/13/2021
1/17/20222/1/20221/17/2022
 
Upvote 0
when i use your formula in gsheets, it works correctly. be sure your dates are formatted as dates not text

8/1/20218/12/20218/1/2021
9/17/20219/5/20218/1/2021
12/13/20211/1/202212/13/2021
1/17/20222/1/20221/17/2022
strange, when i uploaded the document, it worked on the formula in google sheets, but broke the formula for referencing? I am using:
=Vlookup(D3,INDIRECT(indirect("C2")&"!$A$2:$B"),2,0) and now it gives an error saying:
ErrorFunction INDIRECT parameter 1 value is '44409!$A$2:$B'. It is not a valid cell/range reference. that function was working before they were cells that were dates?
 
Upvote 0
strange, when i uploaded the document, it worked on the formula in google sheets, but broke the formula for referencing? I am using:
=Vlookup(D3,INDIRECT(indirect("C2")&"!$A$2:$B"),2,0) and now it gives an error saying:
ErrorFunction INDIRECT parameter 1 value is '44409!$A$2:$B'. It is not a valid cell/range reference. that function was working before they were cells that were dates?
Sorry, fixed it by changing the output!
=Vlookup(D3,INDIRECT(text(C2,"m/d/yyyy")&"!$A$2:$B"),2,0)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,910
Messages
6,175,316
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top