A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

text as a number



 
 
Thread Tools Display Modes
  #1  
Old September 17th, 2008, 07:32 PM posted to microsoft.public.excel.worksheet.functions
Wiktor
external usenet poster
 
Posts: 2
Default text as a number

I would like to count number in column between B4 and B15 for example. But i
want count only cells B witch they has adjoining cells C with wroten text
"withdraw". Can i treat text in cells as a number? I with it would be
helpfull to find solution of my problem.

  #2  
Old September 17th, 2008, 08:10 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default text as a number

=SUMPRODUCT(ISNUMBER(B4:B15)*(C4:C15="withdraw"))
--
David Biddulph

"Wiktor" wrote in message
...
I would like to count number in column between B4 and B15 for example. But
i
want count only cells B witch they has adjoining cells C with wroten text
"withdraw". Can i treat text in cells as a number? I with it would be
helpfull to find solution of my problem.



  #3  
Old September 17th, 2008, 08:17 PM posted to microsoft.public.excel.worksheet.functions
Bob Umlas[_2_]
external usenet poster
 
Posts: 56
Default text as a number

=SUMPRODUCT(--(C4:C15="withdraw"),B4:B15)

"Wiktor" wrote in message
...
I would like to count number in column between B4 and B15 for example. But
i
want count only cells B witch they has adjoining cells C with wroten text
"withdraw". Can i treat text in cells as a number? I with it would be
helpfull to find solution of my problem.



  #4  
Old September 17th, 2008, 08:29 PM posted to microsoft.public.excel.worksheet.functions
Spiky
external usenet poster
 
Posts: 619
Default text as a number

On Sep 17, 2:17 pm, "Bob Umlas" wrote:
=SUMPRODUCT(--(C4:C15="withdraw"),B4:B15)


Actually, this one will add them up. If the OP wants to count, try
David's formula instead.
  #5  
Old September 18th, 2008, 10:17 AM posted to microsoft.public.excel.worksheet.functions
Pritesh
external usenet poster
 
Posts: 11
Default text as a number

=countif(range,criteris) that is =countif(C5:C50,"withdraw")

"Spiky" wrote:

On Sep 17, 2:17 pm, "Bob Umlas" wrote:
=SUMPRODUCT(--(C4:C15="withdraw"),B4:B15)


Actually, this one will add them up. If the OP wants to count, try
David's formula instead.

  #6  
Old September 18th, 2008, 04:04 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default text as a number

That's if you're happy to count rows which satisfy the column C criterion,
regardless of whether there is a number in column B.
The OP did say:
"I would like to count number in column between B4 and B15 for example.
...."
--
David Biddulph

"Pritesh" wrote in message
...
=countif(range,criteris) that is =countif(C5:C50,"withdraw")

"Spiky" wrote:

On Sep 17, 2:17 pm, "Bob Umlas" wrote:
=SUMPRODUCT(--(C4:C15="withdraw"),B4:B15)


Actually, this one will add them up. If the OP wants to count, try
David's formula instead.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:23 AM.


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