Excel添加从1开始并增加到24然后复位 [英] Excel add column starting at 1 and increments to 24 then resets

查看:101
本文介绍了Excel添加从1开始并增加到24然后复位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在excel中添加一列,从1开始(在单元格A1),并增加直到它达到24,然后重置为一个,然后重复该过程。有人可以告诉我这个公式吗?谢谢

I need to add a column in excel that begins at 1 (at say cell A1) and increments until it hits 24, then resets to one after that and repeats the process. Can someone tell me the formula for this? thanks

推荐答案

使用以下简单公式:

=IF(MOD(ROW(), 24) = 0, 24,MOD(ROW(), 24))

这篇关于Excel添加从1开始并增加到24然后复位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