ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formula (https://www.excelbanter.com/excel-discussion-misc-queries/88401-formula.html)

Big Abalone

formula
 
I am try to get a cell to only show "P3"If some one was to type a one, two or
three diget number then it would look like "P3 the number typed" for example
if some one typed 12, it would look like "P3 12" If some one typed 100 it
would look like "P3 100" It would be for a template. Any Ideas?

Miguel Zapico

formula
 
If you just want it to show on the template, you can use the following custom
format in the cell:
"P3 " #
That will show what you want, and the value in the cell will still be a
number.

Hope this helps,
Miguel.

"Big Abalone" wrote:

I am try to get a cell to only show "P3"If some one was to type a one, two or
three diget number then it would look like "P3 the number typed" for example
if some one typed 12, it would look like "P3 12" If some one typed 100 it
would look like "P3 100" It would be for a template. Any Ideas?


Big Abalone

formula
 


"Miguel Zapico" wrote:

If you just want it to show on the template, you can use the following custom
format in the cell:
"P3 " #
That will show what you want, and the value in the cell will still be a
number.

Hope this helps,
Miguel.

"Big Abalone" wrote:

I am try to get a cell to only show "P3"If some one was to type a one, two or
three diget number then it would look like "P3 the number typed" for example
if some one typed 12, it would look like "P3 12" If some one typed 100 it
would look like "P3 100" It would be for a template. Any Ideas?


OK, great. Then I could have blank cells with that formula in the range and
if I typed "p123 it would come out as "P 123" .............?

Miguel Zapico

formula
 
Well, this is a cell format that affect how numbers are displayed, not a
formula. What this means is that the entry of the cell is a number it will
come out as "P3 number"; the content of the cell is still a number.
If you want to affect how a cell display text, the custom format will be
something like this:
"P3 "#;;;"P "@
This will add "P " to any text value (like p123 entered in the cell will
display P p123)

The important thing here is that the contents of the cell are unchanged, so
even if you see P3 123 in reality the cell has the value of 123. If you want
later to effectively add anything, you can use simple formulas as:
="P " & A1
This is the reason why my response started with "if you just want to show",
as the actions proposed were not aimed to change the data itself, but the way
it is presented.

I don't know if I have clarified or confused more with all those
explanations :)
Miguel.

"Big Abalone" wrote:



"Miguel Zapico" wrote:

If you just want it to show on the template, you can use the following custom
format in the cell:
"P3 " #
That will show what you want, and the value in the cell will still be a
number.

Hope this helps,
Miguel.

"Big Abalone" wrote:

I am try to get a cell to only show "P3"If some one was to type a one, two or
three diget number then it would look like "P3 the number typed" for example
if some one typed 12, it would look like "P3 12" If some one typed 100 it
would look like "P3 100" It would be for a template. Any Ideas?


OK, great. Then I could have blank cells with that formula in the range and
if I typed "p123 it would come out as "P 123" .............?



All times are GMT +1. The time now is 03:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com