没有VB,如何在excel中生成自定义行? [英] How do you generate custom rows in excel without VB?

查看:70
本文介绍了没有VB,如何在excel中生成自定义行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试自动生成用于导入的手动订单。没有VB,可以在excel中完成吗?

I am trying to auto generate manual orders for import. Can this be done in excel without VB?

我正在收集工作表1上的订购单,由于它是一种实际产品,因此我需要在每个非重复月份获得一份订单。工作表1将被新的处理订单填充,我希望能够导出工作表2而不必手动创建每个订单。

I am gathering subscription orders on sheet 1, and since it is a physical product being shipped I need to have one order for each non-recurring month. Sheet 1 will be filled by new processing orders, and I would like to be able to export sheet 2 without having to manually create each order.


  • 这是我在工作表1上开始的数据:
    工作表1订单详细信息


  • 这是我要在sheet2上生成的数据:

第2张-待导出

推荐答案

您可以使用公式,但是您可以需要一些代码来关注数据,例如使用公式,您会说1000行,然后保存它,但是当数据达到1001行时,您需要再添加1行,因此可以认为有1000行,100行效率不高,但是如果您很快达到设置的极限,则可以说这是e绝对高效。

You can do with formula, but you will need a little code to keep your eye on the data, as with formula, you'll do say, 1000 rows, then save it, but when your data hits 1001 rows, you need to add a further 1 row, so it can be considered inefficient to have 1000 rows, for 100 rows, but if you quickly get to the limit you've set, you can argue it is eventually efficient.

我已附上图片

公式如下

D2向下填充 = MID(C2,1,FIND (,C2,1))

E2 = INT(D2)

E3填满 = SUM($ E $ 2:E2)+ INT(D3)

G2 = A2

G3已填满 = IF(ROW()-2< VLOOKUP(G2,$ A $ 2:$ E $ 4,5,0),G2,INDEX($ A $ 2:$ A $ 4,MATCH(G2,$ A $ 2:$ A $ 4, 0)+1,1))

H2填充 = COUNTIF($ G $ 2:$ G2,G2 )

I2填充 = EDATE(VLOOKUP(G2,$ A $ 2:$ B $ 4,2,0 ),H2-1)

J2填充了 = VLOOKUP(G2,$ A $ 2:$ C $ 4, 3,0)

K2填充 = TEXT(I2, mmm)& _& H2和 _of_& COUNTIF($ G $ 2:$ G $ 15,G2)& -& G2

希望这会有所帮助

这篇关于没有VB,如何在excel中生成自定义行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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