How to merge two cells in CSV file - excel

How to merge two cell in CSV file like as Excel?
I want to merge two cell in CSV file file as:
Header Id Name mobileNo
Sub-Header id first Name last Name countryCode MobNumber

This is not possible
A comma-separated values (CSV) file stores tabular data (numbers and
text) in plain text.
It is just data, with no attached formatting or knowledge of how the
cells should be merged when the data is imported.
You could use a script maybe like python to merge them, refer this link
https://dzone.com/articles/merging-cells

You can just keep on adding comma's after a text in one cell to merge it with other cells. It did work for me at least.

Related

Excel: Find matching email addresses in ALL columns

I'm trying to clean up some email lists. I've got eight CSVs of email addresses. I'm trying to find email addresses that appear in ALL eight lists.
I've tried copying and pasting them into a single Excel document (a column for each list). But I am only able to compare TWO columns using methods like this:
=IF(COUNTIF($B:$B, $A2)=0, "No match in B", "")
so it doesn't tell me if there's a match in ALL columns (and technically that code tells me if there isn't a match). I can sort of figure it out by comparing two lists, then using those results to compare it to the third list, then use those results and compare it to the fourth list, and so on until I get through all eight lists. But
I've also tried using conditional formatting which formats duplicate values, but it again doesn't tell me if the match appears in ALL columns (it highlights if there's even one match).
Is there any way in Excel that I can indicate either with highlighting, or copy the value to a new column, any email addresses that appear in ALL columns?
So, just one formula:
SUM(IF(IFERROR(FIND(J3,A$3:H$12,1),0),1,0))>=8
See:
Just used names as you did not provide any data.
You can do it easily with Pivot Tables. Instead of creating a column for each CSV file (like the left part of image above), just copy all of them in the same column, one CSV after each other (like column E in image). Then insert a Pivot Table:
Take field Email into Values section and rows Section
Filter by values using the number of CSV as criteria (3 in the image, 8 in your case because you got 8 CSV files)
Create a PivotTable to analyze worksheet
data
Results are the emails that appear in all CSV.
Of course, this will work only if each e-mail appears once in each CSV file. If there are duplicates, you'll need to deduplicate each CSV before creating the unique column

How to add data to a new row in the n-th column of a CSV file in Python?

I am working with incomplete historical data and am using Python to select specific information from TXT files (e.g. via Regex) and write them to .csv tables.
Is it possible to write a certain item or a list of items to new rows in a particular column in an existing CSV file?
I can add individual strings or lists as consecutive new rows or columns to an existing table, but very often, I am only filling in "missing information".
It would be great to find a way to select the next row in the "n"-th column of a CSV table, or to select the column by name / column heading.
Have you considered using Pandas?
It has convenient methods for reading and writing csv-files. Working with columns, rows, and cells is quite intuitive.
It takes a little time to understand the basics of Pandas. but if you plan to work with csv and csv-like data more than once, it is worth it.

Parsing values that one under the another with one empty cell in between in excel

I am trying to parse values that are formatted top and bottom to a column which will have their ID and name side by side like shown in the attachment. I have tried couple formulas and data extract model in excel but no luck. Is there away to parse these values like the attachments D,E column using formula,VBA, or text editor?
Put this in D1 and copy over one column and down:
=INDEX($A:$A,(ROW($ZZ1)-1)*3+COLUMN(A$1))
The *3 is the pattern (every third row) While COLUMN(A$1) returns 1 or the row in which the data starts. If it starts in row 2 then one would use COLUMN(B$1) instead.

How to reverse the order of rows when Importing a csv file into Excel

I want to import a multicolumn .csv file into Excel. But my aim is to import them with reversed order; e.g. I want the last row of the .csv file be the first in my Excel and the first row of the .csv file be the last row in my Excel. I like something like a macro or an advanced filter for this task.
My .csv contains around 14000 rows so I can't use any manual tricks.
Import data in usual way
Add/insert an extra column to the imported data
Populate the extra column using Series Fill so that it contains the values 1,2,3,...
Select all data (imported and the extra column) and sort on the values in the extra column in descending order
Delete the extra column - data will now be sorted as you require.

Move data from ColB and ColC beneath data in ColA

I tried looking up what I need to do, but I'm not very good with Excel, so I'm not sure how to search for what I'm attempting to do.... here it goes...
I have a file that a customer sent me that I need to export as a .csv for direct mailing. What she sent has all 1463 customer names down column A, their address in ColB, and the second address line in ColC. The program that I need to import the .csv file into needs all of the information in one column so that it reads as you might read an address on an envelope, with the entire name and address in one cell (one cell per entry). So I need to take the data in column C and move it underneath the data in column B, then take that data and move it underneath the name data in column A.
Side note: The third address lines did have a comma between the city and state, but I have already gone through and removed them, since I know that the file will not export correctly with a comma in the data in a .csv file.
Using Excel 2010 on Windows 7.
Assign the formula into cell C1, you can use =CONCATENATE(A1,CHAR(10),B1) or =A1&CHAR(10)&B1
Copy cell C1 and paste it for all required rows in C column
Right click on C column header and choose Wrap Text
Adjust the size of C column so that all lines shown in full
If you save in CSV, you will be asked to confirm features not compatible. If you agree, you need to repeat step 3 two times (Unwrap then Wrap it again) and step 4 if you open this file again. The formula will be gone. I suggest to save in either xls or xlsx format.

Resources