+ Reply to Thread
Results 1 to 2 of 2

How many nested statements is this?

  1. #1
    johnhildreth@citynet.net
    Guest

    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!RC3>R10C,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!RC4>R10C),R10C-Update!RC3,9999)))))))


    Thanks,
    John


  2. #2
    aidan.heritage@virgin.net
    Guest

    Re: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1