Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vlookupmatch 2 criteria

Hi,


What i am trying to do at the moment is that i have a list of product
and also the dates when they are due : ie

PRODID DUE

1233 12/09/04
1233 13/09/04
1233 14/09/04

when matcing a part using the vlookup function it only matches th
first one. I however need to match a paticular due date. is there an
way to do a form of an if statement:

eg to say; IF( part=1233 and due=12/09/04) then matc

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default vlookupmatch 2 criteria

Hi
try the following array formula (entered with cTRL+SHIFT+ENTER):
=INDEX(C1:C100,MATCH(1,(A1:A100=1234)*(B1:B100=DAT E(2004,9,13)),0))

--
Regards
Frank Kabel
Frankfurt, Germany


Hi,


What i am trying to do at the moment is that i have a list of
products and also the dates when they are due : ie

PRODID DUE

1233 12/09/04
1233 13/09/04
1233 14/09/04

when matcing a part using the vlookup function it only matches the
first one. I however need to match a paticular due date. is there
any way to do a form of an if statement:

eg to say; IF( part=1233 and due=12/09/04) then match


---
Message posted from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default vlookupmatch 2 criteria

You can use an array formula

=MATCH("123313/09/04",A1:A6&TEXT(B1:B6,"dd/mm/yy"),0)

will give you the row. the formula must be entered with Ctrl+Shift+Enter

you can combine this with Index to return a value in another column

=Index(D1:D6,MATCH("123313/09/04",A1:A6&TEXT(B1:B6,"dd/mm/yy"),0),1)

again, entered with Ctrl+Shift+enter.

--
Regards,
Tom Ogilvy

"amar9876 " wrote in message
...
Hi,


What i am trying to do at the moment is that i have a list of products
and also the dates when they are due : ie

PRODID DUE

1233 12/09/04
1233 13/09/04
1233 14/09/04

when matcing a part using the vlookup function it only matches the
first one. I however need to match a paticular due date. is there any
way to do a form of an if statement:

eg to say; IF( part=1233 and due=12/09/04) then match


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vlookupmatch 2 criteria

still cant get them to work

say ive got


A B c

1 1123 10/11/04 11


2 1123 11/11/04 12


3 1123 12/11/04 13

in box d1 say i want to search the list for item 1123 with dat
11/11/04 and copy whats in colum c of this corresponding row.

thanks guy

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default vlookupmatch 2 criteria

=Index(C1:C6,MATCH("112311/11/04",A1:A6&TEXT(B1:B6,"dd/mm/yy"),0),1)

would work. Entered with Ctrl+Shift+Enter rather than just enter. I
assume you haven't entered it with Ctrl+shift+enter

this assumes that column A contains numbers and column B actually holds
Excel date values.

Frank's would be:

=INDEX(C1:C100,MATCH(1,(A1:A100=1123)*(B1:B100=DAT E(2004,11,11)),0))
also entered with Ctrl+shift+Enter

Both worked for me in a test sheet.
--
Regards,
Tom Ogilvy


"amar9876 " wrote in message
...
still cant get them to work

say ive got


A B c

1 1123 10/11/04 11


2 1123 11/11/04 12


3 1123 12/11/04 13

in box d1 say i want to search the list for item 1123 with date
11/11/04 and copy whats in colum c of this corresponding row.

thanks guys


---
Message posted from http://www.ExcelForum.com/



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
Query criteria based on a changing criteria list bwilk77 Excel Discussion (Misc queries) 2 May 27th 09 04:03 PM
=DMIN(database,field,criteria) question about criteria Dummy Excel Discussion (Misc queries) 2 April 16th 07 08:02 PM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Saleem Excel Worksheet Functions 1 January 12th 05 10:54 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Arain Excel Worksheet Functions 1 January 12th 05 08:33 AM
have input box. Need criteria entered to refer to cond. format criteria Bob Phillips[_6_] Excel Programming 0 March 1st 04 08:17 PM


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

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

About Us

"It's about Microsoft Excel"