根据先前的表格制作一个单独的表格,省略非值数字
我很难找到适合我想做的事情的正确公式。
基本上,我需要将数据输入表格以提交给会计。我从一张表中取出数据并将其放入另一张表中。我一直使用的公式要求我提供所有数据,而会计只需要带有数值的数据。
红色床单
$7.95 蓝色 $0.00 绿色 $2.00 黄色 $1.00 橙色 $0.00
这是样本表
b
红色 $7.95 蓝色 $0.00 绿色 $2.00 黄色 $1.00 橙色 $0.00
税 1
总计 11.95
这是我需要它去的表。
正如您所看到的,蓝色和橙色的总数为 0,如果它们的总数为 0,我想要做的是从第二个列表中省略它们。我尝试过各种编码,但我不知所措。
I am having trouble getting the right formula for what I am trying to do.
basically, I need to enter data into a table to submit to accounting. I take data from one table and put it into another table. The formulas I have been using require me to all ALL data and accounting only want the data with numerical values.
sheet a
red $7.95
blue $0.00
green $2.00
yellow $1.00
orange $0.00
this is a sample sheet
sheet b
red $7.95
blue $0.00
green $2.00
yellow $1.00
orange $0.00
tax 1
grand total 11.95
this is the sheet I need it to go to.
As you can see the blue and orange have a 0 total and what I want to do is omit them from the second list if they have the 0 total. Ive tried various codings but I am at a loss.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用过滤来删除值为 0 的行。如果复制过滤后的选择,则只会粘贴可见数据。
至于使用函数执行此操作,这实际上并不是 Excel 的设计目的 - 它的设计目的是计算而不是呈现数据,因此您可能会冒险使用 VBA,这可能有点过头了。
You could use filtering to remove rows where the value is 0. If you copy a filtered selection, only the visible data will get pasted.
As for doing this with functions, this isn't really something Excel is designed to do - it's designed to calculate rather than present data, so you're probably venturing into VBA, which is probably overkill.