+ Reply to Thread
Results 1 to 3 of 3

If / Then statement with multiple conditions for range of cells

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    Austin
    MS-Off Ver
    2010
    Posts
    27

    If / Then statement with multiple conditions for range of cells

    I want to create a macro that outputs the text "Priority" in column F if the adjacent cell (column E) is greater than 7% and the cell in column D is greater than 10. I want this code to apply to the entire sheet (there are 900 rows). What would the code be for that function?

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: If / Then statement with multiple conditions for range of cells

    What about
    F12 =IF(AND((D12>10);(E12>0.07));"Priority";"")
    Copy and drop down as needed
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    08-10-2017
    Location
    Austin
    MS-Off Ver
    2010
    Posts
    27

    Re: If / Then statement with multiple conditions for range of cells

    Thanks! Yeah, I ended up using a formula instead. Some things are easier with formulas.

+ 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. IF Statement with Multiple Conditions and Multiple True/False Results
    By ellesutgr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2015, 04:51 PM
  2. True/False for Multiple conditions and formats in a range of cells
    By Vatoemperor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-13-2015, 03:51 PM
  3. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  4. [SOLVED] PROBLEM: IF statement with conditions (multiple cells)
    By alexpope in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-23-2015, 07:53 AM
  5. Multiple conditions in IF statement
    By birdablaze in forum Excel General
    Replies: 4
    Last Post: 03-14-2012, 05:37 PM
  6. Multiple conditions in one IF statement
    By phaley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2008, 04:59 PM
  7. Case Statement using a Range of Conditions
    By Andrew Bird via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2005, 12:06 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