3 variable lookup
Let's assume:
Company names = B1:G1
Year = B2:G2
Sales = B3:G3
A1 = some company name
A2 = some year number
=INDEX(B3:G3,MATCH(1,INDEX((B1:G1=A1)*(B2:G2=A2),0 ),0))
--
Biff
Microsoft Excel MVP
"rooter" wrote in message
...
I'm newly impressed with what Excel can allow me to do, but am running
into
an issue which may or maynot be doable...so please help if you can:
I want to find the sales number for a company by year in a sheet that is
organized as follows:
Column 1 starting row3: Sales
Row 1 starting column 2: Company Name
Row 3 starting column2: Year
company A A A B B B
Year 2007 2006 2005 2007 2006 2005
sales 1.20 2.29 2.17 1.14 3.75 3.57
assets 0.90 1.06 1.06 0.47 1.67 1.46
hlookup only works if I want to find sales by year but the additional
variable of company name...maybe I'm just not seeing a simple way to do
it...?
|