+ Reply to Thread
Results 1 to 3 of 3

Please help macro genius: match 2 vals & return 3rd!

  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Please help macro genius: match 2 vals & return 3rd!

    Hi there!

    I'm trying to write a macro that will ask a user to input two values and search for a match for the first value in column A and the second value in column b (values must be in the same row).

    If a match in both columns is found then I would like the macro to return the cell value of column c in the same row (eg msgbox "Match found: column c value")

    If the search can only find 1 of the 2 values in the same row or there are no matches then I would like the macro to say something like "No Match Found".

    Your help would be very, veery much appreciated!!!!!

    Thanks in advance - Pixelnation

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Please help macro genius: match 2 vals & return 3rd!

    Welcome to the Board, however, I'm afraid...

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Please help macro genius: match 2 vals & return 3rd!

    Cross post:
    http://www.mrexcel.com/forum/showthread.php?t=418194
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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