#1   Report Post  
dave
 
Posts: n/a
Default Countif Problem

I'm having a problem with a calculation, it works fine if i know what the
last cell reference is, but unforunatley this figure will vary. How can i
find out what the last cell reference is going to be ? and how do i use that
in the calculation. Do i need to use a dummy reference ? The calculation i'm
using is :-

(countid(h4:h38,"<15"))/(countif(h4:h39,"0"))*100.

'H39' is the cell reference that will change depending on the amount of data
on the spreadsheet
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

How about just using the whole column

=COUNTIF(H:H,"<15")/(COUNTIF(H:H,"0"))*100

--

HTH

RP
(remove nothere from the email address if mailing direct)


"dave" wrote in message
...
I'm having a problem with a calculation, it works fine if i know what the
last cell reference is, but unforunatley this figure will vary. How can i
find out what the last cell reference is going to be ? and how do i use

that
in the calculation. Do i need to use a dummy reference ? The calculation

i'm
using is :-

(countid(h4:h38,"<15"))/(countif(h4:h39,"0"))*100.

'H39' is the cell reference that will change depending on the amount of

data
on the spreadsheet



  #3   Report Post  
Bob Umlas
 
Posts: n/a
Default

You can always include blank cells without affecting the result, so go way
beyond where you need, like the entire column.
=COUNTIF(H4:H65536,"<15")/COUNTIF(H4:H65536,"0")*100

"dave" wrote in message
...
I'm having a problem with a calculation, it works fine if i know what the
last cell reference is, but unforunatley this figure will vary. How can i
find out what the last cell reference is going to be ? and how do i use
that
in the calculation. Do i need to use a dummy reference ? The calculation
i'm
using is :-

(countid(h4:h38,"<15"))/(countif(h4:h39,"0"))*100.

'H39' is the cell reference that will change depending on the amount of
data
on the spreadsheet



  #4   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

If H39 stands for the last cell containing data, you can simply use
(countid(h4:h38,"<15"))/(countif(h4:h2000,"0"))*100
or some other suitably large row number that will not be exceeded.

Otherwise, you need to say how the last row you want in the formula is
to be recognized.

Jerry

dave wrote:

I'm having a problem with a calculation, it works fine if i know what the
last cell reference is, but unforunatley this figure will vary. How can i
find out what the last cell reference is going to be ? and how do i use that
in the calculation. Do i need to use a dummy reference ? The calculation i'm
using is :-

(countid(h4:h38,"<15"))/(countif(h4:h39,"0"))*100.

'H39' is the cell reference that will change depending on the amount of data
on the spreadsheet


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 and automatic type conversion problem joes Excel Discussion (Misc queries) 2 July 25th 05 03:26 PM
COUNTIF and automatic type conversion problem joes Excel Worksheet Functions 2 July 25th 05 03:26 PM
countif problem WYN Excel Discussion (Misc queries) 4 April 25th 05 04:28 PM
problem with countif Cowtoon Excel Worksheet Functions 5 November 10th 04 11:04 PM
Countif Problem Alicia Excel Worksheet Functions 3 November 4th 04 10:01 AM


All times are GMT +1. The time now is 12:52 PM.

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"