A
abc2002
Hi, this is my first post. I hope that you can help me with my problem.
Explanation:
I have 2 sheets:
-Sheet1
-Sheet2
Sheet1 contains theses columns:
C Type: Text
D Type: Text
E Type: Text
G Type: Text
I Type: Date
Sheet2 contains theses columns:
A Type: Text
C Type: Text
B Type: Text
M Type: Text
F Type: Date
In the sheet2 in the Cell O4, I want to know if the value of A4, C4
B4, M4 are in Sheet1 and the Date difference of F4 is less or equal
days...
**********
So I want to know if some values of the row 4 (Sheet2) match to
SPECIFIC row in Sheet1. In another words, I want to check if the row
of Sheet2 are in Sheet1.
**********
Here is the Array Formula in O4 (Sheet2):
=IF('Sheet1'!$C$2:$C$738=$A4,
IF('Sheet1'!$D$2:$D$738=$C4,
IF('Sheet1'!$E$2:$E$738=$B4,
IF('Sheet1'!$G$2:$G$738=$M4,
IF(IF(ISERROR(DATEDIF('Sheet1'!$I$2:$I$738,$F4,"d")),
DATEDIF($F4,'Sheet1'!$I$2:$I$738,"d"),
DATEDIF('Sheet1'!$I$2:$I$738,$F4,"d"))<=3,1,0)))))
Same formula with comments:
=IF('Sheet1'!$C$2:$C$738=$A4, //If true another if...
IF('Sheet1'!$D$2:$D$738=$C4, //If true another if...
IF('Sheet1'!$E$2:$E$738=$B4, //If true another if...
IF('Sheet1'!$G$2:$G$738=$M4, //If true another if...
//The date diff could be 3 days before or after the date in F4
IF(IF(ISERROR(DATEDIF('Sheet1'!$I$2:$I$738,$F4,"d")),
//Date in F4 is before the date in the sheet1...
DATEDIF($F4,'Sheet1'!$I$2:$I$738,"d"),
//Date in F4 is after the date in sheet1...
DATEDIF('Sheet1'!$I$2:$I$738,$F4,"d")
//If the result of DateDif is 3 or less, then I want to display a wor
in the cell...
)<=3,"OK","NO")))))
I always get FALSE in the cells???
Could you explain to me what is wrong in my function?
Thank
Explanation:
I have 2 sheets:
-Sheet1
-Sheet2
Sheet1 contains theses columns:
C Type: Text
D Type: Text
E Type: Text
G Type: Text
I Type: Date
Sheet2 contains theses columns:
A Type: Text
C Type: Text
B Type: Text
M Type: Text
F Type: Date
In the sheet2 in the Cell O4, I want to know if the value of A4, C4
B4, M4 are in Sheet1 and the Date difference of F4 is less or equal
days...
**********
So I want to know if some values of the row 4 (Sheet2) match to
SPECIFIC row in Sheet1. In another words, I want to check if the row
of Sheet2 are in Sheet1.
**********
Here is the Array Formula in O4 (Sheet2):
=IF('Sheet1'!$C$2:$C$738=$A4,
IF('Sheet1'!$D$2:$D$738=$C4,
IF('Sheet1'!$E$2:$E$738=$B4,
IF('Sheet1'!$G$2:$G$738=$M4,
IF(IF(ISERROR(DATEDIF('Sheet1'!$I$2:$I$738,$F4,"d")),
DATEDIF($F4,'Sheet1'!$I$2:$I$738,"d"),
DATEDIF('Sheet1'!$I$2:$I$738,$F4,"d"))<=3,1,0)))))
Same formula with comments:
=IF('Sheet1'!$C$2:$C$738=$A4, //If true another if...
IF('Sheet1'!$D$2:$D$738=$C4, //If true another if...
IF('Sheet1'!$E$2:$E$738=$B4, //If true another if...
IF('Sheet1'!$G$2:$G$738=$M4, //If true another if...
//The date diff could be 3 days before or after the date in F4
IF(IF(ISERROR(DATEDIF('Sheet1'!$I$2:$I$738,$F4,"d")),
//Date in F4 is before the date in the sheet1...
DATEDIF($F4,'Sheet1'!$I$2:$I$738,"d"),
//Date in F4 is after the date in sheet1...
DATEDIF('Sheet1'!$I$2:$I$738,$F4,"d")
//If the result of DateDif is 3 or less, then I want to display a wor
in the cell...
)<=3,"OK","NO")))))
I always get FALSE in the cells???
Could you explain to me what is wrong in my function?
Thank