Share via

Comparing data corresponding to two date values where date is in single column

Anonymous
2024-07-05T11:06:44+00:00

Hi,

This is my main table

Publication date Project Name Start date End date
14-03-2024 A 14-06-2024 18-07-2025
20-05-2024 A 15-07-2024 18-07-2025
08-09-2024 B 15-07-2024 31-12-2024
06-07-2024 A 15-07-2024 16-08-2025

I have the publication date I want the user to select 2 publication dates which means I need to create 2 filters from the publication date so for example when filter 1 is selected= 14-03-2024 and filter 2 = is 20-05-2024

I need this as an output that shows the date shift of the start and end date of the project in comparison to filter 1 and filter 2 values

Project name Planned start date Planned end date 14-03-2024 Actual start date Actual end date 20-05-2024
A 14-06-2024 18-07-2025 399 15-07-2024 18-07-2025 368
Microsoft 365 and Office | Install, redeem, activate | For education | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2024-07-05T12:23:09+00:00

=FILTER(A2:D5,(A2:A5>=A9)*(A2:A5<=A10))

Image

Or this one

=TOROW(FILTER(B2:D5,(A2:A5>=A9)*(A2:A5<=A10)),,0)

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-07-05T12:11:59+00:00

    Filter 1 and filter 2 is from publication date column the 1st one so column 1st
    when publication date is 14-03-2024 start date is (Planned start)14-06-2024 and end date is(Planned end) 18-07-2025 and when publication date is 20-05-2024

    start date (actual start )is 15-07-2024 and end date (Actual end) 18-07-2025so we will be comparing start and end date from 14th March with 20th May to understand the date shift(start and end date )

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-07-05T11:36:14+00:00

    Could you share a test file?

    You may upload to OneDrive or any other cloud Drive, then post a link here.

    Which column to compare with filter 1 and filter2?

    You may use FILTER function - Microsoft Support

    =Filter(Table range, (column date>Filter1)*(column date<Filter2))

    Was this answer helpful?

    0 comments No comments