=INDEX(C1:C00(1,("A1:A100=NJ")*(B1:B100="Average"),0))
where column A is the dept, B the type and C month figures
which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

Signature
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
>I have to search and put values in one of my sheets after looking in
> a
[quoted text clipped - 19 lines]
> in the vlookup formula origination sheet.
> Any help?
ruchie - 08 Jun 2007 18:08 GMT
i tried it, it says that the formula has too few arguments...
Peo Sjoblom - 08 Jun 2007 18:56 GMT
Try
=INDEX(C1:C100,MATCH(1,(A1:A100="NJ")*(B1:B100="Average"),0))
still array entered

Signature
Regards,
Peo Sjoblom
>i tried it, it says that the formula has too few arguments...
Bob Phillips - 08 Jun 2007 21:07 GMT
Sorry, missed a function
=INDEX(C1:C00,MATCH(1,("A1:A100=NJ")*(B1:B100="Average"),0))

Signature
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
>i tried it, it says that the formula has too few arguments...
Peo Sjoblom - 08 Jun 2007 22:11 GMT
You missed a 1 as well
INDEX(C1:C100
Peo
> Sorry, missed a function
>
> =INDEX(C1:C00,MATCH(1,("A1:A100=NJ")*(B1:B100="Average"),0))
>
>>i tried it, it says that the formula has too few arguments...
ruchie - 11 Jun 2007 19:52 GMT
the formula was working just fine till i changed the data set a bit.
now even though i chaned it back on to the original, it isnt working
fine. the formulla im using is pasted below:
=INDEX(X!D3:D106,MATCH(1,(X!A3:A106=$A5)*(X!B3:B106="Total monthly
Average"),0))
X is the name of a worksheet within my workbook from where im
extracting data from.
column D is the data i want to return
column A and B are teh columns on the basis of which i want to return
the data
any possible reason for a #N/A error?
Dave Peterson - 11 Jun 2007 20:40 GMT
You don't have a row in the X worksheet where A3:A106 matches the value in A5
and b3:b106 = "total monthy average" at the same time.
> the formula was working just fine till i changed the data set a bit.
> now even though i chaned it back on to the original, it isnt working
[quoted text clipped - 10 lines]
>
> any possible reason for a #N/A error?

Signature
Dave Peterson
ruchie - 11 Jun 2007 21:27 GMT
i do have atleast 1 row matching for each value from A3 to A106
Peo Sjoblom - 11 Jun 2007 21:43 GMT
If that's the case then there are only 2 options, you didn't enter the
formula with ctrl + shift & enter (should give you curly brackets around the
formula), that will give you an N/A error or that what looks like a match is
not

Signature
Regards,
Peo Sjoblom
>i do have atleast 1 row matching for each value from A3 to A106
ruchie - 11 Jun 2007 21:47 GMT
the bad thing is tht i did both... still this thing is hapenning...
donno why...
ruchie - 11 Jun 2007 21:47 GMT
i do have 1 such row
Dave Peterson - 12 Jun 2007 12:54 GMT
Pick out that row that you think matches and find a couple of extra cells and
use a couple of formulas like:
=X!A37=$A5
=X!B37="Total monthly Average"
Where 37 represents the row you think matches your data.
Do you see True in both cells?
> i do have 1 such row

Signature
Dave Peterson