Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. 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').
  2. 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.
  3. 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".
  4. Error Handling:

    • If the Target Date cell is empty, the formula must return an empty string ("").
  5. Formula Requirements:

    • Use functions like DATEVALUE, TEXT, YEAR, and ABS to 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.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить Excel Date Proximity Comparison Formula с