On 2002-10-03 15:10, LoriD wrote:
Column B; They enter the date of service for each record.
Make a copy of your current workbook.
Change the formula in Step 7 to:
=MATCH(BigNum,MaintRecords!B:B)
Change the value in B4 in Admin to 14 (We have now 14 columns).
Change the formula in Step 9 to:
=B2-(CELL("Row",MaintRecords!B1)-1)
Activate Insert|Name|Define.
Enter
DTable as name in the
Names in Workbook box.
Enter the following formula in the
Refers to box:
=OFFSET(MaintRecords!$A$1,0,0,Admin!$B$3,Admin!$B$4)
Click
Add.
Select the old name regarding the range in D.
Click
Delete.
Click OK.
What follows is very important info concerning how to access individual column ranges using the name DTable.
Suppose you want to know how many cells in D contain data (numbers plus N/A's). The following formula allows you to do that:
=COUNTA(INDEX(DTable,0,4))
The INDEX(DTable,0,4) bit determines/indicates the range to count: all rows of the 4th column of DTable.
0 means thus all rows;
4 means column D.
Additional examples:
=VLOOKUP(E1,DTable,2,0)
for ordinary lookup, where E1 houses a lookup value of interest.
=INDEX(DTable,MATCH(F1,INDEX(DTable,0,3),0),2)
would give you the date for F1 that matches a value in column 3 of DTable. That is, find the row in column 3 (column C) of DTable and the corresponding date from column 2 (column B) of DTable.
=MIN(INDEX(DTable,0,2))
will give you the earliest date that is entered in column 2 of DTable.
The above shows the advantage of the single name method for too many dynamic name ranges slows down a spreadsheet.
Aladin
This message was edited by Aladin Akyurek on 2002-10-03 15:50