Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default vlookup with two lookup values?

I am not sure if this is possible or not. I have an extensive list of data
in which one column I have dates and the next column I have a unit location
number. I was wondering if it would be possible using a vlookup to return
values for a specific date for a specific unit location number.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup with two lookup values?

Try this array formula** :

column A = dates
column B = unit location number
column C = data to return

E1 = lookup date
F1 = lookup unit location number

=INDEX(C1:C100,MATCH(1,(A1:A100=E1)*(B1:B100=F1),0 ))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Kim B." wrote in message
...
I am not sure if this is possible or not. I have an extensive list of data
in which one column I have dates and the next column I have a unit
location
number. I was wondering if it would be possible using a vlookup to return
values for a specific date for a specific unit location number.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default vlookup with two lookup values?

Thank you that did work. If you don't mind I would like to ask you one more
related question. Right now the formula returns a n/a if there was not any
data for a location on a specific day, is there a way to change it so it
would return '0' in those cases?

"T. Valko" wrote:

Try this array formula** :

column A = dates
column B = unit location number
column C = data to return

E1 = lookup date
F1 = lookup unit location number

=INDEX(C1:C100,MATCH(1,(A1:A100=E1)*(B1:B100=F1),0 ))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Kim B." wrote in message
...
I am not sure if this is possible or not. I have an extensive list of data
in which one column I have dates and the next column I have a unit
location
number. I was wondering if it would be possible using a vlookup to return
values for a specific date for a specific unit location number.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup with two lookup values?

Still an array formula:

=IF(ISNA(MATCH(1,(A1:A100=E1)*(B1:B100=F1),0)),0,I NDEX(C1:C100,MATCH(1,(A1:A100=E1)*(B1:B100=F1),0)) )

--
Biff
Microsoft Excel MVP


"Kim B." wrote in message
...
Thank you that did work. If you don't mind I would like to ask you one
more
related question. Right now the formula returns a n/a if there was not
any
data for a location on a specific day, is there a way to change it so it
would return '0' in those cases?

"T. Valko" wrote:

Try this array formula** :

column A = dates
column B = unit location number
column C = data to return

E1 = lookup date
F1 = lookup unit location number

=INDEX(C1:C100,MATCH(1,(A1:A100=E1)*(B1:B100=F1),0 ))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Kim B." wrote in message
...
I am not sure if this is possible or not. I have an extensive list of
data
in which one column I have dates and the next column I have a unit
location
number. I was wondering if it would be possible using a vlookup to
return
values for a specific date for a specific unit location number.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default vlookup with two lookup values?


Thank you, you saved me a ton of time.


"T. Valko" wrote:

Still an array formula:

=IF(ISNA(MATCH(1,(A1:A100=E1)*(B1:B100=F1),0)),0,I NDEX(C1:C100,MATCH(1,(A1:A100=E1)*(B1:B100=F1),0)) )

--
Biff
Microsoft Excel MVP


"Kim B." wrote in message
...
Thank you that did work. If you don't mind I would like to ask you one
more
related question. Right now the formula returns a n/a if there was not
any
data for a location on a specific day, is there a way to change it so it
would return '0' in those cases?

"T. Valko" wrote:

Try this array formula** :

column A = dates
column B = unit location number
column C = data to return

E1 = lookup date
F1 = lookup unit location number

=INDEX(C1:C100,MATCH(1,(A1:A100=E1)*(B1:B100=F1),0 ))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Kim B." wrote in message
...
I am not sure if this is possible or not. I have an extensive list of
data
in which one column I have dates and the next column I have a unit
location
number. I was wondering if it would be possible using a vlookup to
return
values for a specific date for a specific unit location number.








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup with two lookup values?

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kim B." wrote in message
...

Thank you, you saved me a ton of time.


"T. Valko" wrote:

Still an array formula:

=IF(ISNA(MATCH(1,(A1:A100=E1)*(B1:B100=F1),0)),0,I NDEX(C1:C100,MATCH(1,(A1:A100=E1)*(B1:B100=F1),0)) )

--
Biff
Microsoft Excel MVP


"Kim B." wrote in message
...
Thank you that did work. If you don't mind I would like to ask you one
more
related question. Right now the formula returns a n/a if there was not
any
data for a location on a specific day, is there a way to change it so
it
would return '0' in those cases?

"T. Valko" wrote:

Try this array formula** :

column A = dates
column B = unit location number
column C = data to return

E1 = lookup date
F1 = lookup unit location number

=INDEX(C1:C100,MATCH(1,(A1:A100=E1)*(B1:B100=F1),0 ))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Kim B." wrote in message
...
I am not sure if this is possible or not. I have an extensive list
of
data
in which one column I have dates and the next column I have a unit
location
number. I was wondering if it would be possible using a vlookup to
return
values for a specific date for a specific unit location number.








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
vlookup with similar lookup values Dave F[_2_] Excel Discussion (Misc queries) 3 July 5th 07 06:49 PM
vlookup - multiple lookup values kec01 Excel Worksheet Functions 3 March 13th 07 11:56 PM
Vlookup(?) with 2 Lookup Values o1darcie1o Excel Worksheet Functions 6 January 3rd 07 01:26 AM
How do I use vlookup with two lookup values? pinpalchris Excel Worksheet Functions 4 April 25th 06 06:57 PM
vlookup using two lookup values? tjb Excel Worksheet Functions 10 November 25th 05 05:21 AM


All times are GMT +1. The time now is 05:21 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"