I have two sheets. I am matching sheet1 A2 value with sheet2 A2 to get Sheet1 C2 Value in sheet2 C2.
In Sheet1, if the number (in Column A) is repeating then it will have (blank) and AW. If the number is not repeating then it will have only (blank).
In Sheet2, if the number (in Column A) is repeating then it will have (blank) and AW. If the number is not repeating then it will have (blank) or AW. Actually (blank) = BY
In sheet1 and sheet2, Repeating values are always adjacent to each other.
Conditions are:
In Sheet1, A2 not repeating & B2 = (blank) then Copy the value and paste to sheet2 in Column C. It could be either BY and AW in Sheet B2. So, paste in both B2 & B3.
- For Eg: In sheet1 A4 &A5 are equal; B4 = (blank); B5 = AW. So take C4 value and paste in Sheet2 both C4 AND C5.(Or the cell where it gets matched)
- For Eg: In sheet1 A16; B16 = (blank). But In sheet2; B16 = AW. So take C16 value and paste in Sheet2 C16.(Or the cells where it gets matched). If both the values are (blank), then no problem.
In Sheet1, A2 repeating & B2 = (blank), A2 = A3, B3 = AW then Copy the value and paste to sheet2 in Column C2 and C3.
- For Eg: In sheet1 A4 &A5 are equal; B4 = (blank); B5 = AW. So take C4 & C5 value and paste in Sheet2 both C4 AND C5.(Or the cells where it gets matched).
Help me. How to change my formula
=IFERROR(INDEX(Sheet1!$C$2:$C$4000; MATCH(1; (Sheet1!$A$2:$A$3000=Sheet2!$A2)*(Sheet1!$B$2:$B$3000=Sheet2!$B2);0));"")
=IFERROR(INDEX(Sheet1!$C$2:$C$4000;MATCH(Sheet2!A2;Sheet1!$A$6:$A$3000;0));"")