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
141 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
  • 2
4 Comments
 
LVL 25

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 25

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now