Dazzybeeguy
Board Regular
- Joined
- Jan 6, 2022
- Messages
- 118
- Office Version
- 365
- 2010
- Platform
- Windows
I need a formula that if cell c4 is populated than it looks up the value in Cell C4 in worksheet 2 (called Data2) say column A:A and I want it to give the value in worksheet 2 column M:M, if the value is not in the Data2 worksheet I want it to return "Ref Not found"
So a lookup works fine, however if the value in C4 is not there it gives #N/A
So both of the formulas I tried give the #N/A result if there is a value in C4 but it is not in the Data2 worksheet =IF(C4>0,VLOOKUP(D4,Data2!A2:N9999,14,FALSE),"")
I tried =INDEX(Data2!M:M,MATCH(D4,Data2!A:A,0))&" Last Comment - "&INDEX(Data2!N:N,MATCH(D4,Data2!A:A,0)) but still get #N/A if the value in C4 is not in the other worksheet
Thanks
So a lookup works fine, however if the value in C4 is not there it gives #N/A
So both of the formulas I tried give the #N/A result if there is a value in C4 but it is not in the Data2 worksheet =IF(C4>0,VLOOKUP(D4,Data2!A2:N9999,14,FALSE),"")
I tried =INDEX(Data2!M:M,MATCH(D4,Data2!A:A,0))&" Last Comment - "&INDEX(Data2!N:N,MATCH(D4,Data2!A:A,0)) but still get #N/A if the value in C4 is not in the other worksheet
Thanks