#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Excel Experimenter
 
Posts: n/a
Default #name error

c10 = 40; d10 can be any number above or below 40. The formula I am using is
supposed to either read the number above or below 40 and read either # over
or # under, depending on which it is. For example, if c10=40 and d10=39.25
then e10 should read .75 under. If c10 and d10 are both forty then it would
read "at projection". Here is the formula:
=IF(OR(D11,C11),IF(D11-C110,STRING(D11-C11,2)&"over",IF(D11-C11<0,STRING(C11-D11,2)&"under","at projection"))," ")

However, if I put any number other than 40 in d10 I just get a #name error
displayed in the corresponding cell (e10)

Anybody have any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default #name error


STRING isn't an excel function I know, that's probably causing your
error.

Try this formula

=IF(D10<"",IF(D10=C10,"at
projection",TEXT(ABS(D10-C10),".00")&IF(D10C10," over"," under")),"")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=512002

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB
 
Posts: n/a
Default #name error

I don't believe excel has a STRING function, which causes the NAME error.
There is a CONCATENATE function or you can just use the apersand &

=IF(OR(D11<"",C11<""),IF(D11=C11,"at
projection",ABS(D11-C11)&(IF(D11C11," over"," under"))),"")

"Excel Experimenter" wrote:

c10 = 40; d10 can be any number above or below 40. The formula I am using is
supposed to either read the number above or below 40 and read either # over
or # under, depending on which it is. For example, if c10=40 and d10=39.25
then e10 should read .75 under. If c10 and d10 are both forty then it would
read "at projection". Here is the formula:
=IF(OR(D11,C11),IF(D11-C110,STRING(D11-C11,2)&"over",IF(D11-C11<0,STRING(C11-D11,2)&"under","at projection"))," ")

However, if I put any number other than 40 in d10 I just get a #name error
displayed in the corresponding cell (e10)

Anybody have any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 396
Default #name error

Hi

Just to add and hopefully clear the haze: VBA has a String function. Its
purpose is to repeat some string a chosen number of times.

Wigi

"JMB" wrote:

I don't believe excel has a STRING function, which causes the NAME error.

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
Ignore error msgs in formula references gharden Excel Discussion (Misc queries) 4 June 17th 05 12:14 AM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 7 March 7th 05 06:29 PM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 0 February 28th 05 06:26 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
ERROR Pinto1uk Excel Discussion (Misc queries) 1 February 8th 05 03:15 AM


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