Unfortunately, I am getting an error with some of the rows (Function YEAR parameter 1 expects number values. But ‘07/27/2020’ is a text and cannot be coerced to a number.) and the year does not populate. I have double checked the formatting of column B and it is formatted as Date MM/DD/YYYY (not text as the error suggests)
You can see that the formula is working further down (i.e. around row 270)… so I think the ARRAYFORMULA() is fine. It looks like the issue is with the source-date content. What happens if you retype one of the dates and let Sheets auto-detect it as a date? For example, type “7/31/2020” into cell B257. My guess is that this will fix the value in L257.
If this works, we can think on how to fix the other dates in column B without retyping everything…
Bizarre. At the core, the issue is that the way you have configured your spreadsheet, it is interpreting column B as text, not dates. I’m not entirely sure on how to shake it loose.
What happens if you click on the column B header (to select the entire column top to bottom) and then apply a date format. Does that help?
I tried that as Heather suggested above - I changed it to plain text and I have tried, automatic and various date formats but it does not seem to actually change the formatting. The only thing that had an impact was for me to manually enter the date in the format of YYYY/MM/DD. The way the transactions come in the from the financial institutions is MM/DD/YYYY
If applying formatting isn’t changing the format in column B, then the data is definitely being interpreted as text. Essentially, if it isn’t recognized as a date/number, it doesn’t know how to apply the date formatting.
If it were me, I’d try using DATEVALUE() to convert the text to dates. You could do something like:
In the empty column A, create formula that says =DATEVALUE(B2) in A2
Drag that formula to the bottom of column A
Copy A2:A into the clipboard
Paste the clipboard as values into B2:B
Delete A2:A
If you do this, you should overwrite the text dates with the numeric dates.
Hope this helps.
this sheet really does not like how the financial institutions are populating it.
I did as you suggested and I get the following error (DATEVALUE parameter ‘12/27/2020’ cannot be parsed to date/time.) however this does work for the cells where I manually manipulated the date
I had a similar problem in the past, and found that the ‘Locale’ for my spreadsheet was set to somewhere that had a different way of doing dates. To check this, in your Tiller Spreadsheet, go to ‘File’ then ‘Spreadsheet Settings’ and see what your ‘Locale’ is set to. If it’s not where you’re actually at, try changing it and then see how the date formulas interpret the date text.