Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Limitations on Sumif Calculation

I am wondering if anyone has ever encountered a limitation on the number of
characters that are joined (concatenated) in a sumif calculation. For
example, my concatenation has a total of 20 characters (10 digit GL account
and 10 digit cost center). When doing my sumif, I am pointing to the range
that contains those concatenated cells and comparing it to the criteria
established (again a concatenation of 20 characters) to sum the amount for
all of those cells that meet that criteria. What I am getting is the same
value repetitively, because it looks like Excel is cutting off the last digit
of the GL account (not good!). We are using Excel 2007. Any help would be
greatly appreciated.
--
TD1965
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Limitations on Sumif Calculation

TaraD wrote:
I am wondering if anyone has ever encountered a limitation on the number of
characters that are joined (concatenated) in a sumif calculation. For
example, my concatenation has a total of 20 characters (10 digit GL account
and 10 digit cost center). When doing my sumif, I am pointing to the range
that contains those concatenated cells and comparing it to the criteria
established (again a concatenation of 20 characters) to sum the amount for
all of those cells that meet that criteria. What I am getting is the same
value repetitively, because it looks like Excel is cutting off the last digit
of the GL account (not good!). We are using Excel 2007. Any help would be
greatly appreciated.


Show an example of two lines of data that are being summarized but shouldn't be,
and also your current formulas.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Limitations on Sumif Calculation

a concatenation of 20 characters
it looks like Excel is cutting off the last digit
of the GL account (not good!)


Both SUMIF and COUNTIF will evaluate numeric numbers and text numbers as
being equal.

If you have a concatenated string of digits that is 20 characters long then
what's happening is SUMIF is only evaluating the first 15 digits of the
string. For example:

12345678901234500001...10
12345678901234500002...10
12345678901234500003...10
12345678901234500004...10
12345678901234500005...10

=SUMIF(A1:A5,A1,B1:B5)

The correct result should be 10 but the formula returns 50.

Concatenation coerces the string of digits to be a TEXT string (even though
it may look like a number).Since SUMIF evaluates text numbers and numeric
numbers as being equal, Excel "thinks" you entered a number as the criteria
but Excel only recognizes numbers to 15 digits so the formula is evaluating
the criteria as 123456789012345.

Solution:

Use SUMPRODUCT instead of SUMIF.

=SUMPRODUCT(--(A1:A5=A1),B1:B5)

--
Biff
Microsoft Excel MVP


"TaraD" wrote in message
...
I am wondering if anyone has ever encountered a limitation on the number of
characters that are joined (concatenated) in a sumif calculation. For
example, my concatenation has a total of 20 characters (10 digit GL
account
and 10 digit cost center). When doing my sumif, I am pointing to the
range
that contains those concatenated cells and comparing it to the criteria
established (again a concatenation of 20 characters) to sum the amount for
all of those cells that meet that criteria. What I am getting is the same
value repetitively, because it looks like Excel is cutting off the last
digit
of the GL account (not good!). We are using Excel 2007. Any help would
be
greatly appreciated.
--
TD1965



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Limitations on Sumif Calculation

Clarafication:

so the formula is evaluating the criteria as 123456789012345.


Should be:

....so the formula is evaluating the criteria and the criteria range as
123456789012345.

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
a concatenation of 20 characters
it looks like Excel is cutting off the last digit
of the GL account (not good!)


Both SUMIF and COUNTIF will evaluate numeric numbers and text numbers as
being equal.

If you have a concatenated string of digits that is 20 characters long
then what's happening is SUMIF is only evaluating the first 15 digits of
the string. For example:

12345678901234500001...10
12345678901234500002...10
12345678901234500003...10
12345678901234500004...10
12345678901234500005...10

=SUMIF(A1:A5,A1,B1:B5)

The correct result should be 10 but the formula returns 50.

Concatenation coerces the string of digits to be a TEXT string (even
though it may look like a number).Since SUMIF evaluates text numbers and
numeric numbers as being equal, Excel "thinks" you entered a number as the
criteria but Excel only recognizes numbers to 15 digits so the formula is
evaluating the criteria as 123456789012345.

Solution:

Use SUMPRODUCT instead of SUMIF.

=SUMPRODUCT(--(A1:A5=A1),B1:B5)

--
Biff
Microsoft Excel MVP


"TaraD" wrote in message
...
I am wondering if anyone has ever encountered a limitation on the number
of
characters that are joined (concatenated) in a sumif calculation. For
example, my concatenation has a total of 20 characters (10 digit GL
account
and 10 digit cost center). When doing my sumif, I am pointing to the
range
that contains those concatenated cells and comparing it to the criteria
established (again a concatenation of 20 characters) to sum the amount
for
all of those cells that meet that criteria. What I am getting is the
same
value repetitively, because it looks like Excel is cutting off the last
digit
of the GL account (not good!). We are using Excel 2007. Any help would
be
greatly appreciated.
--
TD1965





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
Tab Name Limitations robb Excel Discussion (Misc queries) 2 February 14th 08 04:38 PM
excel limitations TUNGANA KURMA RAJU Excel Discussion (Misc queries) 3 November 24th 05 06:46 AM
Calculation on SUMIF Results Andy B Excel Worksheet Functions 3 October 9th 05 04:47 AM
SUMIF function in "Price quote with tax calculation" templae Peter Excel Worksheet Functions 6 October 3rd 05 07:18 PM
Vlookup limitations Dahlman Excel Worksheet Functions 3 November 19th 04 02:13 AM


All times are GMT +1. The time now is 04:45 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"