Hi,
I have a table queried by SQL and has several columns containing prices for many previous days for many product-ID's.
On a another sheet (sheet1) I have the column A contains values (ID's) which are contained in the column A in the sql-table. Also on sheet1 i have a price for each ID (in column B let's say), and this price is the latest price achieved by a lookup in the sql-table, where i have used the following formula to obtain it:
=LOOKUP(2;1/(sql-table[ID]=A6);Sql-table[price]) - the table here is inversed as to obtain last row. A6 is a certain ID i wanna lookup.
Now my problem is that I want to calculate a % in change between second last price and last price. So i wondered if i could just subtract 1 from the above formula so as to move one row/price up...or is that an offset-function? ..please correct me if i'm wrong.
btw the above formula is one i have got inspiration to make from another formula i found on internet, and i actually don't quite understand the lookup_value "2" in it... can someone help? thank you a lot!
Bookmarks