Skip to main content

How To Remove Single Quote In The Exported CSV/XLSX Files

Remove unwanted single quotes from exported CSV and XLSX files to ensure your data is clean and ready for further processing.

Written by Ridho Alamsyah

When exporting data in CSV or XLSX format from various menus in DealPOS, you may notice that some cells or columns in the exported file contain a single quotation mark ('). This quotation mark usually appears when the data in a cell begins with 0 or contains a very long sequence of digits. It helps prevent Excel from automatically changing the data format or value.

However, in some cases, the quotation mark may cause the displayed data to be incorrect because the quotation mark is included as part of the cell content. Therefore, before processing the data, you may need to remove the quotation marks from those cells.

To remove quotation marks from a CSV or Excel file, you can use the formula explained in the guide below.


Step 1. Try to export csv or xlsx file from any menu in DealPOS

For example, we exported data from the All section of the Fulfillment menu. In the exported file, some cells in the Number column contain a single quotation mark (') at the beginning of the value.

Export

The quotation mark appears because some of the numbers contain a large number of digits (more than 12 digits).

Step 2. Insert new column besides the Number column

New column
New column

Step 3. Use a formula in the new column

Use this formula in the new column:

=SUBSTITUTE(C2,"'","")
Formula

Notes: The formula depends on the column containing the data. In this example, the formula refers to cell C2 because the single quotation mark is being removed from the values in Column C.

Step 4. Drop down the formula in the new column

Drop the formula

Step 5. Copy the column and paste as value in the Number column

Copy as value

Step 6. The single quotation mark has now been removed.

Single quotes removed

Step 7. Remove the inserted column and save the file

The Number column no longer contains single quotation marks, so you can now process the required data in this file.

Remove column

Related Articles


DealPOS is an online point-of-sale (POS) application specifically designed for retail businesses in categories like Fashion, Minimarkets, Electronics, Fresh Food, and Building Material Stores.

With DealPOS, you can manage both online and offline store inventory in real-time on a single platform. You can also sell through omnichannel (offline and online) as DealPOS integrates with marketplaces (Shopee, Tokopedia, TikTok Shop, Lazada) and instant web stores (Shopify and WooCommerce).

For more detailed financial book-keeping, Books App is available as a separate accounting application. In addition, stock counting becomes easier with the DealPOS Scanner App, which supports barcode and RFID scanning features.

dealpos-trial-indonesia
Did this answer your question?