excel - 在 Excel 中为图表选择数据时跳过行的语法是什么?
问题描述
编辑:移动数据以使自己更清楚,并意识到我的问题不正确且不够彻底。
我试图在 Excel 中为图表选择数据时传递两行。我需要从 JN 列中选择,但从 KN 中,我需要跳过第 2-3 行。F 是 X 轴。您如何在 Excel 中制定除第 2-3 行之外的所有列 J 和所有列 KN 的公式?
=Sheet1!$F$1:$F$113,Sheet1!$J$1:$N$113
解决方案
Try this basic macro...it will copy Col J, then hide Rows 2 & 3 and copy cols K:N visible cells only. Adjust the source and destination to suit your needs.
With ThisWorkbook.Sheets("Sheet1")
.Columns("J").SpecialCells(xlCellTypeVisible).Copy _
Destination:=Sheet2.Range("A1")
.Range("A2:A3").EntireRow.Hidden = True
.Columns("K:N").SpecialCells(xlCellTypeVisible).Copy _
Destination:=Sheet2.Range("B1")
End With
推荐阅读
- javascript - web3.js 使用 PHP 解密密钥库 v3
- mysql - Mysql返回错误记录——聚合函数MAX()
- c++ - 如何在 QProcess 中传递/发送 control-c
- angular - 为什么我的输入属性绑定不起作用?- 角
- javascript - 将数字转换为日期的时刻
- r - 根据因子值从现有的两组列中创建一组新的列
- angular - Angular 5 排序无法正常工作
- python-3.x - 反向引用关系中的对称性无法与事件侦听器按预期工作
- html - 是否可以仅在可用时在嵌入的 youtube 视频上显示字幕?
- c - 如何使用结构创建新的 C 对象:错误:未定义的引用