Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default #Value! error on code that should be correct?

I am currently converting lotus 1-2-3 workbooks into excel 2007 workbooks for
my company and I have ran into a road block, It seems that excel will not
automaticly reconize a "blank" or zero and is producing the #Value error The
following will be the code and the cells it links to I would like it to
produce a zero if nothing is in the cell. Please help:
1.)=SUM(C40:F40)<<<<<This is T40
2.)=IF(T400,T40,0)<<<<<This is G40, which is 0
3.)=IF(G400,IF(N400,AI40,M40),0)<<<<Q40
4.)=IF(G400,G40,0)<<<<N40, Which is 0
5.)=IF(N400,1.3*((N40*P40)^0.625/(N40+P40)^0.25),M40)<<<AI40, Which is a
#Value! error
6.)=IF(L400,(L40/(3.5^LOG10(AB40*13.2)*2.04)/1.77)^(1/LOG10(AA40*8)),0)<<<<
That is M40 which is also a Value err.
7.)=IF(G400,(T$14/G40)*H$12,0)<<<That is AB40, Which is 0
8.) =IF(L400,(1.08*(L40^0.36))/(AB40^0.0009)-(AB40*10.1-2),0) <<< that is
AJ, Which is a Value error

I have most of this calculation sheet completed there is 8 rows of this
problem on 30 sheets I have not been able to crack. I don't understand why
excel doesn't look at a 0 or blank space and calculate as such if your trying
to multiply a "blank" which = 0 (or at least it should be) why it wouldn't
just make that cell a zero or blank. Also sorry about the formating but I
thought with the math it might help to break it down. Its Upper level Trig.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default #Value! error on code that should be correct?

Check the cells which you think are blank - they may contain one (or
more) spaces and therefore look blank, but when you try to use them in
arithmetic then Excel will return the #VALUE error. You can check if
A1 is blank (for example) by =LEN(A1) - this should return zero.

Hope this helps.

Pete

On Jan 2, 9:44*pm, RHein wrote:
* * * * I am currently converting lotus 1-2-3 workbooks into excel 2007 workbooks for
my company and I have ran into a road block, It seems that excel will not
automaticly reconize a "blank" or zero and is producing the #Value error The
following will be the code and the cells it links to I would like it to
produce a zero if nothing is in the cell. Please help:
1.)=SUM(C40:F40)<<<<<This is T40
2.)=IF(T400,T40,0)<<<<<This is G40, which is 0
3.)=IF(G400,IF(N400,AI40,M40),0)<<<<Q40
4.)=IF(G400,G40,0)<<<<N40, Which is 0
5.)=IF(N400,1.3*((N40*P40)^0.625/(N40+P40)^0.25),M40)<<<AI40, Which is a
#Value! error
6.)=IF(L400,(L40/(3.5^LOG10(AB40*13.2)*2.04)/1.77)^(1/LOG10(AA40*8)),0)<<<*<
That is M40 which is also a Value err.
7.)=IF(G400,(T$14/G40)*H$12,0)<<<That is AB40, Which is 0
8.) =IF(L400,(1.08*(L40^0.36))/(AB40^0.0009)-(AB40*10.1-2),0) <<< that is
AJ, Which is a Value error

I have most of this calculation sheet completed there is 8 rows of this
problem on 30 sheets I have not been able to crack. I don't understand why
excel doesn't look at a 0 or blank space and calculate as such if your trying
to multiply a "blank" which = 0 (or at least it should be) why it wouldn't
just make that cell a zero or blank. Also sorry about the formating but I
thought with the math it might help to break it down. Its Upper level Trig..


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default #Value! error on code that should be correct?

Hi R,

Without seeing the entire spreadsheet it would be hard for us to know what's
wrong, but Excel does not treat a cell that contains a spacebar as a blank
cell, so if you have any formulas of the type =IF(N400,N40," ") formulas
that reference this cell when the value in N40 is not 0 will return an
error. Also, if anyone has cleared cells using Spacebar the cell will appear
empty (blank) but it won't be and it may generate this type of error, for
example, =1/LOG10(B1) will return a VALUE error if B1 contains a spacebar.
Another thing to keep in mind a spacebar is considered to be greater than 0!
Additionally, if you enter =IF(E1=0,"",1) in cell A1 and then test to see if
A1 is 1, it will be if the formula in A1 returns ""

Maybe this will help you find the problem.

--
Cheers,
Shane Devenshire


"RHein" wrote:

I am currently converting lotus 1-2-3 workbooks into excel 2007 workbooks for
my company and I have ran into a road block, It seems that excel will not
automaticly reconize a "blank" or zero and is producing the #Value error The
following will be the code and the cells it links to I would like it to
produce a zero if nothing is in the cell. Please help:
1.)=SUM(C40:F40)<<<<<This is T40
2.)=IF(T400,T40,0)<<<<<This is G40, which is 0
3.)=IF(G400,IF(N400,AI40,M40),0)<<<<Q40
4.)=IF(G400,G40,0)<<<<N40, Which is 0
5.)=IF(N400,1.3*((N40*P40)^0.625/(N40+P40)^0.25),M40)<<<AI40, Which is a
#Value! error
6.)=IF(L400,(L40/(3.5^LOG10(AB40*13.2)*2.04)/1.77)^(1/LOG10(AA40*8)),0)<<<<
That is M40 which is also a Value err.
7.)=IF(G400,(T$14/G40)*H$12,0)<<<That is AB40, Which is 0
8.) =IF(L400,(1.08*(L40^0.36))/(AB40^0.0009)-(AB40*10.1-2),0) <<< that is
AJ, Which is a Value error

I have most of this calculation sheet completed there is 8 rows of this
problem on 30 sheets I have not been able to crack. I don't understand why
excel doesn't look at a 0 or blank space and calculate as such if your trying
to multiply a "blank" which = 0 (or at least it should be) why it wouldn't
just make that cell a zero or blank. Also sorry about the formating but I
thought with the math it might help to break it down. Its Upper level Trig.

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
how to correct a #value error tony Excel Discussion (Misc queries) 10 February 15th 07 07:23 PM
How do I correct error using the =IF(AND(formula in excel? Redwing ML Excel Worksheet Functions 0 March 1st 06 03:20 PM
How do I correct the #DIV/0! error? sony654 Excel Worksheet Functions 5 April 17th 05 09:52 AM
How do I correct a #value! error How do I eliminate a #value! error? Excel Discussion (Misc queries) 6 December 16th 04 02:33 PM
Please help correct a simple error lwhite New Users to Excel 1 December 9th 04 09:39 PM


All times are GMT +1. The time now is 11:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"