Text in column causing SUMPRODUCT error

Greegings.  I have a SUMPRODUCT formula that is having errors when one of the 
columns has text instead of a NULL or a number.  If I delete the text cells 
in that column it works as desired.  I'll give a simple example.  Suppose I 
have the following in A1:B6....

a	1
a	2
a	abc
b	1
b	1
a	2

And I need this...

=SUMPRODUCT(($A$1:$A$6="a")*($B$1:$B$6))

It errors out until I delete the "abc" in cell B3, then it works as desired. 
 I tried to replace the "abc" with a 0 by trying this...

=IF(ISNUMBER(B3)=FALSE,0,B3)

And it works for that particular cell, but it does not work in the 
SUMPRODUCT formula like this...

=SUMPRODUCT(($A$1:$A$6="a")*(IF(ISNUMBER($B$1:$B$6)=FALSE,0,$B$1:$B$6))*($B$1:$B$6))

Any ideas on how I can deal with the text cells in column "B"?  Deleting 
them is not an option.  Thank you.





0
Utf
1/6/2010 3:17:01 PM
excel.programming 6508 articles. 2 followers. Follow

7 Replies
832 Views

Similar Articles

[PageSpeed] 30

try:

=SUMPRODUCT(--($A$1:$A$6="a"),$B$1:$B$6)

Just like =sum() will treat text as 0, =sumproduct() with the comma syntax will
do the same.

Adjust the ranges to match--but you can't use whole columns (except in xl2007+). 

=sumproduct() likes to work with numbers.  The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Greg Snidow wrote:
> 
> Greegings.  I have a SUMPRODUCT formula that is having errors when one of the
> columns has text instead of a NULL or a number.  If I delete the text cells
> in that column it works as desired.  I'll give a simple example.  Suppose I
> have the following in A1:B6....
> 
> a       1
> a       2
> a       abc
> b       1
> b       1
> a       2
> 
> And I need this...
> 
> =SUMPRODUCT(($A$1:$A$6="a")*($B$1:$B$6))
> 
> It errors out until I delete the "abc" in cell B3, then it works as desired.
>  I tried to replace the "abc" with a 0 by trying this...
> 
> =IF(ISNUMBER(B3)=FALSE,0,B3)
> 
> And it works for that particular cell, but it does not work in the
> SUMPRODUCT formula like this...
> 
> =SUMPRODUCT(($A$1:$A$6="a")*(IF(ISNUMBER($B$1:$B$6)=FALSE,0,$B$1:$B$6))*($B$1:$B$6))
> 
> Any ideas on how I can deal with the text cells in column "B"?  Deleting
> them is not an option.  Thank you.

-- 

Dave Peterson
0
Dave
1/6/2010 3:33:40 PM
This array-entered** formula appears to do what you want...

=SUM(($A$1:$A$6="a")*IF(ISNUMBER($B$1:$B$6),$B$1:$B$6,0))

**Commit formula using Ctrl+Shift+Enter and not just Enter by itself

-- 
Rick (MVP - Excel)


"Greg Snidow" <GregSnidow@discussions.microsoft.com> wrote in message 
news:3DCA3F3B-6D5E-4268-8DFB-17B1F9DEA910@microsoft.com...
> Greegings.  I have a SUMPRODUCT formula that is having errors when one of 
> the
> columns has text instead of a NULL or a number.  If I delete the text 
> cells
> in that column it works as desired.  I'll give a simple example.  Suppose 
> I
> have the following in A1:B6....
>
> a 1
> a 2
> a abc
> b 1
> b 1
> a 2
>
> And I need this...
>
> =SUMPRODUCT(($A$1:$A$6="a")*($B$1:$B$6))
>
> It errors out until I delete the "abc" in cell B3, then it works as 
> desired.
> I tried to replace the "abc" with a 0 by trying this...
>
> =IF(ISNUMBER(B3)=FALSE,0,B3)
>
> And it works for that particular cell, but it does not work in the
> SUMPRODUCT formula like this...
>
> =SUMPRODUCT(($A$1:$A$6="a")*(IF(ISNUMBER($B$1:$B$6)=FALSE,0,$B$1:$B$6))*($B$1:$B$6))
>
> Any ideas on how I can deal with the text cells in column "B"?  Deleting
> them is not an option.  Thank you.
>
>
>
>
> 

0
Rick
1/6/2010 3:37:21 PM
Try changing you formula to this

=SUMPRODUCT(--($A$1:$A$6="a"),$B$1:$B$6)

The double operator -- forces an evaluation and replacing the * with a , 
forces each array to evaluate seperately
-- 
If this helps, please remember to click yes.


