I have the following formula in Cell L18:
=IF(HLOOKUP($K18,$AH$16:$AL$17,2,1)*$K18<$AG$17,$AG$17,IF(HLOOKUP($K18,$AH$16:$AL$17,2,1)*$K18>$AL$17,$AL$17,HLOOKUP($K18,$AH$16:$AL$17,2,1)*$K18))
Right now, if I leave K18 blank, the value of AG$17 will display. I have tried using the following formula, but I get an answer of FALSE
=IF(K18>0,IF(HLOOKUP($K18,$AH$16:$AL$17,2,1)*$K18<$AG$17,$AG$17,IF(HLOOKUP($K18,$AH$16:$AL$17,2,1)*$K18>$AL$17,$AL$17,HLOOKUP($K18,$AH$16:$AL$17,2,1)*$K18))
How can I modify the formula so that L18 will be blank if K18 is blank?