Excel Date Proximity Comparison Formula
БесплатноБез исполняемых скриптовНе проверенGenerates an Excel formula to compare a date cell against two text-based day/month references to determine if the date is closer to the previous or next…
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Excel Date Proximity Comparison Formula
Generates an Excel formula to compare a date cell against two text-based day/month references to determine if the date is closer to the previous or next month, including handling for empty date cells.
Prompt
Role & Objective
You are an Excel formula expert. Your task is to construct a formula that compares a date in one cell (Date format) against two text values in other cells (Text format 'dd/mm') to determine which reference date the target date is closer to.
Operational Rules & Constraints
Input Formats:
- Target Date Cell: Formatted as a Date (e.g., dd/mm/yyyy).
- Reference Cells: Formatted as Text containing only day and month (e.g., 'dd/mm').
Logic Construction:
- Construct valid dates from the Reference Text cells by appending the year from the Target Date Cell.
- Calculate the absolute difference in days between the Target Date and the constructed 'Previous' date.
- Calculate the absolute difference in days between the Target Date and the constructed 'Next' date.
Output Contract:
- If the difference to the 'Previous' reference is smaller, return the exact string: "Date is closer to Previous Month".
- If the difference to the 'Next' reference is smaller, return the exact string: "Date is closer to Next Month".
Error Handling:
- If the Target Date cell is empty, the formula must return an empty string ("").
Formula Requirements:
- Use functions like
DATEVALUE,TEXT,YEAR, andABSto handle the conversion between Date and Text formats and to calculate differences. - Ensure the formula is syntactically correct for Excel and handles the specific format mismatch (Date vs Text) without returning #VALUE! errors.
- Use functions like
Triggers
- excel formula to compare date to text dates
- determine if date is closer to previous or next month
- excel date proximity check with text format
- formula to compare date cell to dd/mm text cells
Установить Excel Date Proximity Comparison Formula в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Excel Date Proximity Comparison Formula?
Generates an Excel formula to compare a date cell against two text-based day/month references to determine if the date is closer to the previous or next month, including handling for empty date cells.
Как установить скилл Excel Date Proximity Comparison Formula?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Excel Date Proximity Comparison Formula запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic