I am trying to highlight duplicate addresses that share the same date.
I have tried these formulas in Conditional Formatting but they did not work.
=IF(SUMPRODUCT(--(A:A=A1),-(B:B=B1))=-1,"No Duplicate","Duplicate")
=COUNTIFS($A$1:$A$21,A1,$A$1:$A$21,"<>",$B$1:$B$21,B1,$B$1:$B$21,"<>")>1
If you could also explain what the formula is doing would be awesome.
Thanks a lot.
Use the 2nd formula but change $A$1 to $A$2, $B$1 to $B$2, A1 to $A1 and B1 to $B1.
=COUNTIFS($A$2:$A$21,$A2,$A$2:$A$21,"<>",$B$2:$B$21,$B2,$B$2:$B$21,"<>")>1
Another option:
=SUM(($A2=$A$2:$A$10)*($B2=$B$2:$B$10))-1
Related
I have a spreadsheet which I want to: E2=C3-C2, then E3=C5-C4, E4=C7-C6 etc for lots of cells:
So I am looking for a formula which I can drag down which minuses values in pairs rather than consecutively.
I tried SUM(OFFSET) but only added values, not minus.
Any help greatly appreciated!
If you must use a formula in E2, then try:
=INDEX(C:C,ROW()*2-1)-INDEX(C:C,ROW()*2-2)
Your idea of using OFFSET can be made to work. In E2 put
=OFFSET($C$1,2*ROW()-2,0)-OFFSET($C$1,2*ROW()-3,0)
and copy down.
So here is what I am looking for:
I want to highlight several cells, such as A1:A5 need to turn red based on a conditional format formula.
The conditional format for A1 would be:
=((A1/B1)<C1)
If true the cell turns red. Note C1.
The conditional format for A2 would be:
=((A2/B2)<C1%)
If true the cell turns red. Note it is still C1.
So here is the obvious question; how can I copy and paste this conditional formatting so that C1 does not change so that I can have only 1 rule vs 5?
I cannot cause a comment to solve the question. So, all credit goes to Scott Craner.
=((A2/B2)< C $1)
At the point in time i asked this, i did not know the function of $. Thank you!
I have this forumula on Sheet1 in Cell A1:
=SUMIF(Sheet2!$F:$F,L$11,Sheet2!$L:$L)
As I drag this down to A2,A3, etc... However I need the $L:$L to move across columns as I drag down to reference $M:$M in A2 and $N:$N in A3... etc.
Please Help! I've tried the indirect, index, and offset and have not been able to get anything to work successfully.
Thanks!
Give the following a try in A1 and drag it down.
=SUMIF(Sheet2!$F:$F,L$11,OFFSET(Sheet2!$L:$L,0,row()-1))
I have this formula:
=IF(INDIRECT("summary!a2")="","",INDIRECT("summary!a2"))
.. this will retrieve the value of the a2 cell in the summary sheet.
What i want to know is what can i do on this formula to allow the value a2 to change to a3/a4/a5 etc.. when dragged down the sheet .
Can anyone give me a hint here?
Thanks
Try: =IF(INDIRECT("summary!a"&ROW(A2))="","",INDIRECT("summary!a"&ROW(A2))) - applicable for drag down)
If you use CELL function you can also drag down and across, e.g.
=INDIRECT("Sheet2!"&CELL("address",A1))
I have a need to do some conditional formatting based off other cells.
Basically I need it to do:
If cell contains yes, use the formatting of cell A1
If cell contains no, use the formatting of cell B2
I managed to do this by adding a reference cell
=IF(SearchMultipleTbl($B21,E$20,Overview!$C$2:$XY$82)="Yes",VLOOKUP(E$20,Overview!$C$3:$E$961,3,FALSE)="On Hold",FALSE)
The SearchMultipleTbl looks for the answer, if it is yes it uses the Vlookup of a reference cell
I don't know exactly what you are looking for but this should help.
=IF(A2="yes","true","false")
If A2 is yes then use the first condition, otherwise the second.
Hope this helps.