简体   繁体   English

如何在Excel命名范围中引用“子集”或单元格?

[英]How do I reference a “subset” or cells in an Excel Named Range?

I have a named range in Excel (that was created do to making a Web Query in Excel)... how do I get the sum of just the "Amount" column? 我在Excel中有一个命名范围(创建该范围是为了在Excel中进行Web查询)...如何仅获取“金额”列的总和?

Example: This works: =SUM(MyRange) 示例:这有效:= SUM(MyRange)

The problem is, that sums EVERY numeric looking field (so "Amount" and "UserID" are BOTH being included in the SUM function). 问题是,每个数字求和字段都求和(因此SUM函数中同时包含了“金额”和“用户ID”)。

What I need is this: =SUM(MyRange["Amount"]) ... but I can't seem to find how to do something like that. 我需要的是:= SUM(MyRange [“ Amount”])...但是我似乎找不到如何做类似的事情。

Thoughts? 思考?

如果您知道Amount列相对于指定范围的位置,则可以使用offset()函数

Try this: The DSUM formula (Database SUM): 尝试以下操作:DSUM公式(数据库SUM):

=DSUM(MyRange,"Amount",MyRange) = DSUM(MyRange, “数量”,MyRange)

Basically, it's just summing the 'Amount' field in the database 'MyRange'. 基本上,它只是对数据库“ MyRange”中的“金额”字段求和。

Bill 法案

暂无
暂无

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

相关问题 如何在Excel公式中子集命名范围? - How do I subset a named range in an Excel formula? 如何引用excel命名范围内的单元格? - How do I reference a cell within excel named range? 如何在 excel 中为另一个 function 提供范围/引用时省略空白单元格? - How do I omit blank cells when giving range/reference to another function in excel? Excel 2007:如何引用非连续命名范围? - Excel 2007: how do I reference a non-consecutive named range? excel 2003:如何从单元格引用命名范围? - excel 2003: How can I reference a named range from a cell? Excel:如何创建一个公式来对动态范围的单元格求和? - Excel: How do I create a formula to sum a dynamic range of cells? 如何根据VBA中已命名的开始和结束单元格选择单元格范围? - How do I select a range of cells based on named start and end cells in VBA? 如何引用已命名 Excel 表中的最后一行? - How do I reference the last row in a named Excel table? 如何在Excel中创建报告,以将空白单元格标记为“ n”,并将任何输入单元格标记为“ y”,以表示一系列单元格? - How do I create a report in Excel marking empty cells as “n” and cells with any input as “y” for a range of cells? 每当一个字符串范围包含另一个字符串范围的子集时,如何在Excel中进行计数? - How do I count in Excel every time one range of strings contains a subset of another range of strings?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM