简体   繁体   English

在Excel公式上寻求帮助

[英]Looking for help on Excel formula

Below is what I am trying to accomplish in excel. 以下是我要在Excel中完成的工作。 I need to find the correct code to fill the series as I need to go to around 7Million. 我需要找到正确的代码来填充系列,因为我需要达到700万左右。 Your help is greatly appreciated and will save me hours of manual work 非常感谢您的帮助,这将节省我数小时的体力劳动

A1  0
A2  50
A3  50
A4  100
A5  100
A6  150
A7  150
A8  200
A9  200
A10 250

Your A11 formula would look like this: 您的A11公式如下所示:

=IF(A9+50=A10,A10,A10+50)

You would have to copy and paste this formula around 140,000 times which may cause your Excel to crash. 您将不得不复制并粘贴此公式大约140,000次,这可能会导致Excel崩溃。 If Excel becomes painfully slow or crashes, copy all formulae and paste as values to improve performance. 如果Excel变得非常缓慢或崩溃,请复制所有公式并粘贴为值以提高性能。

将A1中的0和A2中的50放入A3中,然后填充到A280000。

=A2+(A2=A1)*50

为了简单起见,您也可以在A11使用它并向下拖动:

=A9+50

Turn the calculation to manual. 将计算转换为手动。 in A1 type 0. In A2 type = A1 + 1 . 在A1中键入0。在A2中键入= A1 + 1 In B2 在B2中

=(2*A2+1+(-1)^(A2+1))*12.5

Select A2:B2 and fill/drag/copy down to however Nth number you need the series to. 选择A2:B2,然后向下填充/拖动/复制到您需要序列号的第N个数字。 Turn the calculation back to Automatic. 将计算返回到自动。

If still slow, fill a VBA (1 to N, 1 to 1) array and dump back to excel or save as csv. 如果仍然很慢,请填充VBA(1到N,1到1)阵列,然后转储回excel或另存为csv。

another way to generate the series because there are just not enough posted already 8) 生成系列的另一种方法,因为已经发布的内容不足8)

=ROUNDDOWN(ROW(A1)/2,0)*50

Place where ever you like and copy down. 放在您喜欢的地方并抄下来。

如果您的值在B列中,请在该列的所有单元格中使用以下代码,但B1为0除外:

=SUM(INDIRECT("B" & ROW() - 1)+50)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM