I have a range of cells I would like to insert the below formula into. The range is “G5:G10000” keeping in mind the formula needs to change for each row as it would if you copied and pasted it down a column.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
=IF(AND(E5>=$C$1,E5<=$D$1-1),$C$2,IF(AND(E5>=$D$1,E5<=$E$1-1),$D$2,IF(AND(E5>=$E$1,E5<=$F$1-1),$E$2,IF(AND(E5>=$F$1,E5<=$G$1-1),$F$2,IF(AND(E5>=$G$1,E5<=$H$1-1),$G$2,IF(AND(E5>=$H$1,E5<=$I$1-1),$H$2,IF(AND(E5>=$I$1,E5<=$J$1-1),$I$2,IF(AND(E5>=$J$1,E5<=$K$1-1),$J$2,0))))))))
Thanks for the assistance
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
=IF(AND(E5>=$C$1,E5<=$D$1-1),$C$2,IF(AND(E5>=$D$1,E5<=$E$1-1),$D$2,IF(AND(E5>=$E$1,E5<=$F$1-1),$E$2,IF(AND(E5>=$F$1,E5<=$G$1-1),$F$2,IF(AND(E5>=$G$1,E5<=$H$1-1),$G$2,IF(AND(E5>=$H$1,E5<=$I$1-1),$H$2,IF(AND(E5>=$I$1,E5<=$J$1-1),$I$2,IF(AND(E5>=$J$1,E5<=$K$1-1),$J$2,0))))))))
Thanks for the assistance