![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Near the Land of Oz
Posts: 1,550
|
I have a table (labeled "Corp") $A$3:$J$196.
Column A is City Column B is Company Columns C-I are spending subtotals Column J is the sum of Columns C-I I am trying to set up a DSUM to show the spending for a company across the various cities. In cell M6 I have put this formula: =DSUM(Corp,J3:J196,CritRange) where CritRange is a named range ($M$3) in which I type the company name. However, no matter what I enter into M3 I receive the notice: "#Value!" What am I doing wrong? Any help would be much appreciated. _________________ - old, slow, and confused ... but at least I'm inconsistent - [ This Message was edited by: shades on 2002-04-10 12:53 ] |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
In M3 enter: a city for which you want to compute a total/sum. Use: =DSUM(Corp,10,M2:M3) where 10 is the column number of J. Aladin |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Near the Land of Oz
Posts: 1,550
|
Thanks. That works great!
Now I wonder why The "Using MS Excel 2000 SE" reference book doesn't give it this way? So, with any of the D-Functions, is it always the column number that should be referenced in the "Field" rather than the name of the column? |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
Aladin |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|