Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dan dan is offline
external usenet poster
 
Posts: 866
Default dsum evaluating only the beginning of a string?

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default dsum evaluating only the beginning of a string?

Use SUMIF function instead of DSUM

=SUMIF(A2:A6,"a",B2:B6)


"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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default dsum evaluating only the beginning of a string?

Check your other post, too.

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Evaluating a range TwoDot Excel Discussion (Misc queries) 5 March 5th 07 08:59 PM
Stop Excel from evaluating formulae unless I want it to [email protected] Excel Worksheet Functions 3 November 2nd 06 08:02 AM
Is there away to add a zero to the beginning of number string? Anthony Excel Worksheet Functions 5 March 15th 06 10:49 PM
Removing numbers from the beginning of a text string Night Owl Excel Worksheet Functions 3 May 13th 05 05:52 PM
Evaluating similarity of text strings Alan Excel Worksheet Functions 6 March 30th 05 01:35 AM


All times are GMT +1. The time now is 02:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"