Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mitch
 
Posts: n/a
Default Missing values from SAS

I am forced to work with an Excel sheet that was imported from SAS. It
contains the standard period "." in all cells where the data was missing. I
cannot rerun the SAS to eliminate the missing data marks. Is there a way to
eliminate the "." in Excel without also eliminating the decimal point in
numeric cell values?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mitch
 
Posts: n/a
Default Missing values from SAS

I found the answer myself. You just select the "Match Entire Cell Contents"
option. Thanks anyway!

"Mitch" wrote:

I am forced to work with an Excel sheet that was imported from SAS. It
contains the standard period "." in all cells where the data was missing. I
cannot rerun the SAS to eliminate the missing data marks. Is there a way to
eliminate the "." in Excel without also eliminating the decimal point in
numeric cell values?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ryan Jones
 
Posts: n/a
Default Missing values from SAS

You could write code to loop through the cells and using an if statement
test if worksheets(1).range(CellVariable).value2 = "."


"Mitch" wrote in message
...
I am forced to work with an Excel sheet that was imported from SAS. It
contains the standard period "." in all cells where the data was missing.
I
cannot rerun the SAS to eliminate the missing data marks. Is there a way
to
eliminate the "." in Excel without also eliminating the decimal point in
numeric cell values?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Missing values from SAS

press Ctrl-H to get the Replace dialog box. Put the period in the Find box
and leave the Replace box empty

Check the box for "match entire cell contents." (If it doesn't show, click
the Options button to display it)



"Mitch" wrote:

I am forced to work with an Excel sheet that was imported from SAS. It
contains the standard period "." in all cells where the data was missing. I
cannot rerun the SAS to eliminate the missing data marks. Is there a way to
eliminate the "." in Excel without also eliminating the decimal point in
numeric cell values?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove
 
Posts: n/a
Default Missing values from SAS

Ryan Jones wrote...
You could write code to loop through the cells and using an if statement
test if worksheets(1).range(CellVariable).value2 = "."

"Mitch" wrote in message
I am forced to work with an Excel sheet that was imported from SAS. It
contains the standard period "." in all cells where the data was missing.
I cannot rerun the SAS to eliminate the missing data marks. Is there a
way to eliminate the "." in Excel without also eliminating the decimal
point in numeric cell values?


VBA isn't necessary. Use Edit Replace to replace . with nothing, but
make sure to check the box for 'Match entire cell contents'. That'll
replace/eliminate periods that are the entire contents of their cells
while leaving cells containing numbers with fractional parts as-is.

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
Return Range of Numerical Values in Single Column based on Frequency Percentage Sam via OfficeKB.com Excel Worksheet Functions 9 October 28th 05 11:01 PM
View of x-axis values AhmtDY Charts and Charting in Excel 2 October 18th 05 06:18 PM
Area chart - missing values Lasci Charts and Charting in Excel 10 October 8th 05 09:42 PM
How can I break values apart that are in the same cell? Phil Excel Worksheet Functions 3 October 4th 05 03:41 PM
Excel Compare values in columns & display missing values in a new cpetta Excel Discussion (Misc queries) 1 April 2nd 05 05:51 AM


All times are GMT +1. The time now is 09:39 PM.

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"