Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default if meets criteria add 1

i need a formula that will look at a text/number in a column and go down the
column and add 1 to get a total number of items meeting the criteria.

example
column D
1, 2P
1P, 2, 3
1, 2
2
1P

how do i get it to search for a 1 in the string of text in column D and give
me the answer of 4 for the number of times it shows up in that column?
Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default if meets criteria add 1

Hi,

=SUMPRODUCT((LEFT(D1:D10,1)="1")*(1))

Mike

"r2rcode" wrote:

i need a formula that will look at a text/number in a column and go down the
column and add 1 to get a total number of items meeting the criteria.

example
column D
1, 2P
1P, 2, 3
1, 2
2
1P

how do i get it to search for a 1 in the string of text in column D and give
me the answer of 4 for the number of times it shows up in that column?
Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default if meets criteria add 1

Try this formula:
=SUMPRODUCT(--ISNUMBER(SEARCH("1",D1:D1000)))


"r2rcode" wrote:

i need a formula that will look at a text/number in a column and go down the
column and add 1 to get a total number of items meeting the criteria.

example
column D
1, 2P
1P, 2, 3
1, 2
2
1P

how do i get it to search for a 1 in the string of text in column D and give
me the answer of 4 for the number of times it shows up in that column?
Thanks.


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
Add up a value that meets 2 criteria Lee Excel Discussion (Misc queries) 6 November 18th 08 09:38 PM
Getting a Value IF a cell meets a criteria ThunderStorm Studio[_2_] Excel Discussion (Misc queries) 1 February 18th 08 07:29 PM
Do Nothing If Meets Criteria kmwhitt Excel Discussion (Misc queries) 2 September 20th 06 05:49 PM
SUMIF meets a criteria TimR Excel Worksheet Functions 2 October 24th 05 08:42 PM
Max value that meets a criteria David Burr Excel Worksheet Functions 6 February 16th 05 01:31 PM


All times are GMT +1. The time now is 10:21 AM.

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

About Us

"It's about Microsoft Excel"