Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Counting Results of Formulas

I have a column in a spreadsheet that contains the result of a a lookup
function (refering to values in another spreadsheet) and displays a blank
field if the lookup does not find a match in the second spreadsheet.

I need to count how many matches are found (or not found). But when I use
the count function, it seems to be counting the formula and not the result of
the formula.

Does this make sense?

Example:

Formula of cells B10:B1500 = IFERROR((VLOOKUP(C45,'[Completed Property
List.xls]Sheet1'!$A$2:$B$10000,2,FALSE)),"")

- displays the contents of matching cell in column B of Completed Property
List if a match is found in column A, otherwise displays a empty cell.

Then I use the count function to count how many matches were found (or if
cells in the range B10:B1500 have anything in them besides the formula)

=COUNTIF(B10:B5000,"*")

Examples of contents of cells B10:B1500

Newcastle (result of formula)
Newcastle (result of formula)
(blank displayed, contains formula)
(blank displayed, contains formula)
Albury (result of formula)
Canberra (Manually entered text)
Albury (result of formula)

Thr result I would like to achieve is a count of 5 (or 2)


Newcastle



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting Results of Formulas

Try these...

This will count cells that contain *text only* and will *exclude* any cells
that contain formula blanks "".

=COUNTIF(B10:B5000,"?*")

To count the blank *and* empty cells:

=COUNTBLANK(B10:B500)

--
Biff
Microsoft Excel MVP


"jgupte" wrote in message
...
I have a column in a spreadsheet that contains the result of a a lookup
function (refering to values in another spreadsheet) and displays a blank
field if the lookup does not find a match in the second spreadsheet.

I need to count how many matches are found (or not found). But when I use
the count function, it seems to be counting the formula and not the result
of
the formula.

Does this make sense?

Example:

Formula of cells B10:B1500 = IFERROR((VLOOKUP(C45,'[Completed Property
List.xls]Sheet1'!$A$2:$B$10000,2,FALSE)),"")

- displays the contents of matching cell in column B of Completed Property
List if a match is found in column A, otherwise displays a empty cell.

Then I use the count function to count how many matches were found (or if
cells in the range B10:B1500 have anything in them besides the formula)

=COUNTIF(B10:B5000,"*")

Examples of contents of cells B10:B1500

Newcastle (result of formula)
Newcastle (result of formula)
(blank displayed, contains formula)
(blank displayed, contains formula)
Albury (result of formula)
Canberra (Manually entered text)
Albury (result of formula)

Thr result I would like to achieve is a count of 5 (or 2)


Newcastle





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
E2007 formulas display as formulas, not results Pierre Excel Worksheet Functions 3 January 14th 10 04:59 PM
Counting results from a lookup &e7 Excel Worksheet Functions 1 July 29th 09 12:46 PM
Counting cells containing formulas with blank results Joe M. Excel Discussion (Misc queries) 3 January 31st 08 08:35 PM
Counting Poll Results nabanco Excel Worksheet Functions 3 October 29th 07 02:43 PM
counting results of a list ferde Excel Worksheet Functions 2 October 8th 05 11:13 AM


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