+ Reply to Thread
Results 1 to 2 of 2

macro to copy values on one sheet based on the values of another sheet.

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Guam
    MS-Off Ver
    2010
    Posts
    30

    macro to copy values on one sheet based on the values of another sheet.

    Hello,
    I need a macro for office 2010 which performs the following:
    I really appreciate your expertise.

    I have data <500 x 500> and inputs <500 x 2>. Inputs contains two values on each row on the data sheet. I would like to use the two values in the inputs sheet to to copy all the values that fall between them on the data sheet then list those values on a third sheet named output.

    see example below:

    data

    0.6332aaaa0.6307aaaa0.68aaaa0.68aaaa0.65aaaa0.61
    1aaaa0.9633aaaa0.947aaaa0.91aaaa0.92aaaa0.96
    4.44aaaa4.5aaaa4.54aaaa4.926aaaa5.22aaaa5.52

    Inputs
    0.6307aaaa0.61
    1aaaa0.91
    4.5aaaa5.22

    Output
    0.6307aaaa0.68aaaa0.68aaaa0.65aaaa0.61
    1aaaa0.9633aaaa0.947aaaa0.91
    4.5aaaa4.56aaaa4.926aaaa5.22
    Attached Files Attached Files
    Last edited by buntalan80; 02-25-2013 at 09:48 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: macro to copy values on one sheet based on the values of another sheet.

    Its better you explain with a sample file.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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