ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Use VLookup for range of cells, but with a twist (https://www.excelbanter.com/excel-worksheet-functions/84863-use-vlookup-range-cells-but-twist.html)

[email protected]

Use VLookup for range of cells, but with a twist
 
Hi

I have a workbook in which Sheet1 contains a list of unique enquiry
numbers in column E, and a name in column C.

Sheet 2 also contains the same data - Name in column A; enquiry number
in column B and a third column C with a numeric value in it (time spent
on enquiry).

I need to create a formula that will look at the value from E in Sheet
1, match it to a value in B in Sheet 2, then compare the name in column
A Sheet2 to column C in Sheet1. If I have a complete match then I want
to input value from C in Sheet 2 into a new column in sheet 1.

Can anyone help, or perhaps point out a more simpler way of getting
this data across?

Many thanks.


xlbo

Use VLookup for range of cells, but with a twist
 
Hi

Simply use an IF statement to test the result:

In this case, however, you cannot use VLOOKUP as you need to lookleft
instead of right. If you can change the order of the columns, you can, as I
say, just use an IF statement to test the result

eg.
=IF( Vlookup(EnquiryNo., LookupRange,2,false) = EmpName,Vlookup(EnquiryNo.,
LookupRange,2,false),"")


--
Rgds, Geoff

"A crash reduces
Your expensive computer
To a simple stone"


" wrote:

Hi

I have a workbook in which Sheet1 contains a list of unique enquiry
numbers in column E, and a name in column C.

Sheet 2 also contains the same data - Name in column A; enquiry number
in column B and a third column C with a numeric value in it (time spent
on enquiry).

I need to create a formula that will look at the value from E in Sheet
1, match it to a value in B in Sheet 2, then compare the name in column
A Sheet2 to column C in Sheet1. If I have a complete match then I want
to input value from C in Sheet 2 into a new column in sheet 1.

Can anyone help, or perhaps point out a more simpler way of getting
this data across?

Many thanks.




All times are GMT +1. The time now is 12:27 AM.

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