+ Reply to Thread
Results 1 to 2 of 2

cond. format column referencing value in adjacent cell that is drop down list

  1. #1
    Registered User
    Join Date
    02-28-2019
    Location
    Texas
    MS-Off Ver
    365
    Posts
    1

    cond. format column referencing value in adjacent cell that is drop down list

    Amps vs. Rod Size.

    There should be an attached file that goes along with this description....

    In column "C" I have a cell which has a drop down list using Data Validation. In column "F" I have a cell for the user to insert the amperage they gauged.

    They select the rod size used in column "C" from the drop down list, and then type in the measured amperage in the cell in column "F".

    If drop down list selection is 1/8", then cell in "F" column must contain a number between 75 and 130 or conditional format is to show red background.
    If drop down list selection is 5/32" then cell in "F" column must contain a number between 90 and 185 or conditional format is to show red background.
    If drop down list selection is 3/16" then cell in "F" column must contain a number between 130 and 225 or conditional format is to show red background.

    I'd like to do this with conditional formatting, but that might not be the correct way to get it done. I don't want to do it with Visual and have to use macros.
    This is one item in a form that I'm building, and I would like to keep it simple and hopefully monkey proof.

    Any help would be appreciated.

    Bob
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: cond. format column referencing value in adjacent cell that is drop down list

    Welcome to the forum!

    Firstly, setup your lookup table in this way:

    Excel 2016 (Windows) 32 bit
    H
    I
    J
    20
    rod size amps low amps high
    21
    1/8"
    74
    131
    22
    5/32"
    89
    186
    23
    3/16"
    130
    225
    Sheet: Sheet1

    Then you can use this formula for your CF rule:

    =OR(F14 < VLOOKUP(C14,$H$21:$J$23,2,0),F14 > VLOOKUP(C14,$H$21:$J$23,2,0))

    where $H$21:$J$23 is your lookup table.

    Of course, the lookup table can be as long as you need it to be and could be on another sheet or in hidden columns.
    Attached Files Attached Files
    Last edited by AliGW; 03-01-2019 at 01:58 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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: 3
    Last Post: 06-28-2018, 11:20 PM
  2. Replies: 4
    Last Post: 03-13-2015, 02:32 AM
  3. [SOLVED] Autofill adjacent cell after choose from Drop Down List
    By chinitapr in forum Excel General
    Replies: 1
    Last Post: 10-03-2014, 07:35 PM
  4. [SOLVED] Cell referencing from drop down list
    By Brian148 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-10-2014, 07:08 PM
  5. Excel 2007 : Drop Down List and copy adjacent cell
    By rcarbs in forum Excel General
    Replies: 1
    Last Post: 07-16-2012, 09:06 PM
  6. referencing a cell via a drop down list
    By excellentexcel in forum Excel General
    Replies: 7
    Last Post: 02-21-2009, 06:14 PM
  7. [SOLVED] Cond Format nth Column
    By JudithJubilee in forum Excel General
    Replies: 1
    Last Post: 08-08-2006, 03:51 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