Help with a nested IF statement.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If I remove: IF(MONTH($C$29)=8,$C$28/12*8) The formula works fine. I
am having trouble finding the problem with this part of the formula.

=IF(MONTH($C$29)=1,$C$28/12*3,IF(MONTH($C$29)=2,$C$28/12*2,IF(MONTH($C$29)=3,$C$28/12*1,IF(MONTH($C$29)=4,$C$28/12*12,IF(MONTH($C$29)=5,$C$28/12*11,IF(MONTH($C$29)=6,$C$28/12*10,IF(MONTH($C$29)=7,$C$28/12*9,IF(MONTH($C$29)=8,$C$28/12*8,))))))))

Any suggestion is appreciated.

Thanks,

Bill
 
Could try Choose

=CHOOSE($C$29,$C$28/12*3,$C$28/12*2,$C$28/12*1,$C$28/12*12,$C$28/12*11,$C$28/12*10,$C$28/12*9,$C$28/12*8)
 
A suggestion for shortening it a little:
=$C$28/12*CHOOSE($C$29, 3, 2, 1, 12, 11, 10, 9, 8)
 

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

Back
Top