Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
BM BM is offline
external usenet poster
 
Posts: 10
Default Help with a nested IF statement.

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Help with a nested IF statement.

IF is limited to 7 repetitions. Looks like you have 8 in the formula below.

"BM" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Help with a nested IF statement.


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)


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=572835

  #4   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Help with a nested IF statement.

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


"VBA Noob" wrote:


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)


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=572835


  #5   Report Post  
Posted to microsoft.public.excel.misc
BM BM is offline
external usenet poster
 
Posts: 10
Default Help with a nested IF statement.

Thanks for the replies! I will try this when I get on my work computer.

"JMB" wrote:

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


"VBA Noob" wrote:


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)


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=572835




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested IF statement with VLOOKUP James Hamilton Excel Discussion (Misc queries) 1 August 16th 06 07:46 AM
:confused: Nested if then else statement polk383 Excel Worksheet Functions 4 May 28th 06 06:02 PM
Nested IF Statement Question EleKtriKaz Excel Discussion (Misc queries) 6 April 5th 06 06:21 AM
Problem with nested IF_OR statement DOOGIE Excel Worksheet Functions 7 June 24th 05 03:27 AM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM


All times are GMT +1. The time now is 08:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"