It seems I have a simple problem however I have tried an If Statement, Vlookup, and an Index formula to no avail. What I am trying to accomplish is retrieve data from a table that has three columns - all numeric. The formula I want is to say if cell A1 is greater than column one and less than column two, return column three. The IF statement below does not work:
<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=64 border=0><COLGROUP><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 15pt" height=20><TD id=td_post_1505372 style="BORDER-RIGHT: #ffffff; BORDER-TOP: #ffffff; BORDER-LEFT: #ffffff; WIDTH: 48pt; BORDER-BOTTOM: #ffffff; HEIGHT: 15pt; BACKGROUND-COLOR: transparent" width=64 height=20>=IF(A4>=$A$16,D16,IF(A4<=$B$16,D16,IF(A4>=$A$17,D17,IF(A4<=$B$17,D17,IF(A4>=$A$18,D18,IF(A4<=$B$18,D18))))))</TD></TR></TBODY></TABLE>
Thank you,
-D
<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=64 border=0><COLGROUP><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 15pt" height=20><TD id=td_post_1505372 style="BORDER-RIGHT: #ffffff; BORDER-TOP: #ffffff; BORDER-LEFT: #ffffff; WIDTH: 48pt; BORDER-BOTTOM: #ffffff; HEIGHT: 15pt; BACKGROUND-COLOR: transparent" width=64 height=20>=IF(A4>=$A$16,D16,IF(A4<=$B$16,D16,IF(A4>=$A$17,D17,IF(A4<=$B$17,D17,IF(A4>=$A$18,D18,IF(A4<=$B$18,D18))))))</TD></TR></TBODY></TABLE>
Thank you,
-D