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 --gt; 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--gt; 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!!
RaymondI 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 quot;Xquot;. 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(quot;A1quot;, Range(quot;Aquot; amp; Rows.Count).End(xlUp))
For Each i In MyRng
If IsNumeric(i) And Not IsEmpty(i) Then _
i.Value = quot;Xquot;
Next i
End Sub
quot;rncolonquot; gt; wrote in message oups.com...
gt; HAPPY EVERYTHING!!
gt;
gt; I have a problem and after searching for an answer for at least 3 hours
gt; I am stumped.
gt;
gt; I have a spreadsheet formatted as follows:
gt;
gt; Row B2 --gt; DT2 is the name of Regions.
gt; ColumnA3 down to A50 are products.
gt;
gt; In the cells to the left os A3.. and beneath each Region there are
gt; numbers ranging from
gt; 1--gt; 70000(sample). I need to replace all cells which have a value and
gt; are not empty with an 'X'. I then have a SQL script to extract that
gt; data in to a db.
gt;
gt; I have found many macros, scripts for converting to monetary values to
gt; text in just about any language, various vlookup and other conversion
gt; scripts but can not figure out how to do the above.. I would really
gt; appreciate any assistance!!!!
gt;
gt; TIA!!
gt;
gt; Raymond
gt;
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:
gt;
gt; HAPPY EVERYTHING!!
gt;
gt; I have a problem and after searching for an answer for at least 3 hours
gt; I am stumped.
gt;
gt; I have a spreadsheet formatted as follows:
gt;
gt; Row B2 --gt; DT2 is the name of Regions.
gt; ColumnA3 down to A50 are products.
gt;
gt; In the cells to the left os A3.. and beneath each Region there are
gt; numbers ranging from
gt; 1--gt; 70000(sample). I need to replace all cells which have a value and
gt; are not empty with an 'X'. I then have a SQL script to extract that
gt; data in to a db.
gt;
gt; I have found many macros, scripts for converting to monetary values to
gt; text in just about any language, various vlookup and other conversion
gt; scripts but can not figure out how to do the above.. I would really
gt; appreciate any assistance!!!!
gt;
gt; TIA!!
gt;
gt; Raymond
--
Dave Peterson
thank you very much for your very FAST responses.
I will be testing both out shortly and reply!!
Happy EVERYTHING!!
RBoth suggestions worked..
Thank you very much!!!
R
- Apr 21 Sat 2007 20:36
Convert random numbers to text..
close
全站熱搜
留言列表
發表留言