+ Reply to Thread
Results 1 to 7 of 7

Vlookup in a range

  1. #1
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Vlookup in a range

    I want the macro to use every value in corresponding rows (sheets("1").range("E8:e12") and corresponding values in "F8:f12" ) to be looked up in another sheet ("2") in range(d5:d13)

    and values from sheet "1" being taken away from corresponding values in Sheets("2") and resuts pasted in "results" column.

    Here an example spread sheet
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: Vlookup in a range

    Can you provide a sample showing what the results are supposed to look like? I might be able to reverse engineer the response. I'm not understanding the requirement from your description.

  3. #3
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Vlookup in a range

    Please Login or Register  to view this content.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  4. #4
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Vlookup in a range

    Quote Originally Posted by walruseggman View Post
    Please Login or Register  to view this content.

    Perfect!
    Well done. That is what I needed. Rep to you!

  5. #5
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Vlookup in a range

    Quote Originally Posted by nosense View Post
    Perfect!
    Well done. That is what I needed. Rep to you!
    I have changed it to suit my spreadsheet and it does paste values where I want (into declare "c" variable ranges) but still get an error and macro is stopped. Error does say "Type mismatch"

    My code is :
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Vlookup in a range

    I have changed it to suit my spreadsheet and it does paste values where I want (into declare "c" variable ranges) but still get an error and macro is stopped. Error does say "Type mismatch"

    My code is :
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Vlookup in a range

    Quote Originally Posted by walruseggman View Post
    Please Login or Register  to view this content.
    I have found a solution .
    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] VLOOKUP and Fill Handle Problem: Selected Range vs. Named Range
    By Menenius in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-12-2016, 08:50 PM
  2. Match Value in range with value in another range & output third value -vlookup for ranges?
    By tomhardy1491 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2015, 01:24 PM
  3. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  4. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  5. Replies: 1
    Last Post: 09-04-2013, 07:23 AM
  6. Replies: 6
    Last Post: 09-04-2012, 10:35 AM
  7. Insert Vlookup into table_array of Vlookup with named range
    By Denise in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2005, 07:06 PM

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