Forum Discussion
calof1
Jul 31, 2019Iron Contributor
Find next price in data set
Hi, I have a series of data which involves a range of products. I am aiming to find the price for each product in the set of data. I have attached an example. Can someone please assist. K...
Yury Tokarev
Jul 31, 2019Iron Contributor
Hi calof1,
If you have Stock name selection in G2 and wish to list dates and prices for the selected product starting from range G3 for date and H3 for price, you can use the following formulas:
G3: =IFERROR(INDEX($B$3:$B$7,SMALL(IF($A$3:$A$7=$G$2,ROW($B$3:$B$7)-ROW($A$2)),ROW(A3)-ROW($A$2))),"")
H3: =IFERROR(INDEX($C$3:$C$7,SMALL(IF($A$3:$A$7=$G$2,ROW($C$3:$C$7)-ROW($A$2)),ROW(A3)-ROW($A$2))),"")
Both formulas must be array entered in each cell . If you then copy these formulas down, the next rows will show next date/price combination for the selected product.
Please see the example attached
Thanks
Yury
- calof1Aug 01, 2019Iron Contributor
Thanks for your help, this matches my needs perfectly.
much appreciated.
Kind regards,