views:

261

answers:

2

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?

Example: This works: =SUM(MyRange)

The problem is, that sums EVERY numeric looking field (so "Amount" and "UserID" are BOTH being included in the SUM function).

What I need is this: =SUM(MyRange["Amount"]) ... but I can't seem to find how to do something like that.

Thoughts?

+1  A: 

You could use the offset() function if you know where the Amount column is relative to the named range.

JeffP
+1  A: 

Hey there,

Try this: The DSUM formula (Database SUM):

=DSUM(MyRange,"Amount",MyRange)

Basically, it's just summing the 'Amount' field in the database 'MyRange'.

Bill

JustPlainBill
Wow, that's exactly what I needed :)
Timothy Khouri