Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Convert 0 value cells to "text"

I am trying to create a formula that will convert cells that are either blank
or displaying a 0 value to displaying "RDO" BUT if I enter a value other than
0 I want it to display that value.
I tried several different things but I am not having any success. Hopefully
someone with much more knowledge than me can help...

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Convert 0 value cells to "text"

Hi Brucas,

An IF formula looks to me the simpliest solution

Column A
0

text

Column B
=IF(A1=0;"RDO";IF(A1="";"RDO";A1))

Copy the formula until the end of the B column.

Does this do the trick?
Tom

On 29 mei, 06:51, brucas wrote:
I am trying to create a formula that will convert cells that are either blank
or displaying a 0 value to displaying "RDO" BUT if I enter a value other than
0 I want it to display that value.
I tried several different things but I am not having any success. Hopefully
someone with much more knowledge than me can help...


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Convert 0 value cells to "text"

Unfortunately not... It won't allow me to process it as it contains an error.
I have been trying to use various IF formulas to no avail.
The best I could get it to do default all the highlighted cells to RDO when
I copied them down. When I then enter other data it erases the formula ,hence
the RDO, but if I hit enter RDO remains (which is what I ultimately want to
happen). I may have to leave it that way however it makes the worksheet look
very busy and I prefer to be looking at a clean page.

HOLD ON... I altered the formula you gave me one last time and it has worked.

=IF(C3="0","RDO",IF(C3="","RDO",C3))

When I put the 0 into the "" it worked.

Thanks Heaps!! BUT now I have another one...

Does the IF Formula have to be in a seperate column? or can it be set to
"run in the background" on the column you are entering data?
I'll have a play and see as I'm determined to get this to work.

--
Stupid questions from a beginner...


"fake_be" wrote:

Hi Brucas,

An IF formula looks to me the simpliest solution

Column A
0

text

Column B
=IF(A1=0;"RDO";IF(A1="";"RDO";A1))

Copy the formula until the end of the B column.

Does this do the trick?
Tom

On 29 mei, 06:51, brucas wrote:
I am trying to create a formula that will convert cells that are either blank
or displaying a 0 value to displaying "RDO" BUT if I enter a value other than
0 I want it to display that value.
I tried several different things but I am not having any success. Hopefully
someone with much more knowledge than me can help...



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Convert 0 value cells to "text"

After some further investigation I've found that it does not work "in the
background" it defaults all cells to 0 and as you enter values it overwrites
or remains a 0 rather than RDO.

Also when I turned the show formulas off it had copied all the data from C
to D as well. GRRR!!
--
Stupid questions from a beginner...


"brucas" wrote:

HOLD ON... I altered the formula you gave me one last time and it has worked.

=IF(C3="0","RDO",IF(C3="","RDO",C3))

When I put the 0 into the "" it worked.

Thanks Heaps!! BUT now I have another one...

Does the IF Formula have to be in a seperate column? or can it be set to
"run in the background" on the column you are entering data?
I'll have a play and see as I'm determined to get this to work.

--
Stupid questions from a beginner...


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Convert 0 value cells to "text"


Does the IF Formula have to be in a seperate column? or can it be set to
"run in the background" on the column you are entering data?
I'll have a play and see as I'm determined to get this to work.


If you want to use only one columm you should create a macro that
changes the value of the cells. Something like a find a replace
function. If so the 'original' data will be lost.

An other way of "detecting" would be via the 'conditonal formatting
function" of excel. Via Format, conditional formatting it is possible
to highlight some specific cells based on a value of formula.
Disavantage is that the colors are hard to use in other formula's....
(if neccessary)

Good luck


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Convert 0 value cells to "text"

Your amended formula will give RDO for a blank cell or for a text string of
"0", but not for a number of zero. The quote marks denote a text string.

Also, you don't need 2 IFs. An OR will do.
=IF(OR(C3=0,C3=""),"RDO",C3)
--
David Biddulph

"brucas" wrote in message
...
....
HOLD ON... I altered the formula you gave me one last time and it has
worked.

=IF(C3="0","RDO",IF(C3="","RDO",C3))

When I put the 0 into the "" it worked.

....
"fake_be" wrote:

