Address function to return values from min row

G

Guest

I have a formula that returns the min $ value in a table that meets certain
criteria:

=MIN(IF(($D$9:$D$16=$D5)*(($A5-($A$9:$A$16))<31)*(($A5-($A$9:$A$16))>-31),$B$9:$B$16," "))

I need to be able to pull other values from that row (some are text). I'm
trying to use an address function to get the cell reference but I keep
getting #VALUE. Anyone know what I'm doing wrong below?

=ADDRESS(MIN(IF(($D$9:$D$16=$D5)*(($A5-($A$9:$A$16))<31)*(($A5-($A$9:$A$16))>-31),$B$9:$B$16,"
"))=$A$5:$D$16,ROW($A$5:$D$16),MIN(IF(($D$9:$D$16=$D5)*(($A5-($A$9:$A$16))<31)*(($A5-($A$9:$A$16))>-31),$B$9:$B$16," "))=$A$5:$D$16,COLUMN($A$5:$D$16),4)
 
G

Guest

Thanks! That worked:

=INDEX($A$9:$D$16,MATCH(MIN(IF(($D$9:$D$16=$D1)*(($A1-($A$9:$A$16))<31)*(($A1-($A$9:$A$16))>-31),$B$9:$B$16," ")),$B$9:$B$16,0),3)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

sumproduct with 3 variables 3
Average if ... 15
lookup functions 1
LOOKUP 2
hard slope question 2
Dynamic Sum-if function 5
Index and Match I Presume...Maybe 3
pulling from one sheet to another 3

Top