Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / April 2007

Tip: Looking for answers? Try searching our database.

Using If and Vlookup together.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Honey - 18 Apr 2007 14:43 GMT
Hello

Here is the problem - If  cell A1 has 0 then I want B1 to be
0...however if A1= 1 I want B1 to display the result from a look up
table.

I just keep getting error messages and I am ready to chuck the
Computer out of the window.....I am using Office Excel on Mac but that
does not normally make a difference to formulas.

Thank you!!

Lyndsey
Peo Sjoblom - 18 Apr 2007 14:52 GMT
=IF(A1<>1,0,VLOOKUP(lookup_value,lookup_table,2,0))

adapt to fit

Signature

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)

> Hello
>
[quoted text clipped - 9 lines]
>
> Lyndsey
Mike - 18 Apr 2007 14:56 GMT
Lyndsey,

Try this in B1

=IF(A1=0,A1,IF(A1=1,VLOOKUP(A2,H1:I10,2,FALSE),"Unspecified"))

Note that the value to look up if A1 is 1 is in A2 and the lookup array is
H1 to I10 all of which can be changed as required. You didn't say what you
wanted for other values in A1o the formula will return "Unspevcified"

Mike

> Hello
>
[quoted text clipped - 9 lines]
>
> Lyndsey
Ron Coderre - 18 Apr 2007 14:58 GMT
If you post the formula that isn't working, you'll likely get a custom,
working  formula back....
otherwise, you'll receive a generic formula that may or may not solve your
problem.

***********
Regards,
Ron

XL2002, WinXP

> Hello
>
[quoted text clipped - 9 lines]
>
> Lyndsey
Bob Phillips - 18 Apr 2007 14:58 GMT
see other thread

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Hello
>
[quoted text clipped - 9 lines]
>
> Lyndsey
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.