数据安排Excel和SQL Server

时间:2014-10-13 10:17:56

标签: sql excel

嗨我需要根据订单中的第1列值排列下面的数据而不进行排序,就像前2行后我需要第12行一样,因为这是在这个组中。请建议使用Excel宏或SQL脚本。

Col1    Col2    Col3    Col4    Col5    Col6    Col7
V(e)    DOS X   Y       Y   Binders, and mixtures thereof, as follows
V(e)(1) DOS X   Y       Y   AMMO (azidomethylmethyloxetane and its polymers) (CAS 90683–29–7)
I   DOS X   Y       Y   Firearms, Close Assault Weapons and Combat Shotguns
I(a)    DOS X   Y       Y   Non-automatic and semi-automatic firearms to caliber .50 inclusive (12.7 mm)
I(b)    DOS X   Y       Y   Fully automatic firearms to .50 caliber inclusive (12.7 mm)
2B001.e DOC AT1,NS2 Y       Y   Machine tools for removing metals, ceramics or "composites",     having all of the following:
2B001.e.1   DOC AT1,NS2 Y       Y   Removing material by means of any of the following: 
2B001   DOC AT1,NP1,NS2 Y       Y   Machine tools and any combination thereof, for removing (or cutting) metals, ceramics or "composites," which, according to the manufacturer's technical specifications, can be equipped with electronic devices for "numerical control", as follows (see List of Items Controlled).
2B001.a DOC AT1,NP1,NS2 Y       Y   Machine tools for turning having all of the following:
I(c)    DOS X   Y       Y   Firearms or other weapons (e.g. insurgency-counterinsurgency, close assault weapons systems) having a special military application regardless of caliber
V(e)(2) DOS X   Y       Y   BAMO-3-3-(bis(azidomethyl)oxetane and its polymers) (CAS 17607–20–4) (see paragraph (g)(1)of this category)
2B001.a.1   DOC AT1,NP1,NS2 Y       Y   Positioning accuracy according to ISO 230/2 (2006) with "all compensations available" equal to or less (better) than 4.5 µm along one or more linear axis
2B001.a.2   DOC AT1,NP1,NS2 Y       Y   Two or more axes which can becoordinated simultaneously for "contouring control"
2B001.e.1.a DOC AT1,NS2 Y       Y   Water or other liquid jets, including those employing abrasive additives
2B001.e.1.b DOC AT1,NS2 Y       Y   Electronic beam
2B001.e.1.c DOC AT1,NS2 Y       Y   "Laser" beam

1 个答案:

答案 0 :(得分:0)

  1. Excel - >数据带 - >文本到列。
  2. 选择"下一步"," Tab"收音机和"完成"
  3. 选择所有数据列
  4. 数据功能区 - > "过滤器"
  5. 在第1列中选择标题。
  6. "分类"