Solved

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

Posted on 2014-11-03
3
323 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Working with spreadsheets can be a daunting task, especially when having to deal with large amounts of data. All you see are rows and rows of numbers and soon your eyes begin to glaze over. Take advantage of the tools in Google Sheets to create prof…
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 will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.

743 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

12 Experts available now in Live!

Get 1:1 Help Now