Results 1 to 7 of 7

is there a For(<variable>,<low range>,<high range>) like command?

Threaded View

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Fort McMurray, Alberta
    MS-Off Ver
    Excel 2003
    Posts
    14

    Lightbulb is there a For(<variable>,<low range>,<high range>) like command?

    I made a schedule planner, a few google searches and some brainstorming later and i couldnt find a solution i could make sense of for looping the huge string of if logic to to infinity, or until out process has an upset.

    =IF(A20=$B$2,"SWITCH",IF(AND(A20-$B$2<$B$1/24,A20-$B$2>0),"CHARGING",IF(A20-$B$2=$B$1/24,"Switch",IF(AND(A20-$B$2>$B$1/24,A20-$B$2<($B$1+2)/24),"STEAM TO B/D",IF(AND(A20-$B$2>($B$1+2)/24,A20-$B$2<($B$1+7)/24),"WATER QUENCH",IF(AND(A20-$B$2>($B$1+7)/24,A20-$B$2<($B$1+7.5)/24),"VENTING",IF(AND(A20-$B$2>($B$1+7)/24,A20-$B$2<($B$1+9)/24),"DRAINING",IF(AND(A20-$B$2>=($B$1+9)/24,A20-$B$2<($B$1+11)/24),"CUTTING",IF(AND(A20-$B$2>($B$1+11)/24,A20-$B$2<($B$1+17)/24),"MAINTENANCE WINDOW",IF(AND(A20-$B$2>($B$1+17)/24,A20-$B$2<($B$1+18)/24),"O2 FREE & PRESSURE TEST",IF(AND(A20-$B$2>($B$1+18)/24,A20-$B$2<($B$1+21)),"LATEST VAPOR HEAT",IF(A20-$B$2=42/24,"SWITCH"))))))))))))

    thats the wall-o-text formula .. if it makes any difference

    i need it to repeat on multiples of $B$1

    any help is appreciated!

    thanks!
    Last edited by bweslake; 10-08-2014 at 02:11 AM. Reason: more accuracy

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. high and low from data range
    By censura in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2013, 11:00 AM
  2. [SOLVED] Copy/Paste Values from Variable Range to Corresponding Variable Range
    By Cpetersoc in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-14-2012, 08:20 AM
  3. Variable in the Range command
    By theriverwolf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-24-2010, 06:45 PM
  4. Range variable not working in match command
    By jamielill in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2009, 03:45 AM
  5. Syntax for Range command with a variable
    By nebb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2007, 12:14 PM

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