#1   Report Post  
Ben
 
Posts: n/a
Default Lookup Table

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.
  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

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


--
Don Guillett
SalesAid Software

"Ben" wrote in message
...
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.



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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.

In article ,
"Ben" wrote:

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.

  #4   Report Post  
Ben
 
Posts: n/a
Default

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.


-----Original Message-----
why not use match to find the last row and then -1, -2,-

3,-4 and then use
index for the column


--
Don Guillett
SalesAid Software

"Ben" wrote in

message
...
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.



.

  #5   Report Post  
Ben
 
Posts: n/a
Default



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.


-----Original Message-----
why not use match to find the last row and then -1, -2,-

3,-4 and then use
index for the column


--
Don Guillett
SalesAid Software

"Ben" wrote in

message
...
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.





  #7   Report Post  
Ben
 
Posts: n/a
Default

I tried this. Doesn't work. How would I make the second
formula remain the same but not equal the results of the
first?

TIA
Ben
-----Original Message-----
try just adding -1 between last ))

--
Don Guillett
SalesAid Software

"Ben" wrote in

message
...


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.


-----Original Message-----
why not use match to find the last row and then -1, -

2,-
3,-4 and then use
index for the column


--
Don Guillett
SalesAid Software

"Ben" wrote in

message
...
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.





.

  #8   Report Post  
Ben
 
Posts: n/a
Default

I tried this. Doesn't work. How would I make the second
formula remain the same but not equal the results of the
first?

TIA
Ben
-----Original Message-----
try just adding -1 between last ))

--
Don Guillett
SalesAid Software

"Ben" wrote in

message
...


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.


-----Original Message-----
why not use match to find the last row and then -1, -

2,-
3,-4 and then use
index for the column


--
Don Guillett
SalesAid Software

"Ben" wrote in

message
...
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.





.

..


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table services Craig Excel Discussion (Misc queries) 5 January 19th 05 06:11 PM
table dow Excel Discussion (Misc queries) 0 January 12th 05 02:25 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM
Data Table - Does it work with DDE links and stock tickers? Post Tenebras Lux Excel Discussion (Misc queries) 0 December 1st 04 05:15 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 05:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"