Hi everyone,
I have been struggling to find an alternative to this for ages and have no idea what to do, any advice would be much appreciated.
I have an excel sheet, that has a list of people and they each select a team. The teams are home and away, and listed in cell ranges L4:L15 (home) and N4:N15 (away). I need to automatically populate the points, which are displayed in cell ranges K4:K15 (home) and O4:O15 (away).
The formula I have tried is at the bottom of the post, but it has too many levels of nesting. I basically want it to say something like this:
If value in cell B2, equals team in L4, display points shown in cell K4
Or...
If value in cell B2, equals team in L5, display points shown in cell K5
Or...
If value in cell B2, equals team in L6, display points shown in cell L6
this is for all the home teams. But the formula then carries on in case an away team has been chosen, ie:
If value in cell B2, equals team in N4, display points shown in cell O4
etc...
Here is the formula and thank you in advance if someone can help:
=IF(B2=$L$4,$K$4,(IF(B2=$L$5,$K$5,(IF(B2=$L$6,$K$6,(IF(B2=$L$7,$K$7,(IF(B2=$L$8,$K$8,(IF(B2=$L$9,$K$9,(IF(B2=$L$10,$K$10,(IF(B2=$L$11,$K$11,(IF(B2=$L$12,$K$12,(IF(B2=$L$13,$K$13,(IF(B2=$L$14,$K$14,(IF(B2=$L$15,$K$15,(IF(B2=$N$4,$O$4,(IF(B2=$N$5,$O$5,(IF(B2=$N$6,$O$6,(IF(B2=$N$7,$O$7,(IF(B2=$N$8,$O$8,(IF(B2=$N$9,$O$9,(IF(B2=$N$10,$O$10,(IF(B2=$N$11,$O$11,(IF(B2=$N$12,$O$12,(IF(B2=$N$13,$O$13,(IF(B2=$N$14,$O$14,(IF(B2=$N$15,$O$15)))))))))))))))))))))))))))))))))))))))))))))))
I have been struggling to find an alternative to this for ages and have no idea what to do, any advice would be much appreciated.
I have an excel sheet, that has a list of people and they each select a team. The teams are home and away, and listed in cell ranges L4:L15 (home) and N4:N15 (away). I need to automatically populate the points, which are displayed in cell ranges K4:K15 (home) and O4:O15 (away).
The formula I have tried is at the bottom of the post, but it has too many levels of nesting. I basically want it to say something like this:
If value in cell B2, equals team in L4, display points shown in cell K4
Or...
If value in cell B2, equals team in L5, display points shown in cell K5
Or...
If value in cell B2, equals team in L6, display points shown in cell L6
this is for all the home teams. But the formula then carries on in case an away team has been chosen, ie:
If value in cell B2, equals team in N4, display points shown in cell O4
etc...
Here is the formula and thank you in advance if someone can help:
=IF(B2=$L$4,$K$4,(IF(B2=$L$5,$K$5,(IF(B2=$L$6,$K$6,(IF(B2=$L$7,$K$7,(IF(B2=$L$8,$K$8,(IF(B2=$L$9,$K$9,(IF(B2=$L$10,$K$10,(IF(B2=$L$11,$K$11,(IF(B2=$L$12,$K$12,(IF(B2=$L$13,$K$13,(IF(B2=$L$14,$K$14,(IF(B2=$L$15,$K$15,(IF(B2=$N$4,$O$4,(IF(B2=$N$5,$O$5,(IF(B2=$N$6,$O$6,(IF(B2=$N$7,$O$7,(IF(B2=$N$8,$O$8,(IF(B2=$N$9,$O$9,(IF(B2=$N$10,$O$10,(IF(B2=$N$11,$O$11,(IF(B2=$N$12,$O$12,(IF(B2=$N$13,$O$13,(IF(B2=$N$14,$O$14,(IF(B2=$N$15,$O$15)))))))))))))))))))))))))))))))))))))))))))))))