+ Reply to Thread
Results 1 to 3 of 3

Crosscheck if the values mentioned in one range are present in refernce range through vba

  1. #1
    Registered User
    Join Date
    03-27-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    56

    Crosscheck if the values mentioned in one range are present in refernce range through vba

    There are two columns
    A: Where values are mentioned manually
    C: The list of expected values (reference values)

    Could someone please help with a macro where
    1. Each cell of range1 A:A(lastrow with data) is crosschecked with range2 C:C(lastrow with data)
    2. If value isnot found then message like "value " & range1.value & "mentioned in" range1.address & "is not found in " & range2
    3. exit sub on error

    With attached sheet, it should show error for A5 as the value "CN" is not present in the column C

    Thanks in advance for the help.

  2. #2
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,359

    Re: Crosscheck if the values mentioned in one range are present in refernce range through

    Maybe:
    Please Login or Register  to view this content.
    If things don't change they stay the same

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: Crosscheck if the values mentioned in one range are present in refernce range through

    Some thing like this should work.
    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)

Similar Threads

  1. [SOLVED] Trouble with function that returns an average of the values present in a named range
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-02-2020, 06:53 PM
  2. Replies: 4
    Last Post: 07-02-2020, 06:53 PM
  3. [SOLVED] Formula to create a month range based on whether or not values are present in a range
    By MSCHICK1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-21-2019, 10:10 AM
  4. values from range present in string?
    By nielsb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-23-2015, 12:30 PM
  5. How to make a named range null or empty if count = 0 (no values present)
    By MCunningham in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2013, 12:12 PM
  6. [SOLVED] present values as percentage of sum total of range
    By Christopher135 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2013, 07:50 PM
  7. [SOLVED] Auto Hiding rows based on range/data present or not present.
    By raze in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 02-10-2013, 11:27 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