Hi Brucas,

An IF formula looks to me the simpliest solution

Column A
0

text

Column B
=IF(A1=0;"RDO";IF(A1="";"RDO";A1))

Copy the formula until the end of the B column.

Does this do the trick?
Tom

On 29 mei, 06:51, brucas wrote:
I am trying to create a formula that will convert cells that are either
blank
or displaying a 0 value to displaying "RDO" BUT if I enter a value
other than
0 I want it to display that value.
I tried several different things but I am not having any success.
Hopefully
someone with much more knowledge than me can help...





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Convert 0 value cells to "text"

And (apologies for following up my own post) as an empty cell is treated as
zero,
=IF(C3=0,"RDO",C3) will do.
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Your amended formula will give RDO for a blank cell or for a text string
of "0", but not for a number of zero. The quote marks denote a text
string.

Also, you don't need 2 IFs. An OR will do.
=IF(OR(C3=0,C3=""),"RDO",C3)
--
David Biddulph

"brucas" wrote in message
...
...
HOLD ON... I altered the formula you gave me one last time and it has
worked.

=IF(C3="0","RDO",IF(C3="","RDO",C3))

When I put the 0 into the "" it worked.

...
"fake_be" wrote:

Hi Brucas,

An IF formula looks to me the simpliest solution

Column A
0

text

Column B
=IF(A1=0;"RDO";IF(A1="";"RDO";A1))

Copy the formula until the end of the B column.

Does this do the trick?
Tom

On 29 mei, 06:51, brucas wrote:
I am trying to create a formula that will convert cells that are
either blank
or displaying a 0 value to displaying "RDO" BUT if I enter a value
other than
0 I want it to display that value.
I tried several different things but I am not having any success.
Hopefully
someone with much more knowledge than me can help...






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Convert 0 value cells to "text"

Thanks Guys,
Your suggestions have actually helped me out a lot to understand what it is
that I am trying to do. What I had earlier is exactly the formula you have
below David.
As I was saying before though, I think that I will just have to leave it
showing the RDO on the worksheet as the default value instead of having white
spaces because if I use conditional formatting to make the RDO "invisible"
they will not show when I enter the rest of the data, hence I'm back where I
started this morning - Oh well, tomorrow is another day and the plight of a
perfectionist is never ending dissatisfaction...
--
Stupid questions from a beginner...


"David Biddulph" wrote:

And (apologies for following up my own post) as an empty cell is treated as
zero,
=IF(C3=0,"RDO",C3) will do.
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Your amended formula will give RDO for a blank cell or for a text string
of "0", but not for a number of zero. The quote marks denote a text
string.

Also, you don't need 2 IFs. An OR will do.
=IF(OR(C3=0,C3=""),"RDO",C3)
--
David Biddulph

"brucas" wrote in message
...
...
HOLD ON... I altered the formula you gave me one last time and it has
worked.

=IF(C3="0","RDO",IF(C3="","RDO",C3))

When I put the 0 into the "" it worked.

...
"fake_be" wrote:

Hi Brucas,

An IF formula looks to me the simpliest solution

Column A
0

text

Column B
=IF(A1=0;"RDO";IF(A1="";"RDO";A1))

Copy the formula until the end of the B column.

Does this do the trick?
Tom

On 29 mei, 06:51, brucas wrote:
I am trying to create a formula that will convert cells that are
either blank
or displaying a 0 value to displaying "RDO" BUT if I enter a value
other than
0 I want it to display that value.
I tried several different things but I am not having any success.
Hopefully
someone with much more knowledge than me can help...







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
how i convert "100" to "hundred"( number to text) in excel-2007 mohanraj Excel Worksheet Functions 1 May 11th 08 09:07 PM
How can I convert numbers (ex. "4") to text (ex. "four") Help! Excel Discussion (Misc queries) 4 January 21st 08 09:36 PM
cells formatted to tick when text value "Y" if or null if "N" Jay Excel Discussion (Misc queries) 7 January 13th 06 09:16 AM
Why does excel convert my text "6990011011234" to "6.99E+12"? pj Excel Discussion (Misc queries) 1 January 8th 06 03:27 AM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 04:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"