always_confused
Board Regular
- Joined
- Feb 19, 2021
- Messages
- 68
- Office Version
- 2016
- Platform
- Windows
Hello,
I have a spreadsheet with a column containing timestamps (format dd/mm/yyyy hh:mm:ss). I am trying to select certain dates: within a certain month, within a certain year etc. The month I want to select within is selected in a combobox (format yyyy/mm). The way I'm doing it is comparing the combobox value to MID(timestamp_column, 4,7). Which works well enough but it's very slow. I actually have multiple columns of timestamps and they all need to be checked. Is there any built in function do do this? I have seen people using format() but I can't make it work for "mm/yyyy".
In short, my question is: Is there any quicker way to extract different parts of a timestamp value and different combinations of these parts (dd/mm, mm/yyyy etc.)?
I have a spreadsheet with a column containing timestamps (format dd/mm/yyyy hh:mm:ss). I am trying to select certain dates: within a certain month, within a certain year etc. The month I want to select within is selected in a combobox (format yyyy/mm). The way I'm doing it is comparing the combobox value to MID(timestamp_column, 4,7). Which works well enough but it's very slow. I actually have multiple columns of timestamps and they all need to be checked. Is there any built in function do do this? I have seen people using format() but I can't make it work for "mm/yyyy".
In short, my question is: Is there any quicker way to extract different parts of a timestamp value and different combinations of these parts (dd/mm, mm/yyyy etc.)?