Lookup Table

B

Ben

I am trying to build a lookup table to extract the last
five entries in a list. As data is entered, I want the
table to update itself. Could someone point me in the
right direction?

Thank You.
 
D

Don Guillett

why not use match to find the last row and then -1, -2,-3,-4 and then use
index for the column
 
J

JE McGimpsey

One way:

Assume your list is in A1:Ax, with no blanks. The last 5 entries can be
returned by selecting 5 cells in another column and array-entering
(CTRL-SHIFT-ENTER or CMD-RETURN):

=OFFSET(A1,COUNTA(A:A)-5,0,5,1)

Note: this fails if there are less than 5 items in column A.
 
B

Ben

Thank you. This is what I have so far:

=INDEX(SALES,MATCH(TODAY(),SALE_DATE,1),MATCH
(O4,O13:T13,0))

This works fine for the last entry. I now need the next
previous entry, which may have the same date. Any help?

Thank You.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top