Timestamp ignore - Google Sheets

Keshek

New Member
Joined
Apr 14, 2023
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
=IFNA((VLOOKUP(DATE(Q$1,MONTH($P2),DAY($O2)),'Input Data'!$A:$C,3,FALSE)),Q3)
Is it possible for this to ignore the timestamp, if the range also has timestamp included in column A?

As in it looks like this 31/10/2020 12:00:00.

Google sheets btw.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Yes, you can modify the formula to ignore the timestamp by using the INT function to extract only the date part of the datetime value in column A.

Here's the modified formula:

=IFNA((ARRAYFORMULA(VLOOKUP(DATE(Q$1,MONTH($P2),DAY($O2)),{INT('Input Data'!$A:$A), 'Input Data'!$B:$C},3,FALSE))),Q3)


This formula uses the ARRAYFORMULA function to apply the INT function to the entire 'Input Data'!$A:$A range, effectively removing the time portion of the datetime values. The rest of the formula remains the same as before, using the VLOOKUP function to search for the desired date and return the corresponding value from column C.
 
Upvote 0
Another option that may work in Sheets.
Excel Formula:
=IFNA(INDEX('Input Data'!$C$2:$C$1000,MATCH(DATE(Q$1,MONTH($P2),DAY($O2)),INT('Input Data'!$A$2:$A$1000),0)),Q3)
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,233
Members
449,092
Latest member
SCleaveland

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