Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default countif/sumif question

just wondering if there is a way to use these with the trim function.

=COUNTIF(P$3:P$33,"M")

so that it would work if the range contains a space or spaces along with the
letter M.
--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default countif/sumif question

try
=COUNTIF(P$3:P$33,"*M*")
you may? not get desired results

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
just wondering if there is a way to use these with the trim function.

=COUNTIF(P$3:P$33,"M")

so that it would work if the range contains a space or spaces along with
the letter M.
--


Gary




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default countif/sumif question

seems to work. only other alternative is to use a selection change event to fix
the entries.

thanks.

--


Gary


"Don Guillett" wrote in message
...
try
=COUNTIF(P$3:P$33,"*M*")
you may? not get desired results

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
just wondering if there is a way to use these with the trim function.

=COUNTIF(P$3:P$33,"M")

so that it would work if the range contains a space or spaces along with the
letter M.
--


Gary






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default countif/sumif question

maybe an array formula?


=SUM(IF(EXACT(TRIM(P$3:P$33), "M"), 1, 0))


--
Hope that helps.

Vergel Adriano


"Gary Keramidas" wrote:

seems to work. only other alternative is to use a selection change event to fix
the entries.

thanks.

--


Gary


"Don Guillett" wrote in message
...
try
=COUNTIF(P$3:P$33,"*M*")
you may? not get desired results

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
just wondering if there is a way to use these with the trim function.

=COUNTIF(P$3:P$33,"M")

so that it would work if the range contains a space or spaces along with the
letter M.
--


Gary







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default countif/sumif question

i'll give it a try when i get back in.

--


Gary


"Vergel Adriano" wrote in message
...
maybe an array formula?


=SUM(IF(EXACT(TRIM(P$3:P$33), "M"), 1, 0))


--
Hope that helps.

Vergel Adriano


"Gary Keramidas" wrote:

seems to work. only other alternative is to use a selection change event to
fix
the entries.

thanks.

--


Gary


"Don Guillett" wrote in message
...
try
=COUNTIF(P$3:P$33,"*M*")
you may? not get desired results

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
just wondering if there is a way to use these with the trim function.

=COUNTIF(P$3:P$33,"M")

so that it would work if the range contains a space or spaces along with
the
letter M.
--


Gary











  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default countif/sumif question

this seems to work for me, thanks

=SUM(IF(EXACT(TRIM(P$3:P$33), "M"),G$3:G$33,0))

--


Gary


"Vergel Adriano" wrote in message
...
maybe an array formula?


=SUM(IF(EXACT(TRIM(P$3:P$33), "M"), 1, 0))


--
Hope that helps.

Vergel Adriano


"Gary Keramidas" wrote:

seems to work. only other alternative is to use a selection change event to
fix
the entries.

thanks.

--


Gary


"Don Guillett" wrote in message
...
try
=COUNTIF(P$3:P$33,"*M*")
you may? not get desired results

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
just wondering if there is a way to use these with the trim function.

=COUNTIF(P$3:P$33,"M")

so that it would work if the range contains a space or spaces along with
the
letter M.
--


Gary









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
COUNTIF or SUMIF question Bindy Excel Worksheet Functions 1 December 2nd 09 07:45 PM
SumIF or CountIF John Excel Discussion (Misc queries) 4 August 5th 09 04:03 PM
function question (sumif countif conditional) Norbert Excel Worksheet Functions 0 February 25th 08 09:37 PM
sumif / countif question Gary Keramidas[_2_] Excel Programming 4 June 29th 05 02:58 AM
Countif/Sumif function question psyd Excel Worksheet Functions 0 November 5th 04 06:09 AM


All times are GMT +1. The time now is 07:08 AM.

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"