+ Reply to Thread
Results 1 to 5 of 5

Data validation based on another cell containing specific text

  1. #1
    Registered User
    Join Date
    10-10-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    21

    Data validation based on another cell containing specific text

    It's always the seemingly simple ones that stump me...!

    Can anyone help with a data validation rule in cell B2, that restricts the value entered to less than 21, IF, cell A2 contains "Apples". Otherwise, the value entered should be less than 6 for any other value in cell A2?

    Tried a basic =IF() statement, and various =AND() ones, but as usual...the formula escapes me.

    Regards,
    SiPH

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Data validation based on another cell containing specific text

    Try this in DV>>Custom

    =IF(A2="Apples",B2<21,B2<6)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Data validation based on another cell containing specific text

    Try this if value is to be less than your numbers:
    Custom
    =IF(A2="Apples",B2<21,B2<6)
    If less than or equal to, this
    =IF(A2="Apples",B2<=21,B2<=6)

    Hope this helps

    Hope
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Registered User
    Join Date
    10-10-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Data validation based on another cell containing specific text

    Perfect, thanks very much Sixthsense & Drewolf

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Data validation based on another cell containing specific text

    You are welcome

+ 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] VBA to pull data from worksheet to a new sheet based on specific text cell value
    By TalResha in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-13-2013, 02:11 AM
  2. [SOLVED] loop through certain ranges and put down specific text based on previous cell with data
    By liz5818 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2013, 01:43 PM
  3. Updating Two Pivot Filters based on Two Data Validation Cell Text
    By garam082981 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-13-2012, 01:21 PM
  4. [SOLVED] Displaying Specific Text in Cell Based on Text in Another
    By wowcrofty in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2012, 12:11 PM
  5. Adding text to a cell based on validation list
    By fmluder93 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2008, 05:38 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