Dear All,
I really need help, thanks in advance first.![]()
Following is part of my formula ( still have more):
=IF(C4="A",VLOOKUP(A4,'Emp List'!A:B,2,0),"")&IF(C4="B",VLOOKUP(A4,'Emp List'!A:C,3,0),"")&IF(C4="C",VLOOKUP(A4,'Emp List'!A:D,4,0),"")&IF(C4="D",VLOOKUP(A4,'Emp List'!A:E,5,0),"")&IF(C4="E",VLOOKUP(A4,'Emp List'!A:F,6,0),"")&IF(C4="F",VLOOKUP(A4,'Emp List'!A:G,7,0),"")&IF(C4="G",VLOOKUP(A4,'Emp List'!A:H,8,0),"")&IF(C4="H",VLOOKUP(A4,'Emp List'!A:I,9,0),"")&IF(C4="I",VLOOKUP(A4,'Emp List'!A:J,10,0),"")&IF(C4="J",VLOOKUP(A4,'Emp List'!A:K,11,0),"")&IF(C4="K",VLOOKUP(A4,'Emp List'!A:L,12,0),"")&IF(C4="L",VLOOKUP(A4,'Emp List'!A:M,13,0),"")&IF(C4="M",VLOOKUP(A4,'Emp List'!A:N,14,0),"")&IF(C4="N",VLOOKUP(A4,'Emp List'!A:O,15,0),"")&IF(C4="O",VLOOKUP(A4,'Emp List'!A:P,16,0),"")&IF(C4="P",VLOOKUP(A4,'Emp List'!A:Q,17,0),"")&IF(C4="Q",VLOOKUP(A4,'Emp List'!A:R,18,0),"")&IF(C4="R",VLOOKUP(A4,'Emp List'!A:S,19,0),"")
I tried nested condition, but only can up to 7 levels, hence i try this formula but cause my formula too long.
Is there a way to shorten it?
The working is C4 is the drop down list, and If C4 = a, then will use A vlookup formula, if C4 is B , then will use B vlookup formula and etc.
Pls try to help`~
Many Many Many Tks
Asyura
Bookmarks