+ Reply to Thread
Results 1 to 6 of 6

If a cells value is greater or less than the value of another cell then run macros

  1. #1
    Registered User
    Join Date
    01-09-2015
    Location
    England
    MS-Off Ver
    2010
    Posts
    8

    If a cells value is greater or less than the value of another cell then run macros

    Hello,

    I already have this code which runs a macro when the target cell is changed and it works, but what I need it to do is:

    If A6 value is greater than cell E7 then run macro1
    If A6 value is equal to cell E7 value then do nothing
    and if A6 cell value is less than E7 value then run macro2.

    What do I need to add to the below code to achieve this? Any help would be appreaciated thanks.

    Great forum btw!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: If a cells value is greater or less than the value of another cell then run macros

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-09-2015
    Location
    England
    MS-Off Ver
    2010
    Posts
    8

    Re: If a cells value is greater or less than the value of another cell then run macros

    Thank you John that's exactly what I was after. It works great

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: If a cells value is greater or less than the value of another cell then run macros

    Try this
    Please Login or Register  to view this content.
    Last edited by Vikas_Gautam; 01-09-2015 at 01:09 PM.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  5. #5
    Registered User
    Join Date
    01-09-2015
    Location
    England
    MS-Off Ver
    2010
    Posts
    8

    Re: If a cells value is greater or less than the value of another cell then run macros

    Thanks for the replies both work great.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: If a cells value is greater or less than the value of another cell then run macros

    You're welcome. Glad to help out.

+ 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. Only Sort Cells if Cell Values are Greater than 0
    By lday75 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-15-2014, 03:07 PM
  2. Find cells with value greater than value of other cell+1
    By kcho in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 04-19-2013, 08:47 PM
  3. Replies: 3
    Last Post: 09-29-2010, 01:30 AM
  4. Taking the greater cell value of 3 of 4 cells...
    By jerharder5 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2009, 09:50 AM
  5. Row removal where cell value is greater than reference cells
    By smurray444 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2007, 11:53 AM

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