"Greg Snidow" wrote:

> Greegings.  I have a SUMPRODUCT formula that is having errors when one of the 
> columns has text instead of a NULL or a number.  If I delete the text cells 
> in that column it works as desired.  I'll give a simple example.  Suppose I 
> have the following in A1:B6....
> 
> a	1
> a	2
> a	abc
> b	1
> b	1
> a	2
> 
> And I need this...
> 
> =SUMPRODUCT(($A$1:$A$6="a")*($B$1:$B$6))
> 
> It errors out until I delete the "abc" in cell B3, then it works as desired. 
>  I tried to replace the "abc" with a 0 by trying this...
> 
> =IF(ISNUMBER(B3)=FALSE,0,B3)
> 
> And it works for that particular cell, but it does not work in the 
> SUMPRODUCT formula like this...
> 
> =SUMPRODUCT(($A$1:$A$6="a")*(IF(ISNUMBER($B$1:$B$6)=FALSE,0,$B$1:$B$6))*($B$1:$B$6))
> 
> Any ideas on how I can deal with the text cells in column "B"?  Deleting 
> them is not an option.  Thank you.
> 
> 
> 
> 
> 
0
Utf
1/6/2010 4:06:02 PM
Please note, I am trying all of your suggestions, with Paul's and Dave's 
being the same, so  I am replying to myself simply to consolidate the thread. 
 First off, this is the real formula from my spreadsheet, and the one giving 
me errors...

