+ Reply to Thread
Results 1 to 3 of 3

Macro for If Formula is Greater than Formula AND other conditionals

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    TX
    MS-Off Ver
    Excel 2007
    Posts
    21

    Macro for If Formula is Greater than Formula AND other conditionals

    I've got a situation where I'm checking for various things: If one string = another string and if a 2nd string = another different string and and if a formula >= 0 then, elseif

    Please Login or Register  to view this content.
    I have the Blue_1_Dead macro already set to another button, so I know it works. My Popup box seems to work properly, clicking Yes gives me my MsgBox so I'm assuming that the macro is running and/or the formula in the ElseIf is running. The thing is, Battling_Teams!B9 never changes for me. (Blue_1_dead changes Battling_Teams!B9 and four other cells, so no matter what, B9 should change).

    Where am I going wrong?
    Last edited by Elieson; 07-24-2015 at 03:36 PM.

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Macro for If Formula is Greater than Formula AND other conditionals

    I don't know what ("Forecast!B10+Forecast!B17-Forecast!B16") would produce, but it should be
    Please Login or Register  to view this content.
    If that still doesn't work, put a debug stop on your If statement and step through to see what happens and what the cell values are.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Registered User
    Join Date
    01-11-2014
    Location
    TX
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Macro for If Formula is Greater than Formula AND other conditionals

    I ended up redoing my formula and macro entirely after spotting a mistake. For those interested;


    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 03-13-2015, 01:44 PM
  2. World Cup Formula Greater/Less value formula.
    By mmeldrum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2014, 05:08 PM
  3. Nested AND & OR Conditionals in a Formula
    By flyersfansince87 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-22-2014, 10:27 AM
  4. [SOLVED] Help With Greater Than & Less Than Formula
    By garrett.grillo in forum Excel General
    Replies: 4
    Last Post: 01-29-2012, 08:10 PM
  5. using less than and greater than in one formula
    By claudiah0119 in forum Excel General
    Replies: 2
    Last Post: 04-04-2011, 07:51 PM
  6. Less than AND greater than formula
    By johnnyd65 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-11-2010, 05:27 PM
  7. Replies: 6
    Last Post: 07-01-2005, 07:05 PM

Tags for this Thread

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