/docs/community?hl=en
This content is likely not relevant anymore. Try searching or browse recent questions.
Remove row based on 2 column value on google sheet
1
Hello
So i have 3 column with multiple row. For example 
Col a, col b, col c
A,b,1
A,c,1
A,b,4

Since row 1 and 3 have the same value (a and b) i would like to remove the first one

Been trying to solve this for hours and hope i can get enlightment here

Thanks
Details
Pinned
Locked
Latest Update Latest Updates (0)
Relevant Answer Relevant Answers (1)
Relevant Answer
Hi, Viktor Iwan Kristanda,

Try this formula.

=query(sortn(sort({A1:C,A1:A&B1:B, row(A1:A)},5,0,1,1,2,1),9^9,2,4,1),"Select Col1,Col2,Col3 where Col4 is not null")



Best,

Prashanth KV
marked this as an answer
0
All Replies (4)
Relevant Answer
Using formula is great but using script would be fine... I am trying to understand using filter in script but no luck till now
marked this as an answer
Relevant Answer
Hi Viktor Iwan Kristanda,
 
We would like to help you with this but because there are so many variables that can affect your results, we need to see a sample of your problem.  Would you please take a look at this post about Best Practices When Asking a Question and share a sheet that has the permissions set for “Anyone with link can EDIT”?  Thanks!
 
Adam
Diamond PE Docs volunteer
Silver PE Classroom volunteer
Cert. Educator 1 & 2
Cert. Trainer
(not a Google employee)
 
When you've received a response that answers your question, please observe these forum courtesies:
 • If you had a Sheets problem, leave your demo sheet shared as View Only as part of this solution's archive,
 • Click Recommend on the post that best addressed your question, and
 • Post again soon!
marked this as an answer
Relevant Answer
I made a post with the Editable Sheet before, but somehow my post flaged as breaking term of policy. I don't know why because there's no reason and hope one of community manager can help me the reason....

marked this as an answer
Relevant Answer
Hi, Viktor Iwan Kristanda,

Try this formula.

=query(sortn(sort({A1:C,A1:A&B1:B, row(A1:A)},5,0,1,1,2,1),9^9,2,4,1),"Select Col1,Col2,Col3 where Col4 is not null")



Best,

Prashanth KV
marked this as an answer
This question is locked and replying has been disabled.
Discard post? You will lose what you have written so far.
Write a reply
10 characters required
Failed to attach file, click here to try again.
Discard post?
You will lose what you have written so far.
Personal information found

We found the following personal information in your message:

This information will be visible to anyone who visits or subscribes to notifications for this post. Are you sure you want to continue?

A problem occurred. Please try again.
Create Reply
Edit Reply
This will remove the reply from the Answers section.
Notifications are off
Your notifications are currently off and you won't receive subscription updates. To turn them on, go to Notifications preferences on your Profile page.
Report abuse
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
Report post
What type of post are you reporting?
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
This reply is no longer available.
/docs/threads
//accounts.google.com/ServiceLogin
You'll receive email notifications for new posts at
Unable to delete question.
Unable to update vote.
Unable to update subscription.
You have been unsubscribed
Deleted
Unable to delete reply.
Removed from Answers
Removed from Updates
Marked as Recommended Answer
Marked as Update
Removed recommendation
Undo
Unable to update reply.
Unable to update vote.
Thank you. Your response was recorded.
Unable to undo vote.
Thank you. This reply will now display in the answers section.
Link copied
Locked
Unlocked
Unable to lock
Unable to unlock
Pinned
Unpinned
Unable to pin
Unable to unpin
Marked
Unmarked
Unable to mark
Reported as off topic
Known Issue
Fixed
Marked Fixed
Unmarked Fixed
Unable to mark fixed
Unable to unmark fixed
/profile/0
false
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
35
false