If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > lookup

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-03-07, 03:30
Kabuki_jo Kabuki_jo is offline
Registered User
 
Join Date: Oct 2003
Posts: 61
lookup

I have a spreadsheet in which I have the transaction details of a number of swap trades. These trades have a reset of their interest every three months. This means that every trade can have a different number of columns in my spreadsheet since every reset rate is stored. (So for every record has it's own header row!) . There is also a field called Resetno which tells you how many times there has been a rate reset. This number corresponds with the number of times one will see the column name ResetRates inthe file.

What I now need to be able to do is to return the last resetrate to a certain cell in my spreadsheet. THis however turns out to be very hard. Hlookup doesn't work because there are more than one column named Resetrates (I do always need the last one though!). Vlookup on ResetNo doesn't work because the value I want to have returned is in the row below it.

Does anyone have an idea on how to do this??

I have attached an exmple of what my data looks like.
Attached Files
File Type: zip lookup.zip (2.9 KB, 21 views)
__________________
Nobody dies a virgin because life screws us all!
Reply With Quote
  #2 (permalink)  
Old 04-03-07, 09:08
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
This should do it:

=INDEX(2:2,MATCH(9.99999999999999E+307,2:2))
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 04-03-07, 09:31
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
If you want to automate this, then in cell B10, you can put this formula and copy down:

=INDEX(INDIRECT(MATCH(RIGHT(A10,1),$A$1:$A$6,FALSE )&":"&MATCH(RIGHT(A10,1),$A$1:$A$6,FALSE)),MATCH(9 .99999999999999E+307,INDIRECT(MATCH(RIGHT(A10,1),$ A$1:$A$6,FALSE)&":"&MATCH(RIGHT(A10,1),$A$1:$A$6,F ALSE))))
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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