The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Moz Tools
    4. Escape commas in OSE csv export

    Escape commas in OSE csv export

    Moz Tools
    4 3 381
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • zeepartner
      zeepartner last edited by

      Hi

      When I import an OSE Site Crawl .csv to Excel, the lines get messed up. This is due to commas within the crawled site: For instance, when there is a comma in the Meta Description field, it gets separated into two fields. Is there any way to escape this so that only the correct fields get separated?

      Thanks!

      1 Reply Last reply Reply Quote 1
      • TomRayner
        TomRayner last edited by

        Hi Philipp

        I think you can remove the comma separation in excel for your worksheet. Try this guide out (lifted from here)

        Open the worksheet that contains the data from which you want to remove trailing commas.

        Right-click the header of the column directly to the right of the data column that you want to clean. Click "Insert" in the menu to insert a new function column.

        Type the following in the cell in the formula column adjacent to the first data cell:

        =IF(RIGHT(A1,1)=",",LEFT(A1,LEN(A1)-1),A1)

        Substitute the cell address of your first data cell in place of all instances of "A1" in the above example.

        Press "Enter." Excel first determines whether the rightmost value in the data cell is a comma. If so, it determines the number of characters in the cell using the "Len" function and then returns only the leftmost N minus 1 characters, thus omitting the comma. If no comma is detected at the end of the string, then Excel returns the original cell value.

        Right-click the formula cell and click "Copy." Paste the formula into the cell directly to the right of all cells from which you want to clean the commas. Excel will perform the comma-trimming function on all cells and return the update value in the formula column.

        Highlight all formula cells, then right-click the array and choose "Copy."

        Highlight the original data cells, then right-click the array and choose "Paste Special." Click the radio button next to "Values," then click the "OK" button. Excel will copy the output strings from the comma-less formula cells into your original data cells as static character strings.

        Highlight the formula column, then right-click the array and click "Delete" from the menu. This will delete the formula column now that a permanent copy of the formula output has been saved in the original data column.

        Not sure if this will help you, but here's hoping.

        zeepartner 1 Reply Last reply Reply Quote 0
        • zeepartner
          zeepartner @TomRayner last edited by

          Hi Tom

          Thanks for your tip. But my problem is the exact opposite. It's not that I have additional commas. Instead, a comma which appears in the site's content (such as the Meta Desc) and therefore shows up in the Site Crawl .csv, is interpreted as a csv delimiter.

          What happens on importing the .csv is that a sentence containing a comma is split up into two cells.

          IMO this is actually a problem with OSE's export which should make sure that commas are escaped in a .csv!

          1 Reply Last reply Reply Quote 0
          • Peterli
            Peterli last edited by

            Phillip,

            Thanks for writing in!  Just so I could see the problem that you are looking at, could you let me know the reports that you are looking at that you are seeing this issue 🙂  If you could let me know which report you downloaded, I could see if I could replicate this issue!

            Looking forward in hearing from you.

            Peter SEOmoz Help Team.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Questions with OSE CSV Report
              TimKelsey
              TimKelsey
              0
              2
              220

            • Followerwonk csv export
              SEO5Team
              SEO5Team
              0
              2
              550

            • Are the CSV downloads malformatted, when a comma appears in a URL?
              Safelincs
              Safelincs
              0
              3
              322

            • Why does the csv export from OSE only include 25 of the 90+ links?
              DanielH
              DanielH
              0
              7
              502

            • Why has my OSE csv report been finalizing for 3 days?
              Rosewood
              Rosewood
              0
              5
              487

            • CSV export of Open Site Explorer is incomplete.
              KeriMorgret
              KeriMorgret
              0
              2
              761

            • CSV sheets on new OSE not received by email
              blocker0408
              blocker0408
              0
              3
              598

            • OSE Linking Domains CSV Export Blank?
              AlanBleiweiss
              AlanBleiweiss
              0
              3
              1.1k

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy