Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Count numbers and non numbers(conditional values)

I can't seem to make a formula work that will count numbers greater than 3.7
as well as cells that contain the value <5 as below.

2 4 3.8 7 <5 1 2.3 = 4
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Count numbers and non numbers(conditional values)

=COUNTIF(A1:G1,""&3.7)+COUNTA(A1:G1)-COUNT(A1:G1)

--
Gary''s Student - gsnu200785
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Count numbers and non numbers(conditional values)

one simple way

=COUNTIF(D5:D11,3.7)+COUNTIF(D5:D11,"<5")

d5:d11 is a sample, use your data range

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Ecoman" escreveu:

I can't seem to make a formula work that will count numbers greater than 3.7
as well as cells that contain the value <5 as below.

2 4 3.8 7 <5 1 2.3 = 4

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 127
Default Count numbers and non numbers(conditional values)

try this

=SUMPRODUCT(--(A1:G1<3.7)--(A1:G1="<5"))


"Ecoman" wrote in message
...
I can't seem to make a formula work that will count numbers greater than
3.7
as well as cells that contain the value <5 as below.

2 4 3.8 7 <5 1 2.3 = 4



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Count numbers and non numbers(conditional values)

It's close, but not quite there.

Here's the real data if it helps.

1.3 32 <0.5 6.4 15.7 12.8 58 50 <5 21 45 <5 34 13 <5 <5 <5 <5 <5 <5 <5 <5 <5

That should be 21


"Marcelo" wrote:

one simple way

=COUNTIF(D5:D11,3.7)+COUNTIF(D5:D11,"<5")

d5:d11 is a sample, use your data range

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Ecoman" escreveu:

I can't seem to make a formula work that will count numbers greater than 3.7
as well as cells that contain the value <5 as below.

2 4 3.8 7 <5 1 2.3 = 4



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Count numbers and non numbers(conditional values)

It works for some of the data, however I have values of <0.5 that get
included as part of this formula.

Thank you for the quick response.


"Gary''s Student" wrote:

=COUNTIF(A1:G1,""&3.7)+COUNTA(A1:G1)-COUNT(A1:G1)

--
Gary''s Student - gsnu200785

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
How can I count numbers without including the repeated values? Nelson Excel Discussion (Misc queries) 2 February 8th 07 06:00 PM
can numbers be assigned to values, replacing values for numbers Cossloffe Excel Discussion (Misc queries) 2 June 3rd 06 10:22 AM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Count comma separated numbers, numbers in a range with dash, not t Mahendra Excel Discussion (Misc queries) 0 August 8th 05 05:56 PM
formula to count numbers of certain values Ripple919 Excel Worksheet Functions 3 January 12th 05 04:13 PM


All times are GMT +1. The time now is 05:53 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"