Dear BLBARBER,
Thank you for your detailed question. I see you have issues with the character limit in your complex due date calculation. Let me help you optimize this. To overcome the character limit while maintaining all 76 priority levels, here’s a more efficient approach using mathematical parsing instead of nested IFs:
Optimized Formula Solution:
=Sdate -
IF(
ISNUMBER(SEARCH("-Days", Priority)),
VALUE(LEFT(Priority, SEARCH("-", Priority) - 1)),
IF(
ISNUMBER(SEARCH("-Weeks", Priority)),
VALUE(LEFT(Priority, SEARCH("-", Priority) - 1)) * 7,
0 // Default case
)
)
This will work like:
- For Day Priorities (1-14 Days)
- Extracts the number before "-Days"
- Subtracts that value directly (e.g., "3-Days" → 3)
- For Week Priorities (3-64 Weeks)
- Extracts the number before "-Weeks"
- Multiplies by 7 (e.g., "5-Weeks" → 5×7 = 35)
And here is how to perform the above steps:
- Create a Calculated Column in your Microsoft List
- Paste this formula (only 380 characters!)
- Test with:
- Priority = "6-Days" → Returns Sdate-6
- Priority = "12-Weeks" → Returns Sdate-84
For education-specific implementations, please consider creating a lookup table if priorities change frequently and use Power Automate for complex business logic beyond formulas.
If we appreciate your time and look forward to resolving this for you. Feel free to ask me if the issue still persists!
Best regards,
Dustin-TP - MSFT | Microsoft Community Support Specialist.