PC Review


Reply
Thread Tools Rate Thread

DSUM - Lotus vs Excel

 
 
Ken
Guest
Posts: n/a
 
      14th Oct 2003
In Lotus 123 I was able to attach an if statement to a
DSUM statement for the criteria. When I do this in Excel I
get #Name error. See Example:

A B C D
1 class TYPE AMT1 AMT2
2 w x y z
3 a e 100 200
4 b x 300 400
5 c e 500 600

Range name DATA = A2 : D5

Statement trying to use:

=DSUM(data,"y",IF(w="a",x="e",0))

Answer should be 600

Please let me know if a statement like this is valid in
excel.
 
Reply With Quote
 
 
 
 
Bob Umlas
Guest
Posts: n/a
 
      14th Oct 2003
DSUM formula's 3rd parameter MUST be a range reference, nothing else.

"Ken" <(E-Mail Removed)> wrote in message
news:0a9c01c39283$ed764cb0$(E-Mail Removed)...
> In Lotus 123 I was able to attach an if statement to a
> DSUM statement for the criteria. When I do this in Excel I
> get #Name error. See Example:
>
> A B C D
> 1 class TYPE AMT1 AMT2
> 2 w x y z
> 3 a e 100 200
> 4 b x 300 400
> 5 c e 500 600
>
> Range name DATA = A2 : D5
>
> Statement trying to use:
>
> =DSUM(data,"y",IF(w="a",x="e",0))
>
> Answer should be 600
>
> Please let me know if a statement like this is valid in
> excel.



 
Reply With Quote
 
Harlan Grove
Guest
Posts: n/a
 
      14th Oct 2003
"Ken" wrote...
>In Lotus 123 I was able to attach an if statement to a
>DSUM statement for the criteria. When I do this in Excel I
>get #Name error. See Example:
>
> A B C D
>1 class TYPE AMT1 AMT2
>2 w x y z
>3 a e 100 200
>4 b x 300 400
>5 c e 500 600
>
>Range name DATA = A2 : D5
>
>Statement trying to use:
>
>=DSUM(data,"y",IF(w="a",x="e",0))
>
>Answer should be 600


No it shouldn't. You're using w and x as field names, and only the record in row
3 satisfies the w="a" criterion, so in 123 (just tested in 123 Release 5) the
formula @DSUM(DATA,"y",@IF(W="a",X="e",0)) returns 100. On the other hand, the
formula @DSUM(DATA,"y",@IF(W<>"b",X="e",0)) returns 600.

>Please let me know if a statement like this is valid in
>excel.


Nope. Excel supports 123 Release 2.01 @DSUM functionality, no more. Meaning that
Excel's DSUM requires a reference to a criteria *RANGE* as 3rd argument.

There are work-arounds of varying degrees of complexity. See the following
archived thread.

http://www.google.com/groups?threadm...280a%40phx.gbl

--
Never attach files.
Snip unnecessary quoted text.
Never multipost (though crossposting is usually OK).
Don't change subject lines because it corrupts Google newsgroup archives.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lotus to Excel to Lotus =?Utf-8?B?bWVsc2VsZWN0cmlj?= Microsoft Excel Misc 2 25th Jul 2007 11:50 AM
Converting Lotus DSUM to Excel SUMIF HSNYDER313@COX.NET Microsoft Excel Programming 2 2nd Dec 2006 07:45 PM
Array Formula Limits (around 2800 or so) ? Lotus DSUM has no problems with it ! xlguy Microsoft Excel Misc 6 15th Dec 2005 06:24 PM
DSUM Criteria and Excel Help =?Utf-8?B?RHN1bSBDcml0ZXJpYQ==?= Microsoft Excel Worksheet Functions 3 30th Apr 2004 07:55 PM
Converting Lotus 1.2.3 V5 DSUM function with multiple conditions to Excel pb1 Microsoft Excel Worksheet Functions 3 13th Jan 2004 07:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:36 PM.