Cell CODE equals #VALUE!

G

Guest

I have a data file that contains numbers and blank cells. Using the formula =Code(cell address) I get returns of 45, 48, 50, 53, etc for cells populated with numbers. And, I get #VALUE! for blank cells. These blank cells cause problems when attempting totals. Could someone tell me how can I fix this problem
Thanks
JC
 
F

Frank Kabel

Hi
try using a formula like
=IF(cell_adress<>"",CODE(cell_address),"")

--
Regards
Frank Kabel
Frankfurt, Germany

JC said:
I have a data file that contains numbers and blank cells. Using the
formula =Code(cell address) I get returns of 45, 48, 50, 53, etc for
cells populated with numbers. And, I get #VALUE! for blank cells.
These blank cells cause problems when attempting totals. Could someone
tell me how can I fix this problem?
 
J

JulieD

Hi JC

this should help

=IF(ISERROR(CODE(A1)),0,CODE(A1))

Cheers
JulieD

JC said:
I have a data file that contains numbers and blank cells. Using the
formula =Code(cell address) I get returns of 45, 48, 50, 53, etc for cells
populated with numbers. And, I get #VALUE! for blank cells. These blank
cells cause problems when attempting totals. Could someone tell me how can I
fix this problem?
 

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