Excel Formula Sensei
an Excel formula generator. I need your help in generating a formula that calculates ${desired_calculation_or_task} in Excel.
| Category | Office work › Spreadsheets |
|---|---|
| Tags | DraftingAnalyzingOffice workerSpreadsheet |
Act as an Excel formula generator. I need your help in generating a formula that calculates ${desired_calculation_or_task} in Excel. The input data for the formula will be ${describe_the_data_or_cell_references_that_will_be_used}. Please provide a detailed formula that takes into consideration any specific conditions or constraints, such as ${mention_any_specific_requirements_or_constraints}. Additionally, please explain how the formula works step by step, including any necessary functions, operators, or references that should be used. Your assistance in generating an efficient and effective Excel formula will greatly help me in automating my spreadsheet tasks and improving my productivity. Thank you in advance for your expertise!What this prompt does
This formula-generation role is for creating Excel formulas for spreadsheet automation. It requests detailed explanations, but vague data structure may lead to generic formulas.
Real outputs by model
Read full answers
We gave three models the same input and copied their answers unedited. Each ran in its CLI (an agent harness), and answers in the ChatGPT or Claude apps or on the web may differ. Outputs are in Korean.
[Pasted material] desired_calculation_or_task: 월별 재구매 고객 비율 계산 describe_the_data_or_cell_references_that_will_be_used: B2:B500에 주문일자, C2:C500에 고객ID, D2:D500에 해당 고객의 누적 구매횟수 mention_any_specific_requirements_or_constraints: 재구매 기준은 같은 고객이 90일 이내 2회 이상 구매한 경우, 취소된 주문(E열이 '취소')은 집계에서 제외
아래 수식은 F2에 해당 월의 시작일(예: 2026-01-01)을 입력했을 때, 해당 월의 재구매 고객 비율을 계산합니다.
=IFERROR(
LET(
주문일자,$B$2:$B$500,
고객ID,$C$2:$C$500,
상태,$E$2:$E$500,
기준월,$F$2,
유효주문,(주문일자<>"")*(고객ID<>"")*(상태<>"취소"),
월주문,유효주문*(주문일자>=기준월)*(주문일자<EDATE(기준월,1)),
월고객,UNIQUE(FILTER(고객ID,월주문)),
재구매고객수,
SUM(
--MAP(
월고객,
LAMBDA(고객,
LET(
고객주문일자,FILTER(주문일자,유효주문*(고객ID=고객)),
월별주문일자,FILTER(
고객주문일자,
(고객주문일자>=기준월)*
(고객주문일자<EDATE(기준월,1))
),
--(
SUM(
--MAP(
월별주문일자,
LAMBDA(현재주문,
--(SUM(--(
(고객주문일자<현재주문)*
(고객주문일자>=현재주문-90)
))>0)
)
)
)>0
)
)
)
)
),
재구매고객수/ROWS(월고객)
),
0
)
작동 방식
유효주문- 주문일자와 고객ID가 비어 있지 않고
- E열의 주문 상태가
"취소"가 아닌 행만 대상으로 합니다.
월고객F2의 월에 주문한 고객을 중복 없이 추출합니다.- 분모는 해당 월의 전체 유효 고객 수입니다.
고객주문일자- 각 고객의 취소되지 않은 전체 주문일자를 가져옵니다.
현재주문-90- 현재 주문일자보다 이전이면서, 현재 주문일자 기준 90일 이내인 주문을 찾습니다.
재구매 고객 판정
- 해당 월의 주문 중 하나라도 이전 90일 이내의 주문을 가지고 있으면 재구매 고객으로 계산합니다.
최종 계산
재구매 고객 수 ÷ 해당 월 전체 유효 고객 수
셀 서식을 백분율로 지정하면 23.5%와 같이 표시됩니다.
D열의 누적 구매횟수는 단순히 2 이상인지 확인하는 데는 사용할 수 있지만, 90일 이내 구매 여부까지 정확히 판단하려면 주문일자 비교가 필요하므로 위 수식에서는 사용하지 않았습니다.