+ Reply to Thread
Results 1 to 6 of 6

Allocating info

  1. #1
    Registered User
    Join Date
    12-27-2008
    Location
    Christchurch, New Zealand
    Posts
    92

    Allocating info

    I have two worksheets, 1 and 2. Worksheet 1 contains data exported from a seperate program that I can't alter. In both worksheets column A is labeled "Name", column B is "Skill 1", column C is "Skill 2" and column C is "Skill 4".

    When the data is exported to worksheet 1 skills will always start in skill 1 even though the corresponding name does not have that skill. Is there a way that when the info is transferred to worksheet 2 that the skills will be in the correct column?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,103

    Re: Allocating info

    Can you upload some dummy example?
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    12-27-2008
    Location
    Christchurch, New Zealand
    Posts
    92

    Re: Allocating info

    How do I do that?

  4. #4
    Registered User
    Join Date
    12-27-2008
    Location
    Christchurch, New Zealand
    Posts
    92

    Re: Allocating info

    Hopefully this worked. Worksheet 2 is how I need it to end up.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Allocating info

    Okay, here's what I came up with.
    First, instead of the headers Skill1, 2, etc,on sheet 2 I changed them to what you are expecting in sheet 1 so that I can directly refer to that in my Indexing and Matching (e.g. aa, bb, cc).

    Here is the formula (In H4) based on the tables in your example
    Please Login or Register  to view this content.
    It's a pretty complex formula but it works. (See attachment) To make it less complex for your workbook (esp. since you'll need to include Sheet1! and Sheet2!), I'd use assigned names on as many fixed ranges as you can (e.g. Sheet1!A4:A9, Sheet1!B4:D9). Hope this helps.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Allocating info

    if its as simplistic as that ie names are always in the same order and skill 1 is always the same code
    with codes above the skill number in h2:j2
    =IF(ISNUMBER(MATCH(Sheet1!H$2,$B4:$D4,0)),Sheet1!H$2,"") in h4 dragged across and down
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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