LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default SUMIF, wrong result, strange behaviour

The problem is C1 is a string so excel is comparing the 1st character of the
strings. You can use VALUE to convert the string to a number.

"Werner Rohrmoser" wrote:

Hi,

I have a found something strange, which I do not understand.

Formula in A1: =SUMIF(D1:D3,C1,E1:E3)
value in C1: 02016521000513438888 formatted as text
values in D1:D3 : 0086WX6272000039947, 02016521000513439916,
02026821000513439916
values in E1:E3 : 130
2,214 1,675

Result of SUMIF should be 0, but I get 2,214.

This is something I do not understand.
BTW, you can change the last 4 digits of C1 to whatever you like,
you'll always get 2,214.

Any help is really appreciated.
Thanks.

Werner

 
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
Shortcut key strange behaviour BB programmer Excel Worksheet Functions 1 October 12th 06 12:53 AM
Shortcut key strange behaviour BB programmer Excel Worksheet Functions 2 October 11th 06 04:58 AM
Strange if(***) behaviour? Excel 2003 - SPB Excel Discussion (Misc queries) 6 August 6th 06 05:34 PM
sumif wrong result tallyman00 Excel Worksheet Functions 6 December 29th 05 05:11 PM
Strange behaviour Edgar Thoemmes Excel Worksheet Functions 1 February 8th 05 03:20 PM


All times are GMT +1. The time now is 04:20 AM.

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

About Us

"It's about Microsoft Excel"