From: Carolina on 27 May 2010 16:55 I need to do a formula where I need to determine if the size of C12 or C13 is greater or less than E12 or E13 respectively. Knowing that I need for the formula to do a vlookup into the "Non Direct Care" tab and if there is an "x" in column J to multiply the value in cell B12 or B13 times the values in J3 or J4 times 14 days and then divide it by 60 (J3 is if less than E12 or E13 and J4 is if greater than E12 or E13). If there is NO "x" on column "J" I need it to return a "0". This is what I have and it is returning values regardless if there is an "x" or not. =IF(AND(C12<=E12,VLOOKUP(\$B\$4,'Non Direct Care'!\$A\$1:\$S\$123,10,FALSE)="x"),\$B\$12*'Non Direct Care'!J3*14/60,\$B\$12*'Non Direct Care'!J4*14/60) Any help will be much appreciated. Carolina From: Tom-S on 27 May 2010 17:31 It's a little confusing trying to understand your first set of conditions - where you say C12 or C13 greater or less than E12 or E13 respectively. Could you clarify that part a little? Regards, Tom "Carolina" wrote: > I need to do a formula where I need to determine if the size of C12 or C13 is > greater or less than E12 or E13 respectively. Knowing that I need for the > formula to do a vlookup into the "Non Direct Care" tab and if there is an "x" > in column J to multiply the value in cell B12 or B13 times the values in J3 > or J4 times 14 days and then divide it by 60 (J3 is if less than E12 or E13 > and J4 is if greater than E12 or E13). If there is NO "x" on column "J" I > need it to return a "0". > > This is what I have and it is returning values regardless if there is an "x" > or not. > > =IF(AND(C12<=E12,VLOOKUP(\$B\$4,'Non Direct > Care'!\$A\$1:\$S\$123,10,FALSE)="x"),\$B\$12*'Non Direct Care'!J3*14/60,\$B\$12*'Non > Direct Care'!J4*14/60) > > Any help will be much appreciated. > > Carolina