在WPS表格(Excel)中,每10行增加一个特定的值

注:如下为WPS表格操作演示

例如1-15的数值是1,16-30就变为2,31-45就变为3,类推!

1、在B1单元格输入一个起始值,B2单元格输入公式=IF(MOD(ROW(),15)=0,B1+1,B1)

然后鼠标放到B2单元格右下角小点处,待鼠标变成实心+号,双击填充

这样得出来第一组会少一个数,手工补上就好了

公式含义解释:
MOD函数用于计算两个数相除的余数,
ROW()函数返回当前行的行号
IF函数如果第一部分表达式的值为真,就返回第二个参数的值,否则就返回第三个参数的值

相关推荐
UR的出不克16 小时前
使用 Python 爬取 Bilibili 弹幕数据并导出 Excel
java·python·excel
wtsolutions16 小时前
Understanding Excel Data Formats - What Excel to JSON Supports
ui·json·excel
ぁず17 小时前
excel想生成一列随机数并删除公式保留值
excel
wtsolutions20 小时前
Real-World Use Cases - How Organizations Use Excel to JSON
json·github·excel
一只小H呀の20 小时前
pandas处理excel数据
excel·pandas
wregjru20 小时前
【操作系统】3.开发工具
excel
wtsolutions1 天前
MCP Service Integration - Excel to JSON for AI and Automation
人工智能·json·excel
wtsolutions1 天前
JSON to Excel Add-in - Seamless Integration Within Excel
json·excel
wtsolutions1 天前
Getting Started with JSON to Excel Web App - Convert in Seconds
json·excel·web app
wtsolutions2 天前
Using the JSON to Excel API - Programmatic Access for Developers
json·excel