G
Guest
I'm pretty new to excel and I'm wondering if anyone can help me.
I want to create a formula so that if A1=1, then F2:F5 are entered into C2:C5, or if A1=2, then G2:G5 are entered into C2:C5, etc. for more values forA1.
Ex:
A B C D E F G
1
2 5 6
3 10 7
4 15 8
5 20 9
I tried
=OR(LOOKUP(1,$A$1,(F2:F5)),(LOOKUP(2,$A$1,(G2:G5))))
but it returns#N/A.
any help would be greatly appreciated.
I want to create a formula so that if A1=1, then F2:F5 are entered into C2:C5, or if A1=2, then G2:G5 are entered into C2:C5, etc. for more values forA1.
Ex:
A B C D E F G
1
2 5 6
3 10 7
4 15 8
5 20 9
I tried
=OR(LOOKUP(1,$A$1,(F2:F5)),(LOOKUP(2,$A$1,(G2:G5))))
but it returns#N/A.
any help would be greatly appreciated.