Gary''s Student said:
Show me exactly how you want to use it in a worksheet cell.
I'm making an 'import sheet' from Excel to a consolidation program (Cognos
Controller). It takes values from a Excel sheet by using a simple reference
='Balanse 3018'!G5
However, to find the correct account to post the value in G5, Excel have to
look up the name of the account in an unsorted list. This is done by using
this command
=INDEX(Kontoer!$A$51:$B$111;MATCH('Balanse
3018'!$B5;Kontoer!$A$51:$A$111;0);2)
So far so good. But since I'm doing this for several workbooks (many
companies) and many lines in each company (P/L statement, Balance, Equity,
Assets) the prosess of updating the value reference (G5) and the argument in
MATCH(...) - $B5 is tedious (i.e. changing the row) and vulnerable to error.
I want that $B5 (that is, the row reference "5") updates automaticly when I
change the value reference so that I only need to change it one place.
Sounds easy at first, but not that easy after all!
So how can I extract the row from your UDF (whatsinit) and paste it into the
MATCH formula?