PC Review


Reply
Thread Tools Rate Thread

Counting Results of Formulas

 
 
jgupte
Guest
Posts: n/a
 
      30th Apr 2010
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 With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      30th Apr 2010
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" <(E-Mail Removed)> wrote in message
news:1D78D216-B32B-491E-950D-(E-Mail Removed)...
>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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
E2007 formulas display as formulas, not results Pierre Microsoft Excel Worksheet Functions 3 14th Jan 2010 04:59 PM
Counting # of Formulas in a column with formulas and entered data Brand Microsoft Excel Worksheet Functions 1 10th Oct 2009 01:01 PM
counting only results in a column of formulas LaborGuyRJ Microsoft Excel Programming 5 28th Apr 2008 04:47 AM
Counting cells containing formulas with blank results Joe M. Microsoft Excel Misc 3 31st Jan 2008 08:35 PM
Re: Need to search results of formulas, not formulas. Microsoft Excel Misc 0 29th Jul 2004 04:43 PM


Features
 

Advertising
 

Newsgroups
 


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