Compare column A and Column C and then if match found then update Column D with Column B - excel-2010

Please can anyone help out me doing this ?
I have four column. Column A, B, C, D, E and F
Need to compare Column A with Column C (not in sequence/ order)
If match found, first compare Column B with Column D - Then Match or Not match in Column E
If it is Not match, update the value from Column B to column F
.
Id(1) Status Id Status Match/ Not match Updated status
29583 Closed 26298 Closed ? (from column B)
29926 Closed 30417 New
29912 Closed 30419 Closed
29837 Closed 29011 Closed
30293 New 29575 New
29581 New 29353 New
Thank you very much.

The Match/Not Match column can contain something like this:
=IF(A1=C1, IF(B1=D1, "Match", "Not Match"), "Not Match")
In column F you can put something like this:
=IF(E1="Not Match", B1, "")
You can then just copy this formula to the rest of the column.

Related

Check if a value is duplicate in a group of values in Google Sheets

I have a table where I have many rows with their ids in groups of 2, and another column with one value associated that can be there ("X" value) or not:
ID
Flag_value
A
X
A
B
X
B
C
C
X
D
X
D
X
What I want to do is to check if there are any cases where the X value is associated to the same ID twice. In this case, this only happens for D (both of the ids have an "X"), but not for A,B or C. Having a lot of rows, is there a way of doing this with a formula? Many thanks in advance!
You may try:
=unique(filter(A2:A;map(A2:A;lambda(z;countifs(B2:B;"X";A2:A;z)))>1))

Google sheets - format a column by comparing values with another

I have a google sheet with 2 columns, one has unique values the other one a list of several values;
I need to know if all the values of my first column are somewhere in the second one
Thank you
Column A
Column B
A
A, B, C
B
D, E, F
D
G,R, Y
I tried with =COUNTIF(FILTER(B:B,A:A=ROW(A:A)),C:C) > 0
But I can't manage to write this formulae correctly
I expected the column A to be green if the value exists in column B
With REGEXMATCH you'll be able to find the value in the next column. Try with:
=REGEXMATCH(B1,A1)*(A1<>"")
OPTION 2
Above was to checking if it appears in the corresponding row. To check the entire column with more than one value per row:
=REGEXMATCH(TEXTJOIN(",",1,B:B),A1)*(A1<>"")

In Google Sheets, how can I find the value in a column of a row when you know the lookup column name and result column name?

I have a Sheet1 with data like this:
one
two
three
four
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
I have Sheet2 with data like this:
alpha
value
c
k
g
c
For each row in Sheet2, I want to look up Sheet2.alpha in Sheet1.three and return the value of Sheet1.one. I want to do this by putting an array formula in B2.
So, the expected result is:
alpha
value
c
a
k
i
g
e
c
a
I can use the new Google Sheet formulas they just released -- except named ranges. I feel like there is some clever trick using them, but I can't come up with it.
BYROW() and XLOOKUP() are your friend in this case.
=BYROW(A2:INDEX(A2:A,COUNTA(A2:A)),LAMBDA(x,XLOOKUP(x,Sheet1!C2:C,Sheet1!A2:A,"Not Found")))

Google Sheets - Get value of column C to be placed in column B if value in column A is present in column D

As the title says, I need to get the value of column C to be placed in column B if the value in column A is present in column D.
Column A contains Jira project names, column D contains the same list of names but mixed up with other project names, and column C contains the dates in which the projects in column D have been last updated.
I need the projects in column A to get the date present in column C if they match their names with the projects in column D
I found a similar question here, but this person needed to print "found" if there was a match. I need the date to be printed in column B if there is a match.
Thanks in advance
Adding an image: In red I marked the matching project names in columns D and A. In green I marked the date I need to get. The desired output is the date in blue (taken from column C), added to column B, that is placed next to the matching project name in column A.
use in B1:
=ARRAYFORMULA(IFNA(VLOOKUP(A1:A, {D:D, C:C}, 2, 0)))

Formula for summation on amount of equal column values

Given a spreadsheet with two columns, say A and B, each containing n values under it, all text; is there a formula that allows me to fill just one cell containing the amount of equal values in columns A and B?
Example:
A B
-----
1 M M
2 L M
3 L L
4 M M
5 M L
-----
3
Since columns A and B both contain an M in rows 1 and 4, and an L in row 3, the result is (i.e. 2+1).
A simple solution is to use QUERY function in google spreadsheet:
=SUM(QUERY(A1:B5, "Select 1 where A = B"))
Or using SUMPRODUCT:
=ARRAYFORMULA(SUM(((A:A)=(B:B)) * (1) ))
One of possible solution will be to add the following formula in column C: =N(EXACT(A1,B1)),
copy it throughout the column down to the last row and then sum up the column C values using =SUM(C1:C5).
Here we go:
=IF(EQ(LEFT(A0, 1), "A"),
SUM(ARRAYFORMULA(N(EXACT(TRANSPOSE(A1:A5), TRANSPOSE(B1:B5))))),
"")
Reading: if the value in row 0 (it doesn't exist, but my example above does ;) ) is equal to the text "A", take the sum of an array N, otherwise put in an empty string. ("")
Array N is build by taking the transpose of columns A and B. (Turning them, so they look like a row) and comparing the values. (Burnash gave me the options "N" and "EXACT") The formula N transforms this into a 1 or 0.
Copy paste the formula in an entire row and what do you know... It worked! That was hellish for something so trivial.
Thanks anyway.

Resources