#1   Report Post  
Raymond Gallegos
 
Posts: n/a
Default Database Lookup

is there a way to match TWO fields in a database and return a value from
one of the columns in the database?
  #2   Report Post  
RagDyer
 
Posts: n/a
Default

If I understand your question:

Database - A1:C100

Match record in Column A to contents of D1
Match record in Column B to contents of D2
And return contents of corresponding record (row) from Column C

For numeric data:
=SUMPRODUCT((A1:A100=D1)*(B1:B100=D2)*C1:C100)

For alpha data:
=INDEX(C1:C100,MATCH(1,(A1:A100=D1)*(B1:B100=D2),0 ))
Above formula must be entered as an array formula with CSE (<Ctrl <Shift
<Enter), instead of just hitting <Enter.
This will *automatically* enclose the formula in curly brackets, denoting an
array formula, and *cannot* be done manually.
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Raymond Gallegos" <Raymond wrote in
message ...
is there a way to match TWO fields in a database and return a value from
one of the columns in the database?

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
lookup with 2 criteria LoriM Excel Discussion (Misc queries) 0 January 5th 05 02:05 AM
How do I create a "List If" function.I need to search a database . Flying Solo Excel Worksheet Functions 2 December 7th 04 03:44 PM
i want to open database exclusively Carlita Siew Excel Discussion (Misc queries) 3 December 5th 04 05:24 AM
Excel Lookup Functions Paul Adams Excel Worksheet Functions 1 November 10th 04 02:40 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


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