PC Review


Reply
Thread Tools Rate Thread

Convert random numbers to text..

 
 
rncolon
Guest
Posts: n/a
 
      29th Dec 2005
HAPPY EVERYTHING!!

I have a problem and after searching for an answer for at least 3 hours
I am stumped.

I have a spreadsheet formatted as follows:

Row B2 --> DT2 is the name of Regions.
ColumnA3 down to A50 are products.

In the cells to the left os A3.. and beneath each Region there are
numbers ranging from
1--> 70000(sample). I need to replace all cells which have a value and
are not empty with an 'X'. I then have a SQL script to extract that
data in to a db.

I have found many macros, scripts for converting to monetary values to
text in just about any language, various vlookup and other conversion
scripts but can not figure out how to do the above.. I would really
appreciate any assistance!!!!

TIA!!

Raymond

 
Reply With Quote
 
 
 
 
Otto Moehrbach
Guest
Posts: n/a
 
      29th Dec 2005
I take it that you have a range and you want Excel to look at every cell in
that range, and if the cell is not empty and it has a number in it, replace
whatever is in the cell with "X". If that is what you want, the following
macro will do that. Note that you need to define (Set) the range MyRng in
the macro to the range you want. As written, the macro sets the range to
the used range of Column A from A1 down. HTH Otto

Sub Test()
Dim MyRng As Range
Dim i As Range
Set MyRng = Range("A1", Range("A" & Rows.Count).End(xlUp))
For Each i In MyRng
If IsNumeric(i) And Not IsEmpty(i) Then _
i.Value = "X"
Next i
End Sub
"rncolon" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> HAPPY EVERYTHING!!
>
> I have a problem and after searching for an answer for at least 3 hours
> I am stumped.
>
> I have a spreadsheet formatted as follows:
>
> Row B2 --> DT2 is the name of Regions.
> ColumnA3 down to A50 are products.
>
> In the cells to the left os A3.. and beneath each Region there are
> numbers ranging from
> 1--> 70000(sample). I need to replace all cells which have a value and
> are not empty with an 'X'. I then have a SQL script to extract that
> data in to a db.
>
> I have found many macros, scripts for converting to monetary values to
> text in just about any language, various vlookup and other conversion
> scripts but can not figure out how to do the above.. I would really
> appreciate any assistance!!!!
>
> TIA!!
>
> Raymond
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      29th Dec 2005
Select that range (whole column?)
Edit|Goto
check Constants
and uncheck Text, Logicals, Errors (leave Numbers checked)
click ok

Type X and hit ctrl enter.



rncolon wrote:
>
> HAPPY EVERYTHING!!
>
> I have a problem and after searching for an answer for at least 3 hours
> I am stumped.
>
> I have a spreadsheet formatted as follows:
>
> Row B2 --> DT2 is the name of Regions.
> ColumnA3 down to A50 are products.
>
> In the cells to the left os A3.. and beneath each Region there are
> numbers ranging from
> 1--> 70000(sample). I need to replace all cells which have a value and
> are not empty with an 'X'. I then have a SQL script to extract that
> data in to a db.
>
> I have found many macros, scripts for converting to monetary values to
> text in just about any language, various vlookup and other conversion
> scripts but can not figure out how to do the above.. I would really
> appreciate any assistance!!!!
>
> TIA!!
>
> Raymond


--

Dave Peterson
 
Reply With Quote
 
rncolon
Guest
Posts: n/a
 
      29th Dec 2005
thank you very much for your very FAST responses.
I will be testing both out shortly and reply!!

Happy EVERYTHING!!

R

 
Reply With Quote
 
rncolon
Guest
Posts: n/a
 
      16th Jan 2006
Both suggestions worked..

Thank you very much!!!

R

 
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
Can I convert numbers stored as text back to numbers in MS Access CUserM Microsoft Access Queries 7 20th Jun 2008 08:12 PM
Convert numbers stored as text to numbers errors after loading data in jobs Microsoft Excel Programming 2 28th Mar 2007 02:57 AM
Convert numbers stored as text to numbers Excel 2000 =?Utf-8?B?RGFybGVuZQ==?= Microsoft Excel Misc 6 31st Jan 2006 08:04 PM
Convert random numbers to text.. rncolon Microsoft Excel Worksheet Functions 4 16th Jan 2006 08:30 PM
How to convert Excel imported numbers from text to numbers? =?Utf-8?B?QWxkZW4=?= Microsoft Excel Misc 9 1st Apr 2005 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:16 AM.