Thread: If or formula
View Single Post
  #3  
Old June 3rd, 2010, 01:47 PM posted to microsoft.public.excel.misc
John
external usenet poster
 
Posts: 563
Default If or formula

Maybe this ; =IF(OR(A1=1,A1=2),vlookup,"")
This is just a example : =IF(OR(A1=1,A1=2),VLOOKUP(B1,C112,2,FALSE),"")
You don't say what you want if no match, so I put "", this will leave the cell
blank.
If you put double quotes around your numbers, it will tell excel that those
numbers are text, not numbers.
HTH
John
"Susan" wrote in message
...
Trying to create a formula that will do the following:

If a1="1", then vlookup ...........or if A1="2" then vlookup......