Column Manipulation in Excel 2007 - excel-2007

I have some thousands of row of data in Excel(in single column) but because of some computing error it is showing the data as
#NAME
#NAME
#NAME
.
.
.
. and so on
When i click any cell the data is shown as =-GNcVLtPu1QlJ07cMRe4zw
I need to delete "==-" sign to get the required data as GNcVLtPu1QlJ07cMRe4zw
Can any one suggest any method which can convert those thousands line of data into the correct format(doing it manually will kill most of my time)
Thanks

as Pankaj pointed:
select the entire column
hit CTRL+H
put "=-" in Find column and leave the Replace empty
Hit Replace All
Reference Snap:
That's all you need!

Related

Is there a way to reduce gap between two column headings in DB2

I am working on IBM I series VR7, and running SQL(DB2) using CLLE.
I have a SQL procedure in a TXT file, having below command to create a table in QTEMP.
create table qtemp.FILE1 as (
select
Field1,Field2,Field3,.....Field10 from FILE2 ) with data;
I am calling the above procedure from CLLE using below command.
RUNSQLSTM SRCFILE(MyLib/MySrc) SRCMBR(Proc_txt) COMMIT(*NONE)
And then running below command to generate the spool.
RUNQRY QRYFILE((FILE1)) OUTTYPE(*PRINTER) OUTFORM(*DETAIL) FORMSIZE(60 132)
FORMTYPE(*STD) COPIES(1) LINESPACE(1)
The issue I am facing is that I am getting 2 white spaces between columns while creating the table using the create table command. When that table is converted into a spool file using above RUNQRY command, the fields on the right side truncates as my report width is 132 by default and I can not change it.
If the white spaces in the table created can be reduced to 1, my issue will be resolved.
The SQL I am using IBM i Series' default and DB2 as database. I don't have much idea about their version.
Edit2: Another issue I had was of report having a field in second line. Actually as per requirement a field had to be in the second row under another field. For example I needed field10 under field5. I have fixed it too, read my answer below.
Hope it helps people in need but I really doubt.
Edit1: I have updated the question as requested. Any help would be much appreciated. Thanks.
The short answer is that yes you can define the report to have 1 space between columns, but you have to define the Query400 object to do that. Unfortunately this is not a good place to write a tutorial for Query400. I can get you started though.
Type wrkqry, press enter.
Then put the cursor on the query name field, and press F4. You are now in the tool. You need to create a new query, and define everything about it in this tool. Play around with it, and see if that helps you.
I was able to get what I needed. As others have suggested, I have finally used WRKQRY to control the column spacing. Reduced the column spacing to 1 and was able to get the columns needed in the 132 width.
Another issue I had was of report having a field in second line. Actually as per requirement a field had to be in the second row under another field. For example I needed field10 under field5. So what I did was, I used the Line wrapping feature available in WRKQRY.
How I did:
Create a WRKQRY object and select the file needed.
Sequenced the field I needed in second line, to the bottom.
Go to Select Output Type and Output Form and take Y on Line Wrapping field. Put the
wrapping width equal to your report width. Leave other fields as required.
This way each record will have 10th field in next row, if it has data. You can add as
many as fields.
You may have to add some white spaces to the field for proper alignment. I would
suggest to create a new field and use concat(||) operator available in WRKQRY.
Thanks everyone for helping.

How to extract partial column name and pass the value to variable in SSIS

I am working on Excel file to load the data into sql table using SSIS VS2013.
How do I extract the column names into a temptable?
In the image attached,there is the "2017 Marketing Sales - Actual" column in the first row, I want to extract the YYYY from the column name and pass that value to a variable and update the table field with YYYY info.
Can you anyone help me how to do this?
In your Excel Connection Manager, uncheck the "First row has column names" check box. This should allow you to access that first row. You'll need to setup a Data Flow Task using this Excel Connection Manager, followed by a derived column to extract the left 4 characters from that 1st row. Unless you somehow limit the rest of the Excel data source, you'll probably also get a lot of extraneous rows importing into your destination. Might need to do some clean up to get it down to just that year.

Excel - Automatically Generate Reverse Sheet

Am trying to automate a workflow . Basically its a Bus schedule timetable .
Say , I have a worksheet with multiple columns And a Set Formula to calculate Reach Time Between Various Stops .
I want to calculate another sheet with the Return Journey Timings .
Source Sheet :
Automatically Generate Reverse Sheet with Modified Formula:
The New Reverse Sheet Should Copy the columns in the Reverse Order . And modify the original formula using the time.
Target :
Create a Sheet where I enter a start Time , the other times should be automatically populated . I have the start times for the sources
Idea is - once I populate One way route with a formula , create a new sheet with return journey details and give an option to enter start time from the return source .
Could this be done in Excel Macros or any faster approach ?
Tried the excel record option but that takes the hard coded column names. Its not dynamic as to if i have a new route with different number of stops , i want it to generate the reverse order sheet based on original
Appreciate some help . Thanks !
I have not tested in Excel, but this uses functions that are shared between Sheets and Excel, so this should work. You can jazz this up to use sheet references, but I kept it simple.
Assume your forward schedule sits in rows 10 and 11, starting in column A. In A13 enter (columns matching matters here)=iferror(offset($A10,0,counta(10:10)-COLUMN()),"") dragging it right as far as you can imagine stops going as well as down one row (for cosmetics you will hide this row (14 in mine) later). Then one row down from that you can enter (and mess around with) whatever time you want in the first column. In column B next to it, place =A15+A14-B14, dragging that right as far as the last stop. These times will be right and will adjust as you change the contents of the first column or the rows on which things are based. You will get nonsense if you drag things further right. (probably there is a way to fix that)

SQL Server - Insert Blank Rows after row

I have a query for SQL server (2014). This query is then processed by my application that exports the result set to excel.
I have been asked if I can add space underneath each row, as the spreadsheet will be printed and they would like to make notes on it.
I have tried adding carriage returns to my query to try and stretch out the height of the column so
(CHAR(13)+CHAR(13)+CHAR(13)) as 'Blank Column'
But excel didn't pick up the returns.
The only other thing I can think of is to add 4-5 blank rows after each row with data, I'm just not sure how to do that, or even if it's possible
Try something like this:
SELECT REPLICATE(CHAR(10),5) AS [Blank Column]

clearing an entire column in access

is there a way to clear an entire column in a datasheet in access? i can just right click on it and delete it but that will affect the structure, i just need to clear all the records. how do i do this?
perhaps the question i should be asking is how do i clear the entire contents of a datasheet in access?
Use an update query, e.g.
UPDATE YourTable
SET YourColumn = NULL
There doesn't seem to be a way to do this directly from the UI, which kind of makes sense.
See
Update data by using a query - Microsoft Office Online
UPDATE table_name
SET field_name = NULL;
Much simpler: right click on the column header in access, select copy. Now go to excel and paste into a excel column. Now hit the delete key, then copy that. Go back to access right click column header and paste. Done.
Note: When selecting what to copy in excel may want to exclude column header or may get extra blank record.
Use Replace All function for CURRENT FIELD, FIND WHAT = * and REPLACE WITH = blank. Took 10 seconds to blank out 22600 records. Make sure you LOOK IN = CURRENT FIELD and that field is highlighted.
right click on upper left square of the datasheet, click DELETE RECORD