Solved

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

Posted on 2014-11-03
3
338 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
This Micro Tutorial demonstrates in Google Analytics how to create a custom report that shows you traffic over time using the month of year dimensions. There are also instructions on how to fix Google's odd month of year formatting, which Microsoft …
This Micro Tutorial demonstrates how to create custom reports and the secrets of determine the metrics and dimensions for your data that works best with your needs.

830 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