+ Reply to Thread
Results 1 to 4 of 4

Finding if an entered value exist from a column and returning the address of the cell

  1. #1
    Registered User
    Join Date
    08-18-2020
    Location
    Kuala Lumpur
    MS-Off Ver
    MS Office 2019
    Posts
    28

    Finding if an entered value exist from a column and returning the address of the cell

    Hey guys, I have a task that I need to complete, and I am struggling to find the right VBA code

    What I want to do is to enter a value inside a cell ( E.g E5) , and that value should be compared with a column of the same workbook( E.g, A2:A250), if the value exist , a message box of some sort should appear to indicate the value is found. I was able to figure this out using the Countifs function on vba, but my problem start after this. Now I would require the cell address of of the column cell where the value existed, ( Eg if E5 matches with A15), I should be able to get a message box that my value was found in A15. Then, what I would have to do is to compare the dimensions in the adjacent columns of E5(inputted value) , which is F5 to ensure the dimensions entered is accurate to the dimension of the adjacent column found earlier which is B15 in this case( since it is next to A15). I need a code that does not involve for loop as it was requested the solution should not require repetitive pressing the macro button. Can someone help me out here? Thanks!!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Finding if an entered value exist from a column and returning the address of the cell

    Sounds like an INDEX/MATCH formula could do this for you.

    Attach a sample Excel workbook, by following the instructions given in the yellow banner at the top of the screen.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: Finding if an entered value exist from a column and returning the address of the cell

    try below although with a for loop but it is inside a worksheet change

    Please Login or Register  to view this content.

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

    Re: Finding if an entered value exist from a column and returning the address of the cell

    try
    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] Finding the address of the cell that houses the maximum value in a column range
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-05-2019, 12:35 PM
  2. [SOLVED] Finding Max value in column and returning value from left adjacent cell
    By Haidar123 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2019, 03:33 AM
  3. Finding Certain Cell Value and Returning the Cell Address
    By meacoldinch in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-15-2014, 01:55 PM
  4. [SOLVED] returning the next cell address in a column
    By 59amcad in forum Excel General
    Replies: 3
    Last Post: 02-05-2014, 12:33 PM
  5. [SOLVED] Finding a number in a column and returning the cell 5 columns to the left
    By bbrunof in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2013, 04:16 PM
  6. Finding Certain Cell Value and Returning the Cell Address
    By meacoldinch in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 02-09-2013, 02:06 AM
  7. Replies: 3
    Last Post: 03-09-2012, 02:20 PM

Tags for this Thread

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