=SUMPRODUCT(($A$23:$A$1604="o")*($B$23:$B$1604="c")*($E$23:$E$1604="Best 
View-Current (SFU)")*(F$23:F$1604))

The final array, F$23:F$1604, is the one in question, where some of the 
cells have text values.  This is what I have tried so far...

Added dashes, and replaced '*' with ','
=SUMPRODUCT(--($A$23:$A$1604="o"),($B$23:$B$1604="c"),($E$23:$E$1604="Best 
View-Current (SFU)"),(F$23:F$1604))
This got rid of the error, but now returns a 0, where the answer when I 
delete the text cells is around 250,000.


Tried entering it as an array formula by using ctrl+shift+enter, still with 
the dashes and ',' instead of '*'
{=SUMPRODUCT(--($A$23:$A$1604="o"),($B$23:$B$1604="c"),($E$23:$E$1604="Best 
View-Current (SFU)"),IF(ISNUMBER(F$23:F$1604)=FALSE,0,F$23:F$1604))}
And the answer is again 0.

Tried entering it as an array formula without the dashes and with '*''s 
instead of ',''s...
{=SUMPRODUCT(($A$23:$A$1604="o")*($B$23:$B$1604="c")*($E$23:$E$1604="Best 
View-Current (SFU)")*IF(ISNUMBER(F$23:F$1604)=FALSE,0,F$23:F$1604))}

And the answer was correct, so, Rick, thanks for the tip.

Paul and Dave,  I'm not sure exactly what the dashes are doing, nor why it 
did not work in my case.  Do they have a technical name I could use to google 
more about it?  

Thank you all, for taking time out of your day to consider my problem and 
reply so promptly.

Greg







"Greg Snidow" wrote:

> Greegings.  I have a SUMPRODUCT formula that is having errors when one of the 
> columns has text instead of a NULL or a number.  If I delete the text cells 
> in that column it works as desired.  I'll give a simple example.  Suppose I 
> have the following in A1:B6....
> 
> a	1
> a	2
> a	abc
> b	1
> b	1
> a	2
> 
> And I need this...
> 
> =SUMPRODUCT(($A$1:$A$6="a")*($B$1:$B$6))
> 
> It errors out until I delete the "abc" in cell B3, then it works as desired. 
>  I tried to replace the "abc" with a 0 by trying this...
> 
> =IF(ISNUMBER(B3)=FALSE,0,B3)
> 
> And it works for that particular cell, but it does not work in the 
> SUMPRODUCT formula like this...
> 
> =SUMPRODUCT(($A$1:$A$6="a")*(IF(ISNUMBER($B$1:$B$6)=FALSE,0,$B$1:$B$6))*($B$1:$B$6))
> 
> Any ideas on how I can deal with the text cells in column "B"?  Deleting 
> them is not an option.  Thank you.
> 
> 
> 
> 
> 
0
Utf
1/6/2010 6:06:01 PM
Try:

=SUMPRODUCT(--($A$23:$A$1604="o"),
            --($B$23:$B$1604="c"),
            --($E$23:$E$1604="Best View-Current (SFU)"),
              (F$23:F$1604))

Adjust the ranges to match--but you can't use whole columns (except in xl2007+). 

=sumproduct() likes to work with numbers.  The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

====================
A23:A1604="o"
will result in an array of 1582 true/falses.  The -- stuff changes the true's to
1's and the false's to 0.

Put 
TRUE
in A1

put 
-a1
in B1

put 
--a1
in C1

And you'll see why you want two of them.

Greg Snidow wrote:
> 
> Please note, I am trying all of your suggestions, with Paul's and Dave's
> being the same, so  I am replying to myself simply to consolidate the thread.
>  First off, this is the real formula from my spreadsheet, and the one giving
> me errors...
> 
> =SUMPRODUCT(($A$23:$A$1604="o")*($B$23:$B$1604="c")*($E$23:$E$1604="Best
> View-Current (SFU)")*(F$23:F$1604))
> 
> The final array, F$23:F$1604, is the one in question, where some of the
> cells have text values.  This is what I have tried so far...
> 
> Added dashes, and replaced '*' with ','
> =SUMPRODUCT(--($A$23:$A$1604="o"),($B$23:$B$1604="c"),($E$23:$E$1604="Best
> View-Current (SFU)"),(F$23:F$1604))
> This got rid of the error, but now returns a 0, where the answer when I
> delete the text cells is around 250,000.
> 
> Tried entering it as an array formula by using ctrl+shift+enter, still with
> the dashes and ',' instead of '*'
> {=SUMPRODUCT(--($A$23:$A$1604="o"),($B$23:$B$1604="c"),($E$23:$E$1604="Best
> View-Current (SFU)"),IF(ISNUMBER(F$23:F$1604)=FALSE,0,F$23:F$1604))}
> And the answer is again 0.
> 
> Tried entering it as an array formula without the dashes and with '*''s
> instead of ',''s...
> {=SUMPRODUCT(($A$23:$A$1604="o")*($B$23:$B$1604="c")*($E$23:$E$1604="Best
> View-Current (SFU)")*IF(ISNUMBER(F$23:F$1604)=FALSE,0,F$23:F$1604))}
> 
> And the answer was correct, so, Rick, thanks for the tip.
> 
> Paul and Dave,  I'm not sure exactly what the dashes are doing, nor why it
> did not work in my case.  Do they have a technical name I could use to google
> more about it?
> 
> Thank you all, for taking time out of your day to consider my problem and
> reply so promptly.
> 
> Greg
> 
> "Greg Snidow" wrote:
> 
> > Greegings.  I have a SUMPRODUCT formula that is having errors when one of the
> > columns has text instead of a NULL or a number.  If I delete the text cells
> > in that column it works as desired.  I'll give a simple example.  Suppose I
> > have the following in A1:B6....
> >
> > a     1
> > a     2
> > a     abc
> > b     1
> > b     1
> > a     2
> >
> > And I need this...
> >
> > =SUMPRODUCT(($A$1:$A$6="a")*($B$1:$B$6))
> >
> > It errors out until I delete the "abc" in cell B3, then it works as desired.
> >  I tried to replace the "abc" with a 0 by trying this...
> >
> > =IF(ISNUMBER(B3)=FALSE,0,B3)
> >
> > And it works for that particular cell, but it does not work in the
> > SUMPRODUCT formula like this...
> >
> > =SUMPRODUCT(($A$1:$A$6="a")*(IF(ISNUMBER($B$1:$B$6)=FALSE,0,$B$1:$B$6))*($B$1:$B$6))
> >
> > Any ideas on how I can deal with the text cells in column "B"?  Deleting
> > them is not an option.  Thank you.
> >
> >
> >
> >
> >

-- 

Dave Peterson
0
Dave
1/6/2010 6:45:01 PM
Dave, that formula also works.  I think I did not fully understand the use of 
the dashes, so I only had them in front of the first array.  I like this 
method better, since it eliminates the use of an array formula, which could 
easily be messed up by users not understanding that you can not just type in 
the brackets.  Thanks for the links, they are very informative.

"Dave Peterson" wrote:

> Try:
> 
> =SUMPRODUCT(--($A$23:$A$1604="o"),
>             --($B$23:$B$1604="c"),
>             --($E$23:$E$1604="Best View-Current (SFU)"),
>               (F$23:F$1604))
> 
> Adjust the ranges to match--but you can't use whole columns (except in xl2007+). 
> 
> =sumproduct() likes to work with numbers.  The -- stuff changes trues and falses
> to 1's and 0's.
> 
> Bob Phillips explains =sumproduct() in much more detail here:
> http://www.xldynamic.com/source/xld.SUMPRODUCT.html
> 
> And J.E. McGimpsey has some notes at:
> http://mcgimpsey.com/excel/formulae/doubleneg.html
> 
> ====================
> A23:A1604="o"
> will result in an array of 1582 true/falses.  The -- stuff changes the true's to
> 1's and the false's to 0.
> 
> Put 
> TRUE
> in A1
> 
> put 
> -a1
> in B1
> 
> put 
> --a1
> in C1
> 
> And you'll see why you want two of them.
> 
> Greg Snidow wrote:
> > 
> > Please note, I am trying all of your suggestions, with Paul's and Dave's
> > being the same, so  I am replying to myself simply to consolidate the thread.
> >  First off, this is the real formula from my spreadsheet, and the one giving
> > me errors...
> > 
> > =SUMPRODUCT(($A$23:$A$1604="o")*($B$23:$B$1604="c")*($E$23:$E$1604="Best
> > View-Current (SFU)")*(F$23:F$1604))
> > 
> > The final array, F$23:F$1604, is the one in question, where some of the
> > cells have text values.  This is what I have tried so far...
> > 
> > Added dashes, and replaced '*' with ','
> > =SUMPRODUCT(--($A$23:$A$1604="o"),($B$23:$B$1604="c"),($E$23:$E$1604="Best
> > View-Current (SFU)"),(F$23:F$1604))
> > This got rid of the error, but now returns a 0, where the answer when I
> > delete the text cells is around 250,000.
> > 
> > Tried entering it as an array formula by using ctrl+shift+enter, still with
> > the dashes and ',' instead of '*'
> > {=SUMPRODUCT(--($A$23:$A$1604="o"),($B$23:$B$1604="c"),($E$23:$E$1604="Best
> > View-Current (SFU)"),IF(ISNUMBER(F$23:F$1604)=FALSE,0,F$23:F$1604))}
> > And the answer is again 0.
> > 
> > Tried entering it as an array formula without the dashes and with '*''s
> > instead of ',''s...
> > {=SUMPRODUCT(($A$23:$A$1604="o")*($B$23:$B$1604="c")*($E$23:$E$1604="Best
> > View-Current (SFU)")*IF(ISNUMBER(F$23:F$1604)=FALSE,0,F$23:F$1604))}
> > 
> > And the answer was correct, so, Rick, thanks for the tip.
> > 
> > Paul and Dave,  I'm not sure exactly what the dashes are doing, nor why it
> > did not work in my case.  Do they have a technical name I could use to google
> > more about it?
> > 
> > Thank you all, for taking time out of your day to consider my problem and
> > reply so promptly.
> > 
> > Greg
> > 
> > "Greg Snidow" wrote:
> > 
> > > Greegings.  I have a SUMPRODUCT formula that is having errors when one of the
> > > columns has text instead of a NULL or a number.  If I delete the text cells
> > > in that column it works as desired.  I'll give a simple example.  Suppose I
> > > have the following in A1:B6....
> > >
> > > a     1
> > > a     2
> > > a     abc
> > > b     1
> > > b     1
> > > a     2
> > >
> > > And I need this...
> > >
> > > =SUMPRODUCT(($A$1:$A$6="a")*($B$1:$B$6))
> > >
> > > It errors out until I delete the "abc" in cell B3, then it works as desired.
> > >  I tried to replace the "abc" with a 0 by trying this...
> > >
> > > =IF(ISNUMBER(B3)=FALSE,0,B3)
> > >
> > > And it works for that particular cell, but it does not work in the
> > > SUMPRODUCT formula like this...
> > >
> > > =SUMPRODUCT(($A$1:$A$6="a")*(IF(ISNUMBER($B$1:$B$6)=FALSE,0,$B$1:$B$6))*($B$1:$B$6))
> > >
> > > Any ideas on how I can deal with the text cells in column "B"?  Deleting
> > > them is not an option.  Thank you.
> > >
> > >
> > >
> > >
> > >
> 
> -- 
> 
> Dave Peterson
> .
> 
0
Utf
1/6/2010 8:48:03 PM
Bob and J.E. did very nice work explaining how this works--and when you should
use the * operand, too!

Greg Snidow wrote:
> 
> Dave, that formula also works.  I think I did not fully understand the use of
> the dashes, so I only had them in front of the first array.  I like this
> method better, since it eliminates the use of an array formula, which could
> easily be messed up by users not understanding that you can not just type in
> the brackets.  Thanks for the links, they are very informative.
> 
> "Dave Peterson" wrote:
> 
> > Try:
> >
> > =SUMPRODUCT(--($A$23:$A$1604="o"),
> >             --($B$23:$B$1604="c"),
> >             --($E$23:$E$1604="Best View-Current (SFU)"),
> >               (F$23:F$1604))
> >
> > Adjust the ranges to match--but you can't use whole columns (except in xl2007+).
> >
> > =sumproduct() likes to work with numbers.  The -- stuff changes trues and falses
> > to 1's and 0's.
> >
> > Bob Phillips explains =sumproduct() in much more detail here:
> > http://www.xldynamic.com/source/xld.SUMPRODUCT.html
> >
> > And J.E. McGimpsey has some notes at:
> > http://mcgimpsey.com/excel/formulae/doubleneg.html
> >
> > ====================
> > A23:A1604="o"
> > will result in an array of 1582 true/falses.  The -- stuff changes the true's to
> > 1's and the false's to 0.
> >
> > Put
> > TRUE
> > in A1
> >
> > put
> > -a1
> > in B1
> >
> > put
> > --a1
> > in C1
> >
> > And you'll see why you want two of them.
> >
> > Greg Snidow wrote:
> > >
> > > Please note, I am trying all of your suggestions, with Paul's and Dave's
> > > being the same, so  I am replying to myself simply to consolidate the thread.
> > >  First off, this is the real formula from my spreadsheet, and the one giving
> > > me errors...
> > >
> > > =SUMPRODUCT(($A$23:$A$1604="o")*($B$23:$B$1604="c")*($E$23:$E$1604="Best
> > > View-Current (SFU)")*(F$23:F$1604))
> > >
> > > The final array, F$23:F$1604, is the one in question, where some of the
> > > cells have text values.  This is what I have tried so far...
> > >
> > > Added dashes, and replaced '*' with ','
> > > =SUMPRODUCT(--($A$23:$A$1604="o"),($B$23:$B$1604="c"),($E$23:$E$1604="Best
> > > View-Current (SFU)"),(F$23:F$1604))
> > > This got rid of the error, but now returns a 0, where the answer when I
> > > delete the text cells is around 250,000.
> > >
> > > Tried entering it as an array formula by using ctrl+shift+enter, still with
> > > the dashes and ',' instead of '*'
> > > {=SUMPRODUCT(--($A$23:$A$1604="o"),($B$23:$B$1604="c"),($E$23:$E$1604="Best
> > > View-Current (SFU)"),IF(ISNUMBER(F$23:F$1604)=FALSE,0,F$23:F$1604))}
> > > And the answer is again 0.
> > >
> > > Tried entering it as an array formula without the dashes and with '*''s
> > > instead of ',''s...
> > > {=SUMPRODUCT(($A$23:$A$1604="o")*($B$23:$B$1604="c")*($E$23:$E$1604="Best
> > > View-Current (SFU)")*IF(ISNUMBER(F$23:F$1604)=FALSE,0,F$23:F$1604))}
> > >
> > > And the answer was correct, so, Rick, thanks for the tip.
> > >
> > > Paul and Dave,  I'm not sure exactly what the dashes are doing, nor why it
> > > did not work in my case.  Do they have a technical name I could use to google
> > > more about it?
> > >
> > > Thank you all, for taking time out of your day to consider my problem and
> > > reply so promptly.
> > >
> > > Greg
> > >
> > > "Greg Snidow" wrote:
> > >
> > > > Greegings.  I have a SUMPRODUCT formula that is having errors when one of the
> > > > columns has text instead of a NULL or a number.  If I delete the text cells
> > > > in that column it works as desired.  I'll give a simple example.  Suppose I
> > > > have the following in A1:B6....
> > > >
> > > > a     1
> > > > a     2
> > > > a     abc
> > > > b     1
> > > > b     1
> > > > a     2
> > > >
> > > > And I need this...
> > > >
> > > > =SUMPRODUCT(($A$1:$A$6="a")*($B$1:$B$6))
> > > >
> > > > It errors out until I delete the "abc" in cell B3, then it works as desired.
> > > >  I tried to replace the "abc" with a 0 by trying this...
> > > >
> > > > =IF(ISNUMBER(B3)=FALSE,0,B3)
> > > >
> > > > And it works for that particular cell, but it does not work in the
> > > > SUMPRODUCT formula like this...
> > > >
> > > > =SUMPRODUCT(($A$1:$A$6="a")*(IF(ISNUMBER($B$1:$B$6)=FALSE,0,$B$1:$B$6))*($B$1:$B$6))
> > > >
> > > > Any ideas on how I can deal with the text cells in column "B"?  Deleting
> > > > them is not an option.  Thank you.
> > > >
> > > >
> > > >
> > > >
> > > >
> >
> > --
> >
> > Dave Peterson
> > .
> >

-- 

Dave Peterson
0
Dave
1/6/2010 10:42:25 PM
Reply:

Similar Artilces:

TEXT = text
I have some data in an Excel table which uses case sensitive codes. Does anyone know of a way to perform case sensitive VLookups. Example. A1 contains "TEXT", A2 contains "One". B1 contains "text", B2 contains "Two" If I enter "text" in cell A4 and the following VLookup in B4: =VLOOKUP(A4;A1:B2;2;FALSE) I get the answer "One", but I would like to see "Two". I have found a work around by converting a number of characters to their ASCII codes, but this is very messy. I know that the FIND function is case sensitive whe...

What is the Limit of Text Boxes & Labels a User Form can have?
What is the Max File Size a User Form can be? I have Windows 7 with Office 2007. Does it have like a 64K limit? The file size as far as kb. My entire Program is 1,203 Kb. When I ran it I got a "compile Error out of memory", so I exported my User Form. Then I looked at the file size of just the User Form in a blank Workbook 34 KB = .frm 219 KB = frx My user Form is a Multi Page with 4 Pages on it. There are alot of text boxes and labels on the 4 sheets. Is there a limit to the number of text boxes & labels you can have in a user Form? I have 12 GB of ...

Selecting text in a document
Hi, I have a macro which finds a certain piece of text in the document and then moves down a line and then selects all the text between that and the end of the document and the selected text is later sent out in an email. This has been working for some time but I have recently had some problems because the text is not being selected as before (extendmode on?) and I am sending out blank emails. The code fragment that I use to select the text is as follows Selection.HomeKey wdStory Selection.Find.Execute "Issued at" Selection.MoveDo...

Resizing cells to fit text returned by VLOOKUP
I have some VLOOKUPs which sometimes return 50 or 60 characters (they're in merged cells). I want the text to wrap, and the cell to enlarge to fit the text - Just like it does whan you type it in, but somehow, because it is being returned from a formula it just displays the bottom line of the wrapped text, and doesn't resize the row. Anyone know how I cam make it fit? I'm happy to use a VBA solution if there's no built in way to make it happen automatically. Thanks M Would you mind to limit your request to ONE newsgroup? Joerg "Michelle" <mh_londonNOJUN...

CScrollView and text height
I call DrawText to draw text on the CScrollView.When text has multi-line,how do I get the screen height to draw them? Thanks. ___________________________________ http://www.msale.net/bbs a Chinese-language message board for developers,including palm,ppc,symbian,and etc. http://www.zirong.net/blog/ Miken's private life If you are trying to calculate the height of a multiline string user DrawText with the DT_CALCRECT flag. It will use the width of the Rect that you pass it, and sets the bottom of the rect to what the bottom would be if you draw it. AliR. "Miken" <mikenwon...

100% stacked column/clustered column
Hello I have a 100% stacked column chart (12 columns). The first two columns show data for: EUN 2002 EUN 2003 The next two shows data for: EUS 2002 EUS 2003 and so on. I want to have EUN 2002 and EUN2003 placed without any space (as in a clustered column chart). Similarly for EUS 2002 and EUS 2003 and on. Any help? Hans Knudsen Hi Hans - Through careful arrangement of the data in your worksheet, you can make a stacked column chart that looks like a clustered-stacked column chart. There is a tutorial showing this technique on Bernard Liengme's site: http://www.stfx.ca/peop...

Text Boxes on Charts not showing up
Has anyone experienced this? I've got a chart in a spreadsheet and I add text boxes to the graph section. They appear on the page yet when I click off the page, the text box disappears. If I go to print preview, the text boxes are there so why can't I see them on the screen? I've tried the bring forward command but that didn't work. This is also sporadic as some of my text boxes stay in place why others seem to disappear. Sue - If the chart is selected when you draw the text box, the text box becomes part of the chart. If not, the text box just floats along in the dr...

Function is not availalbe in expressions in query expression error message (0/1)
I recently received this error message when opening the source DB in Access 2007. I have attached two jpg pics. Does this error message give enough details for someone to point me in the right direction for a fix? The last time I developed and worked in this DB everything worked fine. I get this error when clicking on a control that runs a query macro against a backend DB consisting of about 15 tables. I should mention the error comes into play when trying to run the frontend on a client W/S. I don't see the error while on my W/S which is my developer W/S and has Acce...

avoid losing text when text submission timed out?
Often I have to log in to some web site to enter a few paragraphs of text (e.g. web email submission, user forum, product reviews, etc). Sometimes it takes me a while to compose the text, and by the time I click submit, I get a response saying the session has timed out, and the text that took me a long time to compose is gone. Is there a way to retrieve this text? Clicking the back button doesn't work. Perhaps it is in a cache somewhere? The portion of the web page containing your text may or may not be in TIF, but here's what I do: Before I hit the 'Submit'...

CListCtrl::HitTest error arg invalid
Hello, I have just hit a quite annoying problem with MFC and CListCtrl::HitTest; mainly - its arguments are changing themselves. I have called int nItem = c_Report.HitTest(pt_in, NULL); However the application crashes in the MFC wrapper, trying to allocate memory for the uFlags*, I step into it with the debugger and I find that the uFlags* now points to _crtDebugBreak or something along those lines. Most fustraiting, any ideas? Im all out. -- - Mark Randall http://zetech.swehli.com "Those people that think they know everything are a great annoyance to those of us who do" ...

Ranking Numbers with Text
I am trying to sort a list of serial numbers containing alpha an numeric text into ascending order so LOOKUP will work. ie: 5KJJAHAS63PL84681 input into col. E 5KJJAHAS43PL84685 5KJJAHASx3PL84683 5KJJAHAS83PL84686 5KJJAHAS63PL84689 5KJJAHAS43PL84684 5KJJAHAS23PL84682 5KJJAHAS03PL84688 5KJJAHASx3PL84610 5KJJAHAS83PL84690 5KJJAHAS83PL84691 Only the ninth and 13 thru 17 digits change. Worksheets are protected except for inputs. I need the sort to use the LOOKUP function. I tried =IF(E3>0,(RIGHT(E3,5)*1),999999) to RANK by the last 5 =RANK(D3,D$3:D$102,1)+COUNTIF(D$3:D3,D3)-1, but then LOOKUP ...

Null in text box
Can anyone see what might be wrong withthis procedure? Private Sub Job_Number_BeforeUpdate(Cancel As Integer) If IsNull(Me.Job_Number) = True Then MsgBox "No Job Number Entered" Cancel = True End If End Sub -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200707/1 "Haggr1 via AccessMonster.com" <u35393@uwe> wrote in news:74fa8171f7137@uwe: > Can anyone see what might be wrong withthis procedure? > > Private Sub Job_Number_BeforeUpdate(Cancel As Integer) > > If IsNull(Me.Job_...

Report errors after YE update
We've had approximately 8-10 clients who have installed the year-end update within the past week or two and who have all had issues with modified reports. In certain cases, recreating the reports dictionary has corrected the issues - there have been a couple cases where we were required to recreate the dictionary the following day as well. Some of the issues have included errors such as "Resources in the dictionary cannot be found" or SQL error messages. Other issues have been reports reverting back to the report that is not modified, regardless of the security setup or...

"Can't find macro" error
I have a simple macro that executes the following: Sub SAVE_Quit() ActiveWorkbook.Save Application.Quit End Sub I assigned it to a toolbar button called "Save List". Whenever I try to run the macro from the toolbar, I get the "can't find macro error". But I can successfully run the macro from the Tools > Macro > Macros list. The sheet is protected but I still get the error when I unprotect it. The macro is stored in Module 1. I tried moving it to This Workbook or Sheet 1 (in case it was stored in the wrong place) but got the same error. What am I ...

I TYPE IN A TEXT BOX AND IT COPIES THE TEXT TO OTHER TEXT BOXES
Does anyone know how to fix this? Shari wrote: > Does anyone know how to fix this? ================================ Are you editing text on the Master page? -- John Inzer MS Picture It! - Digital Image MVP Digital Image Highlights and FAQs http://support.microsoft.com/ph/695 Notice This is not tech support I am a volunteer Solutions that work for me may not work for you Proceed at your own risk Yes, I thinnk so. :-) I'm not on the background. It's an 8 pg brochure I'm creating and it didn't do it before I added page 8. ...

convert text case in same column or row?
How do I convert text case in the same colum or row. At the moment I use UPPER, but have to create a new column/row. You may find this to be handy Sub ChangeCase() 'Don Guillett Application.ScreenUpdating = False Dim r As Range nCase = UCase(InputBox("Enter U for UPPER" & Chr$(13) & " L for lower" & Chr$(13) & " Or " & Chr$(13) & " P for Proper", "Select Case Desired")) Select Case nCase Case "L" For Each r In Selection.Cells If r.HasFormula Then r.Formula = LCase(r.Formul...

ERROR check if a date set entered violates a perviously entered date set
I am devloping an excel program that has a list of date sets, not necessarily in sequencial order. What I want is an ERROR CHECK if a date set violates any date set previously entered. What I was looking for was that a date set could not be typed in as follows: 1/10/04 to 4/20/04 2/10/04 to 3/20/04 The second date set falls within the first set and should be invalid setting off a message or an alert of an invalid entry. I am interested in making it idiot proof so that one could not enter date sets within or covering dates sets already entered. This one really throws me, Please help. ...

Re: Using Text Styles
Front page will not have a Next Edition. AFAIK it is dead. > Ed Bennett wrote: > > Ron Hagley wrote: > >> I have a document with Headings on one line followed by a linespace > >> then on a new line a subheading followed by (on the same line ) a > >> description > >> > >> I wish to use TEXT STYLES as this pattern repeats many times, I have > >> no problem seting up the styles for the headings, but when I do the > >> same for the SUBHEADINGS the text style is applied to the WHOLE line > >> including the description...

Logical Test: Text Against Number 01-05-10
Can anyone provide insight into how Excel treats this type of test? For example, why does Excel return TRUE when we have ="a">2 but FALSE when ="a"<2 (or any other number for that matter). Thanks. That's the way it is treated. Any kind of text is larger than the largest number. Any worth? hit the YES below -- Max Singapore --- "rslaughter5" wrote: > Can anyone provide insight into how Excel treats this type of test? For > example, why does Excel return TRUE when we have ="a">2 but FALSE when ="a"<2 ...

How do I merge two columns without losing data?
If I want to split a column in two, I know I can use the Text to Column feature. How can I go from two columns to one without losing data in the merge? One way =CONCATENATE(A1,B1) Ian --- "Caseybay" <Caseybay@discussions.microsoft.com> wrote in message news:2D860F83-00D5-446D-AAA5-BE938DF3C1BF@microsoft.com... > If I want to split a column in two, I know I can use the Text to Column > feature. How can I go from two columns to one without losing data in the > merge? =a1&b1 or =a1&" "&b1 (use a helper column of formulas.) Caseybay wrote...

Text in Cell as Formula #2
Peo + Julie Many thanks for your answer with the last query. I Have a similar question, please advise: This method [INDIRECT()] does work with values form a different spreadsheet. I type the link (as text) from a different spreadsheet in a cell in the current spreadsheet and use this method to call a value in a cell. Would appreciate a detailed answer (if complicated) - I'm a novice user! Many thanks in advance. ...

Rotate text?
Office(publisher) 2K. Is there anyway to rotate a specific word in a sentence? L. Not if it's part of the sentence rather than being a separate text box. -- JoAnn Paules MVP Microsoft [Publisher] "L." <ofallon12320@yahoo1.com> wrote in message news:%23TBzesS9FHA.2616@TK2MSFTNGP15.phx.gbl... > Office(publisher) 2K. > > Is there anyway to rotate a specific word in a sentence? > > L. > > Thanks for the info. L. "JoAnn Paules [MSFT MVP]" <jl_paules@hotmail.com> wrote in message news:U46dnd7PfZ5CTBHenZ2dnUVZ_sidnZ2d@suscom....

Plain text warning/ VS2005
Whenever I add a CRecordset derived class, I get an error telling me the password for the DB is sent in "plain text" and is not secure etc. I comment that line out, but how much of a security risk is this? What can I do with my Access database to avoid this? VC 6.0 never gave this error... tia b If you are on any kind of network that anyone can look at, you are wide open for attack. Example, a University network; potentially, ever student can be running a packet sniffer and see your password. Anything that passes acros the Internet outside your local intranet is also vuln...

Outlook 2000 Error 0X9284011D
I am unable to open my Outlook address book. I get the message: "Unknown error 0X9284011D. An error occurred while attempting to to open Windows Address Book. Unable to find the WAB DLL." Does anyone know how I can resolve this issue? I used to be able to open Outlook, now it says that Outlook is not installed. I uninstalled and reinstalled Disk 1 and 2 of MS Office, but I still get the same message. Help! ...

automatically updating a column
I have two columns, A and B, where I manually add a number to col. A every day. Col. B is sum of all numbers from beginning in col. A. There is an easy formula for col. B, e.g., b2=a2+b1. But every day, after entering the number in col. A, I have to copy one down in col. B. How can I have that copying done automatically as soon as I make an entry in col. A? On Feb 17, 4:53 pm, "cmar" <cm...@ne.rr.com> wrote: > But every day, after entering the number in col. A, > I have to copy one down in col. B. How can I have > that copying done automatically as soon as...