A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If or formula



 
 
Thread Tools Display Modes
  #1  
Old June 3rd, 2010, 03:19 AM posted to microsoft.public.excel.misc
Susan
external usenet poster
 
Posts: 651
Default If or formula

Trying to create a formula that will do the following:

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


  #2  
Old June 3rd, 2010, 03:34 AM posted to microsoft.public.excel.misc
Gord Dibben
external usenet poster
 
Posts: 20,252
Default If or formula

Not enough information.

Vlookup what?

Where would this formula be entered?

Let's say for example we had Gord in B1

In C1 we enter =IF(A1=1,VLOOKUP(B1,table,colndx,false),"not equal 1")


Gord Dibben MS Excel MVP


On Wed, 2 Jun 2010 19:19:31 -0700, Susan
wrote:

Trying to create a formula that will do the following:

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


  #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......



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.