PC Review


Reply
Thread Tools Rate Thread

Dissecting a Formula

 
 
=?Utf-8?B?QWNjZXNzSGVscA==?=
Guest
Posts: n/a
 
      20th Sep 2007
Hi,

I have a formula "=A00011220" in Cell A1; however, the result of A1 is "A".

In Cells C1, D1 and E1, based on the formula in A1, I want them to show
"A0001", "12" and "20", respectively. The formula in A1 will be the same
format anytime.

Basically, is there a function in Excel that remove the "=" from a formula
and turn it into text or a function that turns the actual formula into text?

Thanks.
 
Reply With Quote
 
 
 
 
David Biddulph
Guest
Posts: n/a
 
      20th Sep 2007
I don't understand =A00011220 as a formula. Is A00011220 a defined name?
--
David Biddulph

"AccessHelp" <(E-Mail Removed)> wrote in message
news:F8594B84-F569-426A-9224-(E-Mail Removed)...
> Hi,
>
> I have a formula "=A00011220" in Cell A1; however, the result of A1 is
> "A".
>
> In Cells C1, D1 and E1, based on the formula in A1, I want them to show
> "A0001", "12" and "20", respectively. The formula in A1 will be the same
> format anytime.
>
> Basically, is there a function in Excel that remove the "=" from a formula
> and turn it into text or a function that turns the actual formula into
> text?
>
> Thanks.



 
Reply With Quote
 
Dave O
Guest
Posts: n/a
 
      20th Sep 2007
When I entered =A00011220 into cell A1 Excel truncated it to read
=A11220 (i.e., cell #11220 in column A as though it was a typical cell
reference). Do you have any apostrophes in your entry?

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      20th Sep 2007
The following small UDF will return the formula as string without the = sign:

Function form2text(r As Range) As String
v = r.Formula
form2text = Right(v, Len(v) - 1)
End Function

--
Gary''s Student - gsnu200746


"AccessHelp" wrote:

> Hi,
>
> I have a formula "=A00011220" in Cell A1; however, the result of A1 is "A".
>
> In Cells C1, D1 and E1, based on the formula in A1, I want them to show
> "A0001", "12" and "20", respectively. The formula in A1 will be the same
> format anytime.
>
> Basically, is there a function in Excel that remove the "=" from a formula
> and turn it into text or a function that turns the actual formula into text?
>
> Thanks.

 
Reply With Quote
 
=?Utf-8?B?QWNjZXNzSGVscA==?=
Guest
Posts: n/a
 
      20th Sep 2007
Yes, it is a defined name. I should have mentioned that in my original
message. Sorry!

Is there a way to do it? Thanks.

"David Biddulph" wrote:

> I don't understand =A00011220 as a formula. Is A00011220 a defined name?
> --
> David Biddulph
>
> "AccessHelp" <(E-Mail Removed)> wrote in message
> news:F8594B84-F569-426A-9224-(E-Mail Removed)...
> > Hi,
> >
> > I have a formula "=A00011220" in Cell A1; however, the result of A1 is
> > "A".
> >
> > In Cells C1, D1 and E1, based on the formula in A1, I want them to show
> > "A0001", "12" and "20", respectively. The formula in A1 will be the same
> > format anytime.
> >
> > Basically, is there a function in Excel that remove the "=" from a formula
> > and turn it into text or a function that turns the actual formula into
> > text?
> >
> > Thanks.

>
>
>

 
Reply With Quote
 
=?Utf-8?B?RmFyaGFk?=
Guest
Posts: n/a
 
      20th Sep 2007
Hi,

Try with find and replace

find: =
and leav replace blank
after doing that enter formula below for C1, D1 and E1:

C1: =LEFT(A1,5)
D1: =MID(A1,6,2)
E1: =RIGHT(A1,2)

Thanks,
--
Farhad Hodjat


"AccessHelp" wrote:

> Hi,
>
> I have a formula "=A00011220" in Cell A1; however, the result of A1 is "A".
>
> In Cells C1, D1 and E1, based on the formula in A1, I want them to show
> "A0001", "12" and "20", respectively. The formula in A1 will be the same
> format anytime.
>
> Basically, is there a function in Excel that remove the "=" from a formula
> and turn it into text or a function that turns the actual formula into text?
>
> Thanks.

 
Reply With Quote
 
=?Utf-8?B?QWNjZXNzSGVscA==?=
Guest
Posts: n/a
 
      20th Sep 2007
Gary,

You are genius. How did you know to do that? Can you give me some tips on
where I can go to learn those codes?

Thanks.


"Gary''s Student" wrote:

> The following small UDF will return the formula as string without the = sign:
>
> Function form2text(r As Range) As String
> v = r.Formula
> form2text = Right(v, Len(v) - 1)
> End Function
>
> --
> Gary''s Student - gsnu200746
>
>
> "AccessHelp" wrote:
>
> > Hi,
> >
> > I have a formula "=A00011220" in Cell A1; however, the result of A1 is "A".
> >
> > In Cells C1, D1 and E1, based on the formula in A1, I want them to show
> > "A0001", "12" and "20", respectively. The formula in A1 will be the same
> > format anytime.
> >
> > Basically, is there a function in Excel that remove the "=" from a formula
> > and turn it into text or a function that turns the actual formula into text?
> >
> > Thanks.

 
Reply With Quote
 
=?Utf-8?B?QWNjZXNzSGVscA==?=
Guest
Posts: n/a
 
      20th Sep 2007
Thanks guys for your help.

"Dave O" wrote:

> When I entered =A00011220 into cell A1 Excel truncated it to read
> =A11220 (i.e., cell #11220 in column A as though it was a typical cell
> reference). Do you have any apostrophes in your entry?
>
>

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      20th Sep 2007
I am not a genius, only a student. Get a good book on Excel VBA, and in a
couple of weeks you will probably know more than me.
--
Gary''s Student - gsnu200746


"AccessHelp" wrote:

> Gary,
>
> You are genius. How did you know to do that? Can you give me some tips on
> where I can go to learn those codes?
>
> Thanks.
>
>
> "Gary''s Student" wrote:
>
> > The following small UDF will return the formula as string without the = sign:
> >
> > Function form2text(r As Range) As String
> > v = r.Formula
> > form2text = Right(v, Len(v) - 1)
> > End Function
> >
> > --
> > Gary''s Student - gsnu200746
> >
> >
> > "AccessHelp" wrote:
> >
> > > Hi,
> > >
> > > I have a formula "=A00011220" in Cell A1; however, the result of A1 is "A".
> > >
> > > In Cells C1, D1 and E1, based on the formula in A1, I want them to show
> > > "A0001", "12" and "20", respectively. The formula in A1 will be the same
> > > format anytime.
> > >
> > > Basically, is there a function in Excel that remove the "=" from a formula
> > > and turn it into text or a function that turns the actual formula into text?
> > >
> > > Thanks.

 
Reply With Quote
 
=?Utf-8?B?QWNjZXNzSGVscA==?=
Guest
Posts: n/a
 
      21st Sep 2007
Would you recommend any Excel VBA book?

Thanks.



"Gary''s Student" wrote:

> I am not a genius, only a student. Get a good book on Excel VBA, and in a
> couple of weeks you will probably know more than me.
> --
> Gary''s Student - gsnu200746
>
>
> "AccessHelp" wrote:
>
> > Gary,
> >
> > You are genius. How did you know to do that? Can you give me some tips on
> > where I can go to learn those codes?
> >
> > Thanks.
> >
> >
> > "Gary''s Student" wrote:
> >
> > > The following small UDF will return the formula as string without the = sign:
> > >
> > > Function form2text(r As Range) As String
> > > v = r.Formula
> > > form2text = Right(v, Len(v) - 1)
> > > End Function
> > >
> > > --
> > > Gary''s Student - gsnu200746
> > >
> > >
> > > "AccessHelp" wrote:
> > >
> > > > Hi,
> > > >
> > > > I have a formula "=A00011220" in Cell A1; however, the result of A1 is "A".
> > > >
> > > > In Cells C1, D1 and E1, based on the formula in A1, I want them to show
> > > > "A0001", "12" and "20", respectively. The formula in A1 will be the same
> > > > format anytime.
> > > >
> > > > Basically, is there a function in Excel that remove the "=" from a formula
> > > > and turn it into text or a function that turns the actual formula into text?
> > > >
> > > > Thanks.

 
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
Dissecting and generating PDF files Jon Harrop Microsoft C# .NET 3 18th Oct 2007 03:00 PM
Dissecting the contents of a cell =?Utf-8?B?RG91Zw==?= Microsoft Excel Worksheet Functions 10 5th Jul 2006 08:46 PM
Dissecting managed PE file (EXE or DLL) =?Utf-8?B?cHJhZGVlcF9UUA==?= Microsoft Dot NET Framework 4 15th Jan 2006 01:51 PM
Dissecting an incoming mail Frode Lillerud Microsoft Outlook Program Addins 2 9th Jan 2004 02:44 PM
Dissecting an unknown .mdb file Alex J Microsoft Access External Data 1 2nd Dec 2003 10:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:59 PM.