Hi im looking to for help!
IF column A matches column B AND at the same time if column C matches column D; Then return the difference from column E to F and place number in column G
can anyone please help?
Please try in G1:
=IF(AND(A1=B1,C1=D1),F1-E1,"")
copied down to suit.
Related
I am trying to see if I am able to get the hours from one column only if it matches a word that is another column.
For example in the sheet link attached, if the word is Operations (Column A) I want to get the sum of all the hours (Column B) that correlate with that word.
https://docs.google.com/spreadsheets/d/1-1QCZsNTZ5xDcDryv8qg0YPtsoY3Erjz7ZNGUXds7HY/edit
Hope this makes sense.
Thanks in advance.
you can use:
=SUM(IFNA(FILTER(B:B,A:A=E1)))
OR
=SUMIF(A:A,E1,B:B)
Cell E1 has the word selection in the sample here
I have searched as much as I can, and I have found solutions for similar problems, but I haven't been able to find a solution to my exact problem.
Issue: I would like to highlight the row when one cell in column A of that row is an exact match for another cell in that column, AND part of another cell in column B of that row is a match for part of another cell in that column, in Google Sheets. I would like to use conditional formatting, and only highlight the second occurence and on.
For example, is this "sheet":
A B C
1|John Smith|john#test.com|Test Co.
2|Jane Doe |jane#x.com |X Company
3|John Smith|j.s#test.com |Test Inc.
4|John Smith|jsm#test.com |Test Incorporated
I would like row 3 and row 4 to highlight, because column A3 is a duplicate of A1, and everything in B3 after # matches everything in B1 after #, and the same is true of row 4. Also, only rows 3 and 4 should highlight; not row 1, since it is the first instance. I understand regexes, and I've found how to highlight a row if one cell in column A and one cell in column B is an exact match with other cells is their respective columns, but I haven't figured out how to combine the two where I can search for one cell that is an exact match with another cell in that column AND for one cell that is a partial match with another cell in that particular column. Here is a link to a test sheet that contains the sample info from above. https://docs.google.com/spreadsheets/d/1neZd213C1ssY7bPeBfu2xI3WPCmt-oKkfbdrXrid9I8/edit?usp=sharing
use:
=INDEX(COUNTIFS($A:$A®EXEXTRACT($B:$B, "#.+"), $A1®EXEXTRACT($B1, "#.+"),
ROW($A:$A), "<="&ROW($A1))>1)*(A:A<>"")
Try the following custom formula applied to A1:C:
=index((countif($A$1:$A1,$A1)>1)*
(countif(regexextract($B$1:$B1,"#(.*)"),
regexextract($B1,"#(.*)"))>1))
I wanted to know how to match a string between the column. For ex:
A. B. C. D. E. F.
1. 2. 3. 4. 5. 6
In above example let Alphabet be column name and digits are considered as values in the column.
So, i want to match Column A , Value 1 and Column E , Value 5. Values in Column A and E is different.
I'm using something like (A + '.*' + E)
To get something like - 1. 5.
Any help is really appreciated.
Thanks, :)
Why not just use dictionaries?
>>>dic = {'A': 1, 'B': 2}
>>>print(dic[A])
1
I hope this helps.
I have read the other questions regarding Vlookup. I have my formula, but it is not working. I have a column of Zip-Codes in column e. I want to look for a matching zip-code in column m and then replace it with the county in column n. Please can you help me? Here is the formula:
=VLOOKUP(E2:E7807,M2:N962,2,false).
I have also tried using just 1 cell (E2) at the beginning of the formula instead of a range (E2:E7807).
Try below in the first cell.
=VLOOKUP(E2,$M$2:$N$962,2,false)
and copy and paste this cell in all required range of cells.
I want to use columns 'A' and 'B' to create column 'Result' which is content of A repeated B number of times
A B Result
z 3 zzz
az 2 azaz
Tried using Result=repeat(A,B) which didn't work out. Is there something I missed while using the repeat statement?
The REPEAT function returns a character value consisting of the first argument repeated n times, Thus, the first argument appears n + 1 times in the result.
So, you have to subtract 1 from B to get the result that you want.
Try
Result=repeat(A,int(B)-1)
It is simple in R! . Sorry I did not look for the tag, but here is how R does it
Try the function makeNstr() from package Hmisc
>require(Hmisc)
>df <- data.frame(A = c("a","az"), B = c(3,2))
>Result <- makeNstr(df$A,df$B)
>df <- cbind(df,Result)
>df
A B Result
1 a 3 aaa
2 az 2 azaz
Hope you find it useful