Thanks in advance for everyone for helping me out, Please Help me out in Catching following pair of data.
Suppose I have a sheet that has two column, There are some rows which exactly match with other rows as shown in the image.
Example of Duplicate Rows (pair of column)
In the Image Hi PRANAV, and HELLO BRINDA pair of column appear twice, I just want to hightlight them with red colour.
Please suggest me some Conditional formating code if possible.
Thanks
I tried highlighting duplicates but It worked for a column only.
You can use COUNTIFS. If it returns more than 1, then it's a duplicate:
=COUNTIFS($A$2:$A,$A2,$B$2:$B,$B2)>1
Related
I want to know which values in column A do NOT appear anywhere in column B. Right now I have conditional formatting to highlight those cells, but I'd love to have a listing of the values in another column so that I don't have to manually go through and pull the values myself.
Sample sheet is here.
try:
=FILTER(A2:A, NOT(COUNTIFS(B2:B, A2:A)))
I'm pretty sure this should do it. I put it in your sheet.
Update, sorry I misread first time.
=FILTER(A2:A,ISERROR(MATCH(A2:A,$B:$B,FALSE)))
Beginner here who just started building a spreadsheet to track different stocks.
I can't seem to get conditional formatting to work on certain columns.
Here's an example: https://docs.google.com/spreadsheets/d/1chW8URH3S4P_AGOfPr7oKmeqWApUWVBTwCgu0XtmuyA/edit#gid=0
Column C works fine, column B doesn't.
How can I get it to work?
Thanks in advance!
It isn't working because the values in column B aren't numbers - although they look like numbers, they are actually text. You could try converting them to numbers like this - you need the Iferror because the hyphens will produce an error when it tries to convert them.
=IF(ISBLANK(A2),,iferror(--SUBSTITUTE(INDEX(QUERY(IMPORTHTML("https://www.finviz.com/quote.ashx?t="&A2, "table", 8),"select Col4"),6),"*",""),"-"))
Can the following formula be simplified as described in the paragraph below it?
=(ABS(D$3-D5)+ABS(E$3-E5)+ABS(F$3-F5)+ABS(G$3-G5)+ABS(H$3-H5)+ABS(I$3-I5)+ABS(J$3-J5)+ABS(K$3-K5))/-1
The problem is that I don't know how many columns I'm going to end up with, and I certainly don't want to continue manually writing each column into the formula. Is there I way to simplify this formula so that every column in a row is calculated?
I've been trying various formulas to no avail, and I can't get usable results via Google searches. I suppose I don't know how to effectively word the question without writing a paragraph.
Thanks, in advance!
Try this one:
=-SUM(ARRAYFORMULA(ABS(D$3:$3 - D5:5)))
GOT IT:
=ArrayFormula(SUM(ABS(D$3:$3-D5:5))/-1)
I'm trying to create a simple sort feature in Google Sheets by having data validation drop-down lists and using an array of queries. I can get it to work but if a row matches more than one of the data validation drop down lists, then it will appear twice in the array.
I have tried using vlookup instead but don't really understand how that works as I can only find very specific examples. I have tried using "=ARRRAYFORMULA" and putting my queries inside there but that does not solve the issue either.
My cell currently is
={ IF(NOT(ISBLANK(B2)),
QUERY('App Data Sheet'!1:1006, " select * where B = '"&B2&"'", 0), "");
IF(NOT(ISBLANK(C2)),
QUERY('App Data Sheet'!1:1006, " select * where C = '"&C2&"'", 0), "")
}
where B2 and C2 are data validation cells in the active sheet.
You can view my Query Sheet here: https://docs.google.com/spreadsheets/d/1AgvDIjmn2tv9_zKj7o5MPYZ9CdX9mZ_tM66n5jp5NEY/edit?usp=sharing
I currently only have two drop-down lists but will want to add more later once I figure out the duplicates issue.
EDIT:
I know that you can use countif to see if there are duplicates in a range but I do not how to enter that into my code to prevent it from showing.
EDIT2:
Well, I figured it out. I simply needed to encapsulate my formula inside a =UNIQUE() function that I had not known about before. Hopefully, this post will still help someone else out.
Well, I figured it out. I simply needed to encapsulate my formula inside a =UNIQUE() function that I had not known about before. Hopefully, this post will still help someone else out.
Googling using the proper words is what made a big difference in finding a solution. Instead of saying that I wanted to prevent duplicates, I searched to only show unique rows.
I'm an enthusiastic novice working on a Google sheet. I realise this formula isn't pretty and there's probably a better and more logical way to do this. The formula I'm trying to use works in as much as it filters the correct rows I want, but I can't get them displayed in the order I want.
This works for the filter part...
=(FILTER(LBACCsV2!N11:AR,LBACCsV2!O11:O="I",(LBACCsV2!S11:S="MQ1")+(LBACCsV2!S11:S="MQ2")+(LBACCsV2!S11:S="MQ3")+(LBACCsV2!S11:S="MQ5")+(LBACCsV2!S11:S="MQ6")+(LBACCsV2!S11:S="MQ7")))
But, I want to sort by Column LBACCsV2!AB which is column 15. If I adapt the formula with SORT like this...
=SORT(FILTER(LBACCsV2!N11:AR,LBACCsV2!O11:O="I",(LBACCsV2!S11:S="MQ1")+(LBACCsV2!S11:S="MQ2")+(LBACCsV2!S11:S="MQ3")+(LBACCsV2!S11:S="MQ5")+(LBACCsV2!S11:S="MQ6")+(LBACCsV2!S11:S="MQ7"),15,TRUE))
It doesn't work and I get an error message which says...
"Error
FILTER has mismatched range sizes. Expected row count: 1013, column count: 1. Actual row count: 1, column count: 1."
Please don't shoot me down, as I said, I'm a novice who didn't what a spreadsheet was a while ago. Any help warmly appreciated, thanks.
I think you may have a misplaced closing bracket. The two parameters of the sort function appear INSIDE the filter function. Try
=SORT(FILTER(LBACCsV2!N11:AR,LBACCsV2!O11:O="I",(LBACCsV2!S11:S="MQ1")+(LBACCsV2!S11:S="MQ2")+(LBACCsV2!S11:S="MQ3")+(LBACCsV2!S11:S="MQ5")+(LBACCsV2!S11:S="MQ6")+(LBACCsV2!S11:S="MQ7")),15,TRUE)