Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default need help with formula

I have a range of cell I want to count ,,say the 2's but with this formula
,,,,=SUMPRODUCT(--(ISNUMBER(FIND("2",G18:G41)))) I count not only the 2's by
them selfs but also the 2's in 22 or 12 etc..giving me the wrong results...
Also I want to count the 2's only if this range of cells,,,,, N18:O41 has 4A
entered into it... can some one help.

slow hand
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default need help with formula

=COUNTIF(G18:G41,2)

=SUMPRODUCT(--(G18:G41=2),--((N18:N41="4A")+(O18:O41="4A")))

--
HTH

Bob Phillips

"slow hand" wrote in message
...
I have a range of cell I want to count ,,say the 2's but with this formula
,,,,=SUMPRODUCT(--(ISNUMBER(FIND("2",G18:G41)))) I count not only the 2's

by
them selfs but also the 2's in 22 or 12 etc..giving me the wrong

results...
Also I want to count the 2's only if this range of cells,,,,, N18:O41 has

4A
entered into it... can some one help.

slow hand



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default need help with formula

Thanks Bob works great

slow hand

"Bob Phillips" wrote:

=COUNTIF(G18:G41,2)

=SUMPRODUCT(--(G18:G41=2),--((N18:N41="4A")+(O18:O41="4A")))

--
HTH

Bob Phillips

"slow hand" wrote in message
...
I have a range of cell I want to count ,,say the 2's but with this formula
,,,,=SUMPRODUCT(--(ISNUMBER(FIND("2",G18:G41)))) I count not only the 2's

by
them selfs but also the 2's in 22 or 12 etc..giving me the wrong

results...
Also I want to count the 2's only if this range of cells,,,,, N18:O41 has

4A
entered into it... can some one help.

slow hand




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default need help with formula

My pleasure.

Bob

"slow hand" wrote in message
...
Thanks Bob works great

slow hand

"Bob Phillips" wrote:

=COUNTIF(G18:G41,2)

=SUMPRODUCT(--(G18:G41=2),--((N18:N41="4A")+(O18:O41="4A")))

--
HTH

Bob Phillips

"slow hand" wrote in message
...
I have a range of cell I want to count ,,say the 2's but with this

formula
,,,,=SUMPRODUCT(--(ISNUMBER(FIND("2",G18:G41)))) I count not only the

2's
by
them selfs but also the 2's in 22 or 12 etc..giving me the wrong

results...
Also I want to count the 2's only if this range of cells,,,,, N18:O41

has
4A
entered into it... can some one help.

slow hand






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
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


All times are GMT +1. The time now is 03:57 PM.

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"