LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default index Match, or Vlookup Match..

Assuming the data is in A2:D10, this should return Price1.

=Index(C2:C10, MATCH(1, (A2:A10="City")*(B2:B10="State"),0))
array entered w/Cntrl+Shift+Enter

or, as long as the combination of city/state will always be unique, you
*could* use
=SUMPRODUCT(--(A2:A10="City"), --(B2:B10="State"), C2:C10)

but if there ever happen to be duplicates, sumproduct wil return the total
for every match it finds where Index/Match will return just the first match
it finds. Some folks shy away from sumproduct when they want to perform a
lookup and not a count or a sum of all matching records (although you could
add
=SUMPRODUCT(--(A2:A10="City"), --(B2:B10="State"))
in an adjacent cell as a check to verify there is only one matching record
and perhaps some conditional formatting to flag instances where there is more
than one unique combination).


"news.transedge.com" wrote:

Sure to be easy for most, yet difficult for me.. :)

I want to perform a price sheet lookup, the catch is I need to match to
fields.

Column A Column B Price1 Price2
City name State $$ $$


The price sheet has 15,000 names of cities, many duplicate, but become
unique when you combine the state.

How would you recomend I do this?

Can you provide an example, please?

Thank you,

John




 
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
Index,match, vlookup? ronnomad Excel Discussion (Misc queries) 0 December 12th 06 08:27 PM
Index Match Vlookup? IntricateFool Excel Discussion (Misc queries) 23 October 3rd 06 10:39 PM
Vlookup or Index/Match Scorpvin Excel Discussion (Misc queries) 2 May 16th 06 07:16 PM
Index Match Vlookup or something else billy2willy Excel Discussion (Misc queries) 1 May 5th 06 09:56 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


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