+ Reply to Thread
Results 1 to 4 of 4

Cross Reference item from one colum to items in a new column

Hybrid View

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    Dodge City, KS
    MS-Off Ver
    Excel 2007
    Posts
    14

    Cross Reference item from one colum to items in a new column

    I am trying to figure out a process in which I can filter a large excel document that has one column with current asset numbers & serial numbers. What I need to do in this process is line up the first four digits of a caolumn, with the four digit entries on another column. But, the spreadsheet is a fluid document, in that the information changes when an asset changes locations, which happens rather frequently. Basically what I need to know is a way to filter this document so the the information in the primary row, (Column A) will adjust to line up with the information in another column, without throwing the whole system out of whack.

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

    Re: Cross Reference item from one colum to items in a new column

    So, in col A you have a series of numbers like this
    12345343
    12562345
    25313456
    and in some other column (lets say D) you have 4 digit codes like this
    2531
    1234
    1342
    1256
    And you want the values in Col A to be in the same rows as the codes in col D. Do I have that right?

    Try something like this (if you have trouble, supply more exact info on data locations)

    =IF(SUMPRODUCT((LEFT($A$1:$A$100,4)+0=D1)*ROW($A$1:$A$100))>0, INDEX($A$1:$A$100, SUMPRODUCT((LEFT($A$1:$A$100,4)+0=D1)*ROW($A$1:$A$100)),"")
    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

  3. #3
    Registered User
    Join Date
    12-07-2012
    Location
    Dodge City, KS
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Cross Reference item from one colum to items in a new column

    I am just looking for a filter to rearrange the table, to align the data in column D (for example) with the source data in the first four digits of column A (for example).

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

    Re: Cross Reference item from one colum to items in a new column

    That would require VBA. Are you okay with that? There's no inherient filter that would do that. Here is an example of how my formula would work. You could then Copy > Paste Special Values in Col B to remove the formulas and then delete Col A.
    Attached Files Attached Files

+ 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