Basically, I have a huge table of data that looks like:
Item Name 1 - Price 1 - Quantity Stock 1 - Quantity Sold 1 - Item name 2 - etc
it goes out to item 15 or so at column DZ. I've been able to find the max of the 15 prices pretty easily (=MAX(B2,F2,J2,etc).
The problem comes when I want to see what the Quantity Sold at that Max Price is. The formula I have come up with fails wherever the value of that Max Price cell is also shared with any other cell in the range. I've been unable to figure out how to search only those specific Price cells. It seems I've gotta do a contiguous range, which is not really possible. The formula I've got is:
=OFFSET(INDIRECT(CELL("address",INDEX(C2:DZ2,MATCH(A2,C2:DZ2,0)))),0,2)
A2 there would be the MAX from the other formula.
So, the overall idea is to locate the max price and plug that into cell A2, then locate the data 2 cells to the right of that max price and plug that data back into cell B2 so I've got the max price and the qty sold at that price right next to each other.
So, right now I'm getting screwed up wherever Max Price = Quantity Stock or Quantity Sold. The formula apparently just takes the first instance of the match it comes across. From what I've read, the MATCH function doesn't allow you to designate specific cells to search--only a contiguous range.
Any help would be greatly appreciated!
Thanks!
Bookmarks