I am not to sure what you are doing ~ But ~ You have 2 IF's in a sequence without telling the first IF what to do. If you want both G2=1 and at the same time B2=$B$1 you need to use AND as below
=IF(AND(G2=1,B2=$B$1),VLOOKUP(E2,Index,10,FALSE),IF(E2=$B$1,VLOOKUP(B2,Index,9,)),"") Hope that is of some help.
I am not to sure what you are doing ~ But ~You have 2 IF's in a sequence without telling the first IF what to do. If you want both G2=1 andat the same time B2=$B$1 you need to use AND as below=IF(AND(G2=1,B2=$B$1),VLOOKUP(E2,Index,10,FALSE),IF(E2=$B$
(I usually use the OPs method of having nested IFs if I need more than one true. Only posting this in case, for some reason, you didn't know you could do that... although your method is nicer I think)
That's neat CM. (I usually use the OPs method of having nested IFs if I need more than one true. Only posting this in case, for some reason, you didn't know you could do that... although your method is nicer I think)
So you have IF(a=1,(IF b=1.......,middle bracket after comma),final term)
For example. If a=1 then it processes the second IF. If a=1 and b is not =1 then it processes the middle bracket after the comma If a is not =1 then it processes the final term.
So you have IF(a=1,(IF b=1.......,middle bracket after comma),final term)For example. If a=1 then it processes the second IF.If a=1 and b is not =1 then it processes the middle bracket after the commaIf a is not =1 then it processes the final term.