Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default How many nested statements is this?

I think there are 8...7 IF statements and then the AND/OR under them.
Any suggestions for rewriting this to fit under the limit. I can pull
the first IF into VBA code but the references get quite difficult and
lengthy...but it can be done.

=IF(OR(Update!RC3R10C,Update!RC4<R10C[-1]),0,
IF(Update!RC4=R10C[-1],1,
IF(AND(Update!RC3=R10C[-1],Update!RC4<R10C),Update!RC7,
IF(AND(Update!RC3<=R10C[-1], Update!RC4=R10C),R10C-Update!RC3,
IF(AND(Update!RC3<=R10C[-1],Update!RC4=R10C),R10C-R10C[-1],
IF(AND(Update!RC3<R10C[-1],Update!RC4<=R10C),Update!RC4-R10C[-1]+1,
IF(AND(Update!RC3=R10C[-1],Update!RC4R10C),R10C-Update!RC3,9999)))))))


Thanks,
John

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default How many nested statements is this?

If you are doing it in VBA, is there any reason to put the formula in,
why not just put the value?

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 STATEMENTS [email protected] New Users to Excel 6 July 20th 08 01:07 PM
Nested IF statements Karrisac15 New Users to Excel 1 July 19th 07 08:06 PM
Nested If Statements Jasmine Excel Worksheet Functions 2 January 26th 06 03:47 PM
nested if statements steve Excel Programming 7 July 28th 05 06:22 PM
Nested If statements Robert Christie[_3_] Excel Programming 2 January 23rd 05 05:27 PM


All times are GMT +1. The time now is 09:02 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"