Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Countif to changing range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
davegb - 27 Sep 2007 19:13 GMT
I have a spreadsheet in which I log letters stating the results of
inquiries from various agencies. The inquiry status is either Found
("F") or Not Found ("N") in  the G column on the spreadsheet. Every
week, I log more letters, each new one added to the top of the list
under the column headers. A macro is used to insert a properly
formatted new line at the top of the list for each new entry, which is
in Row 4. The entry is numbered in column A, which gets the number by
simply adding 1 to the number in the row below, row 5.

Now I want to know what percentage of the letters are reporting found
and I want it automatically updated as I add new entries. I don't know
how to enter the formula to do the COUNTIF function on a changing
range. Each time I add a new entry, I want the COUNTIF range to
include the new row. The current number of rows is available right
there in cell A4, so what is the formula to do the COUNTIF from cell
G4 to the cell A4's value below? Is this clear? In other words, I want
to do a COUNTIF from cell G4 to the cell the number of rows below
specified by the value in cell A4.

Thanks in advance!
JW - 27 Sep 2007 19:49 GMT
Give this a go.
=COUNTIF(INDIRECT("G4:G" & A4),"N")
> I have a spreadsheet in which I log letters stating the results of
> inquiries from various agencies. The inquiry status is either Found
[quoted text clipped - 16 lines]
>
> Thanks in advance!
davegb - 27 Sep 2007 21:38 GMT
> Give this a go.
> =COUNTIF(INDIRECT("G4:G" & A4),"N")

Thanks! Worked great, and gave me some understanding of how to use the
INDIRECT function!

> > I have a spreadsheet in which I log letters stating the results of
> > inquiries from various agencies. The inquiry status is either Found
[quoted text clipped - 18 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.