Solved

How would you assign a blank value to empty cells so that they are NOT interpreted as NULL values when saving an Excel file into a tab deliminted text file?

Posted on 2014-10-03
4
148 Views
Last Modified: 2014-10-03
How would you assign a blank value to empty cells so that they are not interpreted as NULL values when saving an Excel 2010 file as a tab delimited text file?

For example, values in columns E, G and J should not have any Null values.

I will ultimately be importing this tab delimited text file into a Sybase table using DBArtisan's import wizard and some fields in the Sybase table have "Nulls = No" setting.
0
Comment
Question by:zimmer9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40360371
do the followings

with holding the control keyboard select columns E, G and J  then

in the home tab then on the editing  Find and Replace option select  "Go to Special" in the dialbox select "blanks" then click Ok
then put a space or whatever you want to replace the blanks cells with. then hold Control key and press enter in the keyboard.

all of the balank cells will replace with the signed value.
0
 
LVL 26

Accepted Solution

by:
ProfessorJimJam earned 400 total points
ID: 40360402
with macro you can do it through code

assuming that your worksheet nameis Sheet1


Sub Macro()

    Sheets("Sheet1").Select
    Range("E1,E:E,G:G,J:J").Select
    Selection.SpecialCells(xlCellTypeBlanks).Select
    Selection.FormulaR1C1 = " "
End Sub

Open in new window

0
 

Author Comment

by:zimmer9
ID: 40360489
What if I want to replace NULL values with blank values in the cells?
0
 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 100 total points
ID: 40360525
ProfessorJimJam's solutions are valid for your original question and should be recognized.

If you have an import into Excel that is indeed producing NULL in a cell, that is simply text and can be removed with a simple search and replace across the entire sheet.  There is no "NULL" equivalent in Excel; the cell is either empty or not.

-Glenn
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question