CountIf formula results in the formula itself being displayed.

G

Guest

I work in large Excel data files where I frequently do a "countif" to compare
account numbers. Sometimes, the "countif" function will result in displaying
the actual formula in the cell, rather than the result. I have tried to make
sure the cells are formatted correctly, etc., but nothing works. Any ideas??
 
G

Guest

Hi

One possibility is that your sheet is simply displaying formulas. When this
occurs, try hitting Ctrl ` The ` is on the key next to the number 1 key.

Hope this helps.
Andy.
 
S

SteveG

Is it only the COUNTIF formula that shows up as text or does any formula
show up as text? If any formula shows up as text than the cell you
entered the formula in was probably formatted as text prior to entering
it. Delete the COUNTIF formula and check that cell's format. If it is
Text then change it to General and re-enter your formula. If it is not
text then check under Tools/Options/View Tab to see if in the Window
View area the check box next to formulas is selected. If it is, all
formulas in your sheet will be visible and not their results.

HTH

Cheers,

Steve
 
G

Guest

Thanks! It is only the COUNTIF function that does this. All my other
functions and formulas are displaying normally. Also, MOST of the time, this
doesn't happen, but every once in awhile, it just does. I have formatted to
general, BUT usuallly the account numbers in these columns are preceeded by
zeros and when I format to General and recalc, it drops the first zero...

I have also "cleared" the formats, but that doesn't seem to do it either.
Do you think it could be something silly like my worksheet is just so large
(I frequently have 40,000 plus rows and at least 100 columns.)

Thanks again. Any further ideas are appreciated.
Mary
 
G

Guest

Thanks Andy.
I did try that, but it didn't make a difference. Any other ideas? Thanks
for your help.
Mary
 
G

Guest

Hi

The only other option I can think of is that the cell is formatted as Text
before you enter the formula. You would need to change the format to General
and then re-enter the formula.

Andy.
 
S

SteveG

You shouldn't need to change all of the formats, just the one where you
are entering your COUNTIF function. I just did a COUNTIF on a
spreadsheet with 50,000 plus rows and it worked fine.

Steve
 
G

Guest

I just "cleared" all formats, then tried it, and it still didn't work. Then
I copied and pasted the data only into a new sheet, and it worked!!

Not sure what this is all about, and it must have something to do with
formatting of cells, but in any case, thanks for all your help!

I'm set - for today anyway. :)

Mary
 
P

PCLIVE

Just a Thought.

Try clicking on the cell that is displaying the formula, then press F2.
Next press enter.

Regards,
Paul
 
G

Gord Dibben

New

Either you are in Formula View or the formula cells are formatted as text.

Changing the Format alone won't do the trick.

For the first, hit CTRL + `(back quote above TAB key) to toggle View Formulas
on/off.

For the second, Format the cells to General then F2 and ENTER to see results.

If you have already done a great whack of these formulas, select all and
Edit>Replace

what: =
with: =

Replace All and OK.


Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top