+ Reply to Thread
Results 1 to 5 of 5

lookup

  1. #1
    Registered User
    Join Date
    02-04-2009
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    16

    lookup

    i want a macro to search all of column A in multiple sheets for a date that has been put into an input box.

    the matching dates have data corresponding to them in that row. i want the date and data from the row to then be copied into a new sheet.

    Please Login or Register  to view this content.
    this is what i have so far.

    1:7 returns columns 1:7?
    where do i specify where i want the data to be shown and do i need to write multiple lookup statements to search through the A columns in all the different sheets or can i get it to look in all of them at once?
    Last edited by ~Lews Therin~; 02-19-2009 at 01:38 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: lookup

    Hello ~Lews Therin~,

    Is the date located in the range of A3:G3000 or just in A3:A3000? If it is in A3:A3000, you don't to use VLOOKUP.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    02-04-2009
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: lookup

    column A is updated daily with the date. for example i want rows cells containing 17/2/09in column A from all sheets and the data in the next 6 columns to be displayed in a separate sheet. does that help?

    the date is only in A column.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: lookup

    Hello ~Lews Therin~ ,

    Thank you, that is perfectly clear. I'll write up a test macro.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: lookup

    Hello

    This macro should be a start in the right direction. Whenever a valid date is entered, a new sheet will be added to the workbook. It would probably be a good idea to choose a name for this sheet.The macro could then verify the sheet's presence. The data could then either be appended or overwritten.
    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)

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