Home |
Search |
Today's Posts |
#6
![]() |
|||
|
|||
![]()
123user wrote...
I am able to use arrays this way to get wat I want. The drawback, as I said, is that I have to name the full column of each field of the database. .... No, you don't. Look at the first formula in my previous response. =INDEX(CRDB,MATCH(1,(INDEX(CRDB,0,MATCH("SQLVAR",I NDEX(CRDB,1,0),0))=$B$1) *(INDEX(CRDB,0,MATCH("DBYEAR",INDEX(CRDB,1,0),0))= B$2),0), MATCH($A4,INDEX(CRDB,1,0),0)) As I said, not elegant, but it *only* requires the named range for the table. That said, I would add one defined name per table returning the table's top row, which contains the field names. Something like CRDB.FN referring to =INDEX(CRDB,1,0). That would allow shortening the formula above to =INDEX(CRDB,MATCH(1,(INDEX(CRDB,0,MATCH("SQLVAR",C RDB.FN,0))=$B$1) *(INDEX(CRDB,0,MATCH("DBYEAR",CRDB.FN,0))=B$2),0), MATCH($A4,CRDB.FN,0)) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array Formula w/ Multiple SumIf Criteria | Excel Worksheet Functions | |||
how do an @if formula to meet criteria where x is divisible by 12 | Excel Worksheet Functions | |||
external database file into excel formula | Excel Worksheet Functions | |||
database criteria | Excel Worksheet Functions | |||
use a date range as criteria in a countif formula | Excel Worksheet Functions |