Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Specify the Phase based on the Dates

$
0
0

I have dates listed in Column A and I want to convert them to Phases in Column B; e.g. if the date is >= 5 Feb 2024 is equal to Phase 1 & if the date is >= 1 March 2024 is equal to Phase 2 and so on.

So far I've used this formula:

=IFERROR(ARRAYFORMULA(IFS(A:A<>"", IF(A:A >= DATE(2024,2,5), "Phase 1",IF(A:A >= DATE(2024,3,1), "Phase 2",IF(A:A >= DATE(2024,4,6), "Phase 3",IF(A:A >= DATE(2024,5,4), "Phase 4",IF(A:A >= DATE(2024,6,8), "Phase 5",IF(A:A >= DATE(2024,7,6), "Phase 6",IF(A:A >= DATE(2024,8,10), "Phase 7")))))))) ),"")

The problem with this formula is it always return Phase 1 no matter what the dates are. I have tried changing the Date format in column A but to no avail.

I'm open to any other method to group the date ranges into phases.

Link to my example spreadsheet


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>