PC Review


Reply
Thread Tools Rate Thread

Cell displays formula instead of the formula's result

 
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      23rd Jun 2007
When copying an Excel-constructed formula from another application (Business
Objects) and pasting it into Excel, the cell displays the formula instead of
the formula's result.

The Excel-constructed formula is:
=HYPERLINK("http://www.microsoft.com","Microsoft")

The format of the cell is set to "General", and there are no strange or
extraneous characters either in front of, or at the end of, the formula.

Yet, after I have pasted the formula into Excel, if I then press the F2 key
and then the Enter key, the result of the formula is correctly displayed
(including the hyperlink)!

Does anyone know what is causing this behavior, and how to solve this
problem so that the pasted formula displays correctly? Any help would be
greatly appreciated.

Thanks,
Bob

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      23rd Jun 2007
My first guess is that the numberformat is changed to General after the formula
has been entered. And changing the numberformat isn't enough to make excel
change the value in that cell.

Any chance???



Bob wrote:
>
> When copying an Excel-constructed formula from another application (Business
> Objects) and pasting it into Excel, the cell displays the formula instead of
> the formula's result.
>
> The Excel-constructed formula is:
> =HYPERLINK("http://www.microsoft.com","Microsoft")
>
> The format of the cell is set to "General", and there are no strange or
> extraneous characters either in front of, or at the end of, the formula.
>
> Yet, after I have pasted the formula into Excel, if I then press the F2 key
> and then the Enter key, the result of the formula is correctly displayed
> (including the hyperlink)!
>
> Does anyone know what is causing this behavior, and how to solve this
> problem so that the pasted formula displays correctly? Any help would be
> greatly appreciated.
>
> Thanks,
> Bob


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      23rd Jun 2007
Dave,
Thanks for the suggestion, but I have already verified that the cell format
is set to "General" prior to, and after, the formula is pasted.
Bob


"Dave Peterson" wrote:

> My first guess is that the numberformat is changed to General after the formula
> has been entered. And changing the numberformat isn't enough to make excel
> change the value in that cell.
>
> Any chance???
>
>
>
> Bob wrote:
> >
> > When copying an Excel-constructed formula from another application (Business
> > Objects) and pasting it into Excel, the cell displays the formula instead of
> > the formula's result.
> >
> > The Excel-constructed formula is:
> > =HYPERLINK("http://www.microsoft.com","Microsoft")
> >
> > The format of the cell is set to "General", and there are no strange or
> > extraneous characters either in front of, or at the end of, the formula.
> >
> > Yet, after I have pasted the formula into Excel, if I then press the F2 key
> > and then the Enter key, the result of the formula is correctly displayed
> > (including the hyperlink)!
> >
> > Does anyone know what is causing this behavior, and how to solve this
> > problem so that the pasted formula displays correctly? Any help would be
> > greatly appreciated.
> >
> > Thanks,
> > Bob

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      23rd Jun 2007
How are you assigning that formula?

Any chance that there's leading spaces?

Or using .value instead of .formula (although excel's VBA seems to forgive me
when I do it).

If worse comes to worst, maybe you can add another step to your code.

In VBA:
with worksheets("Sheet9999")
.cells.replace What:="=", _
Replacement:="=", _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
MatchCase:=False)
end with

It's just replacing an equal sign with an equal sign.


Bob wrote:
>
> Dave,
> Thanks for the suggestion, but I have already verified that the cell format
> is set to "General" prior to, and after, the formula is pasted.
> Bob
>
> "Dave Peterson" wrote:
>
> > My first guess is that the numberformat is changed to General after the formula
> > has been entered. And changing the numberformat isn't enough to make excel
> > change the value in that cell.
> >
> > Any chance???
> >
> >
> >
> > Bob wrote:
> > >
> > > When copying an Excel-constructed formula from another application (Business
> > > Objects) and pasting it into Excel, the cell displays the formula instead of
> > > the formula's result.
> > >
> > > The Excel-constructed formula is:
> > > =HYPERLINK("http://www.microsoft.com","Microsoft")
> > >
> > > The format of the cell is set to "General", and there are no strange or
> > > extraneous characters either in front of, or at the end of, the formula.
> > >
> > > Yet, after I have pasted the formula into Excel, if I then press the F2 key
> > > and then the Enter key, the result of the formula is correctly displayed
> > > (including the hyperlink)!
> > >
> > > Does anyone know what is causing this behavior, and how to solve this
> > > problem so that the pasted formula displays correctly? Any help would be
> > > greatly appreciated.
> > >
> > > Thanks,
> > > Bob

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
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
Cell Displays Formula, not result =?Utf-8?B?TWVsYW5pZQ==?= Microsoft Excel Worksheet Functions 2 9th Aug 2006 05:40 PM
Cell displays formula, not result? =?Utf-8?B?Y3Rj?= Microsoft Excel Misc 4 12th Jun 2006 09:45 PM
Formula displays result in formula box but not in cell =?Utf-8?B?YmR5ZXIzMA==?= Microsoft Excel Misc 0 8th Feb 2006 11:16 AM
Formula displays result in formula box but not in cell =?Utf-8?B?YmR5ZXIzMA==?= Microsoft Excel Worksheet Functions 0 8th Feb 2006 11:16 AM
Cell displays formula instead of result =?Utf-8?B?QkFD?= Microsoft Excel Misc 2 4th Feb 2006 06:08 PM


Features
 

Advertising
 

Newsgroups
 


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