+ Reply to Thread
Results 1 to 9 of 9

IDing cells in one worksheet, find them in another, and copying respective data

  1. #1
    Registered User
    Join Date
    06-24-2005
    Posts
    18

    IDing cells in one worksheet, find them in another, and copying respective data

    From what I gather this is extremely complicated, so I am grateful for any attempt to answer:

    Refer to attachment 1: here you see a listing of sensors and their values the sensor is the first string and the underlying value is after the underscore ie: sensor=PGA-HCF-nasalC-10aUB-s2 and the value is _signal.

    that worksheet contains every B sensor, evidenced by PGA-HCF-nasalC-10aUB -s2

    there is another worksheet called 'a' that has all the a sensors: PGA-HCF-nasalC-10aUA -s2

    the number '10' changes in each sensor...ie: PGA-HCF-nasalC-11aUA -s2 may be another sensor.

    This raw data contains many more sensors and values than ill ever need, so a list of the necessary sensors is in a worksheet called 'sensors'. refer to attachment 2
    this worksheet contains sensors with different numberical values (the 10) and both a and b

    what i need to do is essentially identify each sensor in the sensors worksheets and search for the three columns in the 'a' or 'b' worksheet that contain that sensor, copy those columns and paste them into a new worksheet.

    the raw data goes down 23,000 rows btw.

    thank u all!
    AIM me @ decept1on or post here if u have any insight or need clarification.
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    06-24-2005
    Posts
    18
    bump^^^^^^^^

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,803
    Here's a start:

    In the sheet represented by 2.gif:
    A2=2, A3=3, etc. using autofill or other tool
    B2=HLOOKUP(B$1,Adata!$A$1:$AA$23000,$A2,FALSE) copy to H2
    E2=HLOOKUP(B$1,Bdata!$A$1:$AA$23000,$A2,FALSE) copy to K2
    copy row 2 down as far as you need.

    Does that do what you want, or did misunderstand what you need?

  4. #4
    Registered User
    Join Date
    06-24-2005
    Posts
    18
    im confused, where do I put that code?

    im going to make a sample sheet that doesnt use so much data so i can host the xml files perhaps

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,803
    Those are cell values/formulas. They are placed directly in the worksheet.

  6. #6
    Registered User
    Join Date
    06-24-2005
    Posts
    18
    http://www.savefile.com/filehost/files3.php?fid=3989842

    a full xml example file, should be very straightforward.

    ill try that

  7. #7
    Registered User
    Join Date
    06-24-2005
    Posts
    18
    it just pastes the plain text 'B2=HLOOKUP(B$1,Adata!$A$1:$AA$23000,$A2,FALSE) copy to H2' into the cell B2, not like formulae or anytihng

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,803
    When entering the formulas, don't include single quotes or the initial B2. Just enter =HLOOKUP(....)

  9. #9
    Registered User
    Join Date
    06-24-2005
    Posts
    18
    Please Login or Register  to view this content.

    that is what i have so far, but it only selects the first searched column

    im running sub poo

+ 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