Select the entire range A1 to D4. The empty, extra row is important!
Click on Insert>Name>Define and give it a name like 'data'. As you
add data, always insert a row (or a group of cells) for the new data
immediately after the last row containing data. This will insert
before the blank row which is the end of your range, and automatically
extend your range by one row. This is the beauty of naming ranges.
The function you will use is vlookup. Say cell F8 contains the value
you want to lookup in column A to find in column B. In F9 (or any
cell) type:
=vlookup(F8,data,2)
The vlookup function works like this: vlookup(the value you want to
find in the FIRST column of the range, the range, the column in the
range of the corresponding value you want to return).
The same example as above to return the value from column C is:
=vlookup(F8,data,3)
Whatever is in cell F8 is what it will try to find in column A. The
lookup values must be in the left-most column. These formulae can be
on any sheet; the range 'data' always refers to the same table.
Got it?
It's a great way to use Excel - put the data in a plain table on one
sheet and make a 'pretty' version on another.
If you need more help, keep posting in this same thread. We will make
it work for you!
-Mike
I have a list on a worksheet with fields in A1 to A3 and values in B1 to D3.
Each day i'd like to add a new row that would go straight down page.
What function would be best to lookup a value from the list? Even more
important, how can i find the last record in the list without changing the
range that a formula would need to find the last record?
thanks for any input.
Mike Argy
Custom Office Solutions
and Windows/UNIX applications
Please post on-topic responses to the newsgroup
To e-mail me, remove nospam from the address in the headers