ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Look up query (https://www.excelbanter.com/excel-worksheet-functions/140555-look-up-query.html)

JaB

Look up query
 
Hi there

In my workbook I want to construct a formula that looks for matching data in
two tables, on two different pages and returns a value, as below.

Table 1
A1 A2 A3
John Smith Eggs (Lookup)

Table 2
G1 G2 G3
John Smith Milk Sugar

I would like the formula to look in both tables, and when it finds a
matching name, to copy the value from G3 into A3.

Any ideas?

Thanks

Toppers

Look up query
 
Assuming names in Table 2 are in row 1 starting in column A to ?? (Z in my
example):

=HLOOKUP(A1,Table2!A1:Z3,3)

HTH

"JaB" wrote:

Hi there

In my workbook I want to construct a formula that looks for matching data in
two tables, on two different pages and returns a value, as below.

Table 1
A1 A2 A3
John Smith Eggs (Lookup)

Table 2
G1 G2 G3
John Smith Milk Sugar

I would like the formula to look in both tables, and when it finds a
matching name, to copy the value from G3 into A3.

Any ideas?

Thanks



All times are GMT +1. The time now is 02:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com