+ Reply to Thread
Results 1 to 2 of 2

Select any row for A column if any of 3 columns B,C or D are lower than 10

  1. #1
    Registered User
    Join Date
    05-01-2020
    Location
    Madrid
    MS-Off Ver
    Office 2013
    Posts
    1

    Select any row for A column if any of 3 columns B,C or D are lower than 10

    Hi,

    I want to select all row of column A (names of products) that have a concetration less to 10 in any of B (horses), C(cows), D(elephants).

    I mean, if concentration of product XXX is less than 10 in horses but not in cows or elephants I want to select it. Same if the condition appear in two or 3 of the animals.

    Could anyone help me?

    Many thanks

    Andrea

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Select any row for A column if any of 3 columns B,C or D are lower than 10

    Assuming your product names are in A2:Ax, and concentrations in B2:Dx (x = last row of data), you can use Conditional Formatting to highlight the products in column A where a value below 10 exists in B:D for that row.

    Select A2:Ax, then click Conditional Formatting > New Rule... > Use a formula to determine which cells to format
    In the formula box below, type: =AND(MIN(B2:D2)<10,COUNT(B2:D2)>0)
    Click the Format button to set the Fill/Font colors, etc., then click OK a couple times to return to your worksheet.

    The formula checks if the minimum value in columns B:D for each row is below 10 AND if there is at least one value entered in B:D for that row. (If it didn't check for at least one value, the condition would be true with three blank cells.) Note that the row value in the CF formula will auto-adjust and apply to the individual rows.

+ 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. column vs. columns.select
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-23-2015, 09:57 PM
  2. [SOLVED] VBA code to select multiple columns with upper bound (j) & lower bound(i)
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 07-15-2014, 10:56 AM
  3. [SOLVED] VBA code to select multiple columns with upper bound (j) & lower bound(i)
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2014, 12:36 AM
  4. Replies: 1
    Last Post: 02-04-2014, 01:57 PM
  5. select only certain columns depending upon last row in column A
    By mickjjuk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2013, 11:42 AM
  6. [SOLVED] need to select closest match using vlookup if it higher or lower
    By vlookup help pls in forum Excel General
    Replies: 1
    Last Post: 03-01-2006, 03:35 PM
  7. [SOLVED] How to select columns using column index
    By luvgreen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2005, 10:05 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