Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

Delimeter in excel to handle a specific scenario

Hi All,

I have an excel as this

name,age,www.google.com/somename/something,name,www.EXcert.com/whateveryurl/somename,extension

The last column has some URL's which has a coma , in the URL and when i delimit the link gets broken

www.EXcert.com/whateveryurl/somename,extension

into
www.EXcert.com/whateveryurl/somename and  this in next column extension

anyway i can handle this scenario?
Avatar of mark_harris231
mark_harris231
Flag of United States of America image

Presumably, you're opening a CSV file in Excel?  Is this a one-time project or on-going?  Do you have any control over the format of the source file?  If yes, then you could encapsulate the URL within double-quotes:

"www.excert.com/whateveryurl/somename,extension"

The double-quotes would cause Excel to ignore the comma in the URL.

If you don't have control over the source file, you would need to either A) modify the source file, either manually in a text editor or via batch, or B) modify the spreadsheet post-import.

If the data is being imported beginning in Column A, you may bea able to use this formula in Column F, then copy down as far as needed:

=D1&E1

This does mean you'll end up with a couple of redundant columns (D&E).  You could copy/past special>values in Column F, then delete Column D & E if necessary.  This process would likely not be suitable if this is an on-going process.
Avatar of bsharath

ASKER

1. Its a report that i cannot change

2. I cannot use the formula because when i delimit the content gets overwritten

Its a regular i mean daily requirement
but you could use a macro to do as mark suggested...  If you're interested in going that route I can post the VB code...
Can you clarify your process?

1. What is the native format of the report file?
2. What steps do you take to open the file in Excel?
3. What part/parts of your current process are automate?  (I presume the report file is automically generated daily?)
4. What do you do with the Excel file once in the proper format?
5. How many lines is the typical report file?
ASKER CERTIFIED SOLUTION
Avatar of jsdray
jsdray
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
1. What is the native format of the report file?
The format is csv

2. What steps do you take to open the file in Excel?
Its a csv so just double click

3. What part/parts of your current process are automate?  (I presume the report file is automically generated daily?)

Its a website report and is scheduled to email daily via gmail

4. What do you do with the Excel file once in the proper format?

I need to delimit ad then filter various columns to find issue in data

5. How many lines is the typical report file?

Report as of today has 10 columns and 40K rows and 1K rows are daily increased
jsdray

I get as csv and all the content is in Column A when i open

While i manually delimit the content gets over lapped on the other columns
Not sure why this happens so the data in the last columns turn out wrong
bsharath - can you post a non-sensitive sample of the source file (e.g., 10-20 rows)?