+ Reply to Thread
Results 1 to 3 of 3

How do I pass contents of a cell to a string and then use that string value to search

  1. #1
    Registered User
    Join Date
    10-19-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    How do I pass contents of a cell to a string and then use that string value to search

    I have a sheetA of string values(Test Names) in a column. In sheetB I have the same string values(Test Names) in the top row. Each Test Name is mapped to some codes that are listed below it -one in each row.

    I want to find the Test Name in Sheet A, in Sheet B, then copy all the codes mapped to it in SheetC. Then I want to copy values for the Test Name in Sheet A(in 2 consecutive cells) and paste them in the corresponding cells in SheetC. I have attached a file here with the 3 sheets.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: How do I pass contents of a cell to a string and then use that string value to se

    hi, ExcelDud, please check attachment, run code "test".
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: How do I pass contents of a cell to a string and then use that string value to se

    i AM returning the file now named as exceldud.xlsm
    the names of sheet1 and sheet 2 are modified as given in the enclosed file
    new sheet D is inserted which gives the result of macro

    in sheet 1 the number of sub names in each of the names are given in column G as culled from sheet 2. so there can be only 82 subnames.

    the macros are in module of the file and are also repeated here.

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by venkat1926; 10-21-2011 at 04:22 AM.

+ 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