Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / December 2005

Tip: Looking for answers? Try searching our database.

sumif criteria

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DOE - 16 Dec 2005 13:23 GMT
Using Excel 2000, I developed a grid incorporating +, -, words and values.
The abbreviated grid looks like this:
       B         C
3  Average   1
4      +         2
5      +         3
6      -          4
7      +         5
8      +         6
9      +         7
10 Average   8
11    -          9
12    -          10
13    -          11
14    +         12
15    -          13
16    -          14
17 Average  15

In cell B19, I set up the following formula: =SUMIF(B3:B17,"+",C3:C17).
Instead of returning the expected result of 35, the value was 12 (value in
B14). I even tried replacing all of the +'s and -'s (using letters) but the
formual result was 0 instead of 35. What went wrong? Thanks for any help!
Duke Carey - 16 Dec 2005 13:32 GMT
See if this works.  It strips out the impact of spaces

=SUMPRODUCT(--(TRIM(B3:B17)="+"),C3:C17)

> Using Excel 2000, I developed a grid incorporating +, -, words and values.
> The abbreviated grid looks like this:
[quoted text clipped - 19 lines]
> B14). I even tried replacing all of the +'s and -'s (using letters) but the
> formual result was 0 instead of 35. What went wrong? Thanks for any help!
Dave Peterson - 16 Dec 2005 17:06 GMT
Could it be that the values in column C aren't really numbers.

If you format the column as General, then retype a few entries, does your
formula evaluate better?

If it does, you could continue to fix them manually or use a macro from David
McRitchie:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()"

> Using Excel 2000, I developed a grid incorporating +, -, words and values.
> The abbreviated grid looks like this:
[quoted text clipped - 19 lines]
> B14). I even tried replacing all of the +'s and -'s (using letters) but the
> formual result was 0 instead of 35. What went wrong? Thanks for any help!

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.