PC Review


Reply
Thread Tools Rate Thread

dsum evaluating only the beginning of a string?

 
 
=?Utf-8?B?RGFu?=
Guest
Posts: n/a
 
      9th Nov 2007
Hi,
I have notice something strange with the Dsum function
it is not comparing the full criteria but only the begining of it

for example:

name grade
a 1
b 2
c 3
d 4
abcd 5


criteria

name grade
a


dsum will give 6 (1 for "a "+ 5 for "abcd") and not the expect 1 for "a" only

is there a way around that?

Many thanks
Dan

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      9th Nov 2007
Try changing your criteria to a formula:
="=a"

or use a different formula:
=sumif(a:a,"A",b:b)



Dan wrote:
>
> Hi,
> I have notice something strange with the Dsum function
> it is not comparing the full criteria but only the begining of it
>
> for example:
>
> name grade
> a 1
> b 2
> c 3
> d 4
> abcd 5
>
> criteria
>
> name grade
> a
>
> dsum will give 6 (1 for "a "+ 5 for "abcd") and not the expect 1 for "a" only
>
> is there a way around that?
>
> Many thanks
> Dan


--

Dave Peterson
 
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
dsum evaluating only the beginning of a string? =?Utf-8?B?RGFu?= Microsoft Excel Worksheet Functions 2 9th Nov 2007 03:51 PM
evaluating a string Imran Microsoft Excel Discussion 2 3rd Aug 2006 12:27 PM
Evaluating a String tobesurveyor via AccessMonster.com Microsoft Access VBA Modules 1 18th Apr 2006 01:38 PM
Re: Evaluating String Expression Ashok Maheshwari Microsoft VB .NET 5 23rd Aug 2003 10:04 PM
Evaluating String Expression Ashok Microsoft VB .NET 3 21st Aug 2003 07:20 PM


Features
 

Advertising
 

Newsgroups
 


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