View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Vlookup w/ AND function

Is the value to be returned numeric or text or can it be either?

Are you saying that the combination of the account and subaccount are
unique?

Here's a generic method that returns either text or numbers.

Array entered** :

=INDEX(C1:C10,MATCH(1,(A1:A10=account)*(B1:B10=sub account),0))

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

--
Biff
Microsoft Excel MVP


"dannyboy8" wrote in message
...
I have a large worksheet and the 1st column is accounts and the 2nd column
is
sub accounts, now there are some accounts that are the repeats and some
subaccounts that are repeats, but never in the same row. I know how to
search
using the AND function to find the unique account and subaccount
combination,
but is there a way to return the value found by this combination? All I am
getting is TRUE. SAVE ME Excel Gods!!!