PC Review


Reply
Thread Tools Rate Thread

Assigning Values to Symbols

 
 
=?Utf-8?B?R2Vvcmdl?=
Guest
Posts: n/a
 
      6th Sep 2007
I want to be able to insert symbols such as a letter (p) or a letter and
number (p1)into a worksheet. I then want to created a formula that
recognizes those symbols as a specific value, such as p=1 and p1 -.5. Could
anyone tell me how to do that?

Thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9wcGVycw==?=
Guest
Posts: n/a
 
      6th Sep 2007
See VLOOKUP in Excel HELP

"George" wrote:

> I want to be able to insert symbols such as a letter (p) or a letter and
> number (p1)into a worksheet. I then want to created a formula that
> recognizes those symbols as a specific value, such as p=1 and p1 -.5. Could
> anyone tell me how to do that?
>
> Thanks

 
Reply With Quote
 
=?Utf-8?B?UmF5cG9ydGluZ01vbmtleQ==?=
Guest
Posts: n/a
 
      6th Sep 2007
Assuming that you are going to reference those values in a formula somewhere
in the sheet, a simple IF statement may do the trick!

Let's say that the P or P1 appear in a cell in Column.A and you want a
result of a mathmatical formula in the adjecent cell on Column.B

If A1 contains the letter P and as you stated, P is equal to 1, you could
enter a formula in B1 evaluating that as follows:

=IF(A1="P",SUM(25*1),IF(A1="P1",SUM(25*(-0.5)),"Not P or P1"))

This will evaluate if the cell in Column A contains a P or a P1 and multiply
the appropriate value times 25. If the cell in Column A does not contain a P
or P1, it tells you so.


"George" wrote:

> I want to be able to insert symbols such as a letter (p) or a letter and
> number (p1)into a worksheet. I then want to created a formula that
> recognizes those symbols as a specific value, such as p=1 and p1 -.5. Could
> anyone tell me how to do that?
>
> Thanks

 
Reply With Quote
 
=?Utf-8?B?UmF5cG9ydGluZ01vbmtleQ==?=
Guest
Posts: n/a
 
      6th Sep 2007
Another way to do it is like this...
Setup a sheet as follows:

A B C D E
1 P1 -12.5 P 1
2 P 25 P1 -0.5

The formula in cell B1 is:
=SUM(VLOOKUP(A1,$D$1:$E$2,2,FALSE)*25)

What this does is it looks at the "TableArray" in cells D1:E2 and tries to
find a match to what is entered into cell A1. It will then multiply the
matched value, which resides in column E by 25.

The VLOOKUP will work in a large combination of formulas, allowing you to
define a list of values (TableArray) and use them throughout the sheet!



"George" wrote:

> I want to be able to insert symbols such as a letter (p) or a letter and
> number (p1)into a worksheet. I then want to created a formula that
> recognizes those symbols as a specific value, such as p=1 and p1 -.5. Could
> anyone tell me how to do that?
>
> Thanks

 
Reply With Quote
 
Bob I
Guest
Posts: n/a
 
      6th Sep 2007
If you want Names for this you may for instance Name(Insert, Name,
Define) cell A1 "p" and Name cell A2 "pOne". Now put =1 in cell A1 and
=.5 in cell A2. Now click in another cell and put =p+pOne, and it should
show 1.5



George wrote:
> I want to be able to insert symbols such as a letter (p) or a letter and
> number (p1)into a worksheet. I then want to created a formula that
> recognizes those symbols as a specific value, such as p=1 and p1 -.5. Could
> anyone tell me how to do that?
>
> Thanks


 
Reply With Quote
 
RagDyer
Guest
Posts: n/a
 
      6th Sep 2007
You can try using "named formulas".

However, your example of using P1 wouldn't work since it's a reserved name,
being similar to cell references.

You could use P, P1P, P2P, ...etc.

<Insert> <Name> <Define>

Click in the "Names in Workbook" box and type:
P
Then, change whatever's in the "Refers To" box to:
=1

Then click <Add>

Back to the "Names in Workbook" box and type:
P1P
Then, change whatever's in the "Refers To" box to:
=-0.5
Then click <OK>.

Now, you can try something like this:

=P+P1P
and get a return of
0.5

OR

=100-P
and get a return of 99.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"George" <(E-Mail Removed)> wrote in message
news:1FC7DF5F-1EDA-4561-82D6-(E-Mail Removed)...
>I want to be able to insert symbols such as a letter (p) or a letter and
> number (p1)into a worksheet. I then want to created a formula that
> recognizes those symbols as a specific value, such as p=1 and p1 -.5.
> Could
> anyone tell me how to do that?
>
> Thanks



 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      6th Sep 2007
Why are you using SUM?


--
Regards,

Peo Sjoblom




"RayportingMonkey" <(E-Mail Removed)> wrote in
message news:276750C9-F100-4FD7-A16F-(E-Mail Removed)...
> Another way to do it is like this...
> Setup a sheet as follows:
>
> A B C D E
> 1 P1 -12.5 P 1
> 2 P 25 P1 -0.5
>
> The formula in cell B1 is:
> =SUM(VLOOKUP(A1,$D$1:$E$2,2,FALSE)*25)
>
> What this does is it looks at the "TableArray" in cells D1:E2 and tries to
> find a match to what is entered into cell A1. It will then multiply the
> matched value, which resides in column E by 25.
>
> The VLOOKUP will work in a large combination of formulas, allowing you to
> define a list of values (TableArray) and use them throughout the sheet!
>
>
>
> "George" wrote:
>
>> I want to be able to insert symbols such as a letter (p) or a letter and
>> number (p1)into a worksheet. I then want to created a formula that
>> recognizes those symbols as a specific value, such as p=1 and p1 -.5.
>> Could
>> anyone tell me how to do that?
>>
>> 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
Assigning keys to special symbols =?Utf-8?B?Q2luZHkgU3ByYXR0?= Microsoft Word Document Management 4 19th Jul 2006 07:25 PM
Assigning Values =?Utf-8?B?Q2FybGVl?= Microsoft Access Reports 1 17th Dec 2005 05:29 PM
assigning values Mike Microsoft Access Database Table Design 2 13th Jun 2004 11:44 AM
Assigning values TBird Microsoft Access 2 30th Oct 2003 07:49 AM
Assigning Values JJ Microsoft C# .NET 4 19th Aug 2003 10:47 AM


Features
 

Advertising
 

Newsgroups
 


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