HTD formula
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
J054305
6 - Meteoroid
‎04-13-2022
02:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Is there a formula to identify semi annual? For example currently semi Annual date range would be 1/1/2022 to 6/30/2022
Labels:
- Labels:
- Date Time
2 REPLIES 2
21 - Polaris
‎04-13-2022
03:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@J054305
I imagine that your input would be a list of dates given not input sample provided.
I use a index then comparing with each input date to check which semi annual they fall into.
I did not use DateTime function as you can see.
19 - Altair
‎04-14-2022
10:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @J054305
If the dates are in m/d/yyyy format like your example then your can use a formula tool with this
if ToNumber(Left([Date],FindString([Date],"/")))<=6 then
"First Half"
else
"Second Half"
Endif
If the dates have been converted to ISO format(yyyy-mm-dd) then use
if DateTimeMonth([Date])<=6 then
"First Half"
Else
"Second Half"
Endif
In both cases, you're just checking for month<=6
Dan
