#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default Vlookup Function

Hi,

Pls refer the vlookup formula mentioned below,

Cell : A2,
=VLOOKUP(A1,'[Jan''08.xls]Sheet1'!$B:$D,3,0)

I am entering the vlookup function in cell A2 and here i want to do multiple
functions. Ex : 1st this formula will execute and return a value and if it
returns #n/a it shud automatically look for the different table with
different vlookup function.

I tried with if condition and it returns a circular reference error.

Is it possible to execute the multiple function? If yes i request any one of
ur help.

Thanks in advance!

-Christ.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup Function

One way is to nest it, indicatively like this:
=IF(ISNA(VLOOK1),IF(ISNA(VLOOK2),"",VLOOK2),VLOOK1 )
The sequence structured is important if the lookup value could be found in
multiple lookup tables. If there's no possibility of this happening, then it
doesn't matter.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Christopher Naveen" wrote in
message ...
Hi,

Pls refer the vlookup formula mentioned below,

Cell : A2,
=VLOOKUP(A1,'[Jan''08.xls]Sheet1'!$B:$D,3,0)

I am entering the vlookup function in cell A2 and here i want to do
multiple
functions. Ex : 1st this formula will execute and return a value and if it
returns #n/a it shud automatically look for the different table with
different vlookup function.

I tried with if condition and it returns a circular reference error.

Is it possible to execute the multiple function? If yes i request any one
of
ur help.

Thanks in advance!

-Christ.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default Vlookup Function

Hi,

Thanks for ur immediate response and it is working fine. Also i have 1 more
query. 1st vlookup will look for #n/a and if it is true it will check for 2nd
vlookup but here inbetween i want to check 1 more condition.

After the execution of the 1st Vlookup if the result is "India" then reject
this result and go for 2nd vlookup. I have few countries in the lookup master
table and i need to reject particularly "india" and lookup for the 2nd
vlookup. I hope u understood my query. Can u pls help me on this.

Looking forward for ur response. Thanks a bunch.

-Christ

"Max" wrote:

One way is to nest it, indicatively like this:
=IF(ISNA(VLOOK1),IF(ISNA(VLOOK2),"",VLOOK2),VLOOK1 )
The sequence structured is important if the lookup value could be found in
multiple lookup tables. If there's no possibility of this happening, then it
doesn't matter.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Christopher Naveen" wrote in
message ...
Hi,

Pls refer the vlookup formula mentioned below,

Cell : A2,
=VLOOKUP(A1,'[Jan''08.xls]Sheet1'!$B:$D,3,0)

I am entering the vlookup function in cell A2 and here i want to do
multiple
functions. Ex : 1st this formula will execute and return a value and if it
returns #n/a it shud automatically look for the different table with
different vlookup function.

I tried with if condition and it returns a circular reference error.

Is it possible to execute the multiple function? If yes i request any one
of
ur help.

Thanks in advance!

-Christ.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup Function

Indicatively, think you could try something like this (all in 1 cell):
=
IF(OR(ISNA(VLOOK1),VLOOK1="India"),
IF(OR(ISNA(VLOOK2),VLOOK2="India"),"",
VLOOK2),VLOOK1)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Christopher Naveen" wrote in
message ...
Thanks for ur immediate response and it is working fine. Also i have 1
more
query. 1st vlookup will look for #n/a and if it is true it will check for
2nd
vlookup but here inbetween i want to check 1 more condition.

After the execution of the 1st Vlookup if the result is "India" then
reject
this result and go for 2nd vlookup. I have few countries in the lookup
master
table and i need to reject particularly "india" and lookup for the 2nd
vlookup. I hope u understood my query. Can u pls help me on this.

Looking forward for ur response. Thanks a bunch.

-Christ



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Embedded VLOOKUP function within IF function beautyteknorth Excel Worksheet Functions 6 August 17th 06 09:31 AM
HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION CHAIM Excel Worksheet Functions 1 July 27th 05 09:10 PM
how do I write a vlookup function within an iserror function so t. JBLeeds Excel Worksheet Functions 2 March 16th 05 10:30 AM
I want to use Vlookup function and AND function in a single formu. prakash Excel Worksheet Functions 3 January 25th 05 07:11 AM


All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"