Solved

Google sheets script to remove duplicates and output to a text file.

Posted on 2014-11-03
3
333 Views
Last Modified: 2015-03-02
Hi,

I currently have a macro in excel that remove all duplicates in one column (A1 to the end of the records) and then outputs this to a text file in one column.

The company I work for has moved from Microsoft to excel to google sheets. Is there a way of doing this with google scripts?

Many thanks
0
Comment
Question by:luketr
  • 2
3 Comments
 
LVL 17

Assisted Solution

by:selvol
selvol earned 500 total points
ID: 40419287
HAve you seen this ?

https://support.google.com/docs/answer/181254?hl=en



Sort a spreadsheet

You can sort a range of cells according to rules set for one or more columns. To sort your data, follow these steps:

Highlight the group of cells you'd like to sort. To sort the entire sheet, click the top left corner of the sheet to select all cells.
From the Data menu, select Sort range...
Check Data has header row if your columns have titles.
Select the column you'd like to be sorted first and whether you would like that column sorted in ascending or descending order.
Click +Add another if you'd like another sorting rule added. Sorting will be prioritized according to the order of your rules.
Click the X to the left of your rule to eliminate it.
Click Sort and your range will be sorted.

Selvol
0
 

Author Comment

by:luketr
ID: 40419293
Thanks for that but I need to output the data to a text file.
0
 
LVL 17

Accepted Solution

by:
selvol earned 500 total points
ID: 40419306
I do apologize, I read the ? incorrectly.

I have used the "add on" here.

http://goo.gl/wHBySu

After sorting cant you just copy and paste into a txt file?

Selvol
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
I send mail from mail.onplay.vn, gmail reject my message 5 193
how to fix the excel 3 100
Google Calendar Gone 4 47
JavaScript check IF number exists THEN ... 9 96
There are many add-ons for Google docs, slides and sheets that can be extremely helpful in keeping your files organized and simple to use. Add-ons are installed into your Google docs, slides or sheets through Google's Add-On Store. One of my favorit…
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial will demonstrate how to use comments in Google Docs. You will learn how to create, edit, and delete a comment.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now