Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default how do i use vlookup function in more than one table same time

i want to use vlookup function in a table but my main data is in two
different tables. Is it possible what I use a macro for it?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default how do i use vlookup function in more than one table same time

Assuming you have named your tables table_1 and table_2, then you can
use this formula:

=IF(ISNA(VLOOKUP(A1,table_1,2,0)),IF(ISNA(VLOOKUP( A1,table_2,
2,0)),"absent",VLOOKUP(A1,table_2,2,0)*),VLOOKUP(A 1,table_1,
2,0))

Where A1 contains the value you are trying to match. I've assumed you
want to bring data back from the second column of the tables if you
find a match, and if there is no match in either table you will get
the word "absent".

Hope this helps.

Pete


On May 18, 2:44 pm, Sanjeev kumar <Sanjeev
wrote:
i want to use vlookup function in a table but my main data is in two
different tables. Is it possible what I use a macro for it?



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
why does the vlookup function not work using time? vicky Excel Worksheet Functions 1 September 27th 06 08:18 PM
How to use a cell value as Table Array in VLOOKUP worksheet function willydlish Excel Discussion (Misc queries) 2 February 16th 05 02:47 AM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 4 November 18th 04 03:24 PM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 0 November 18th 04 03:13 PM
vlookup function in excel referencing an access table AJN Excel Worksheet Functions 1 November 7th 04 07:09 PM


All times are GMT +1. The time now is 06:02 AM.

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"