+ Reply to Thread
Results 1 to 3 of 3

Comparing Fields with Multiple Data Ranges

  1. #1
    Registered User
    Join Date
    02-03-2013
    Location
    batavia, ny
    MS-Off Ver
    Excel 2010
    Posts
    7

    Comparing Fields with Multiple Data Ranges

    If i have two fields that i need to compare and in one field i have a word that corresponds with a range (0-79.9="does not meet", 80-100="meets", 100+="exceeds") and in the other field, the user will input a number and the number they input has to correspond with the range associated with the word in the first cell, how do i validate that the number they input corresponds with the range associated with the word in the first cell? For example, they can't have the word "exceeds" with a score of 85 because a score of 85 falls into the "meets" range. They can't have a "meets" with a score of 70 because a score of 70 falls in the "does not meet" range. I am looking for a formula that will compare the two fields and will allow me to display a message if the two fields do not match.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Comparing Fields with Multiple Data Ranges

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: Comparing Fields with Multiple Data Ranges

    From your post, my assumption like this:
    Column A for user input, Column B for validation:

    Try this :
    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)

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