[英]Excel Formula to Add Varying Amounts to Previous Cell
I'm hoping someone can help me with this formula: I need to create a list of numbers like the list below – basically I need 11 added to the previous cell, unless the previous cell ends in “6”, then only 4 gets added to the previous cell, and then adding 11 continues until the next cell ending in "6" 我希望有人可以帮我解决这个问题:我需要创建一个数字列表,如下所示–基本上,我需要在前一个单元格中添加11,除非前一个单元格以“ 6”结尾,那么仅添加4到前一个单元格,然后继续添加11直到下一个以“ 6”结尾的单元格
123456111
123456122
123456133
123456144
123456155
123456166
123456170
123456181
123456192
123456203
123456214
123456225
123456236
123456240
123456251
123456262
123456273
123456284
123456295
123456306
123456310
123456321
Thanks! 谢谢!
Put 123456111
in A1 将
123456111
放入A1
Then, put 然后,放
=IF(RIGHT(A1,1)="6",A1+4,A1+11)
in A2, then copy down 在A2中,然后向下复制
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.