+ Reply to Thread
Results 1 to 4 of 4

(And) If-Then Statements

  1. #1
    Registered User
    Join Date
    06-07-2016
    Location
    Pueblo, Colorado
    MS-Off Ver
    7
    Posts
    5

    (And) If-Then Statements

    I am looking for VBA script to do the following:

    If E3 says Slnt and G3 says 200, then I want G3 to still say 200, but be highlighted blue and if it is not 200 then I want it to say nothing.

    I would like to do this from E3:E300 and G3:G300.

    Is this possible? I have many options for Slnt, W, Etc. and they all need to be seperated by color according to the number represented in G. For example, if E3 says Slnt and G3 says 460, then I want it purple.

  2. #2
    Forum Contributor
    Join Date
    08-10-2009
    Location
    nottingham
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: (And) If-Then Statements

    Should be:

    something like this should get you started:

    Please Login or Register  to view this content.
    You'll need to set a variable though for the rows to loop through and reference it within your loop statement.

  3. #3
    Registered User
    Join Date
    06-07-2016
    Location
    Pueblo, Colorado
    MS-Off Ver
    7
    Posts
    5

    Re: (And) If-Then Statements

    How did I set the variable for the rows to loop through and reference?

  4. #4
    Forum Contributor
    Join Date
    08-10-2009
    Location
    nottingham
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: (And) If-Then Statements

    Does this help?

    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. [SOLVED] Nested if statements containing multiple and statements
    By John M. in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-22-2014, 11:48 PM
  2. Reading If statements and formulating values from if statements
    By crnam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2013, 05:20 AM
  3. questions with if statements and nested if statements
    By Pat Excel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-03-2013, 01:41 PM
  4. Multiple nested IF statements and AND statements
    By TonyGetz in forum Excel General
    Replies: 2
    Last Post: 12-14-2010, 03:07 AM
  5. Nested If statements / logic statements
    By Brainless_09 in forum Excel General
    Replies: 3
    Last Post: 06-17-2009, 02:59 PM
  6. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  7. operator statements, shorting when reusing one of the statements?
    By KR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2005, 02:05 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