+ Reply to Thread
Results 1 to 8 of 8

Searching and correlating

Hybrid View

  1. #1
    Registered User
    Join Date
    06-23-2012
    Location
    Cordoba Argentina
    MS-Off Ver
    Excel 2010
    Posts
    5

    Searching and correlating

    Hi, this is my first post on the forum. Looks Great!! "

    I have the following issue to solve and perhaps you can help me. Here we go;

    The information we have:

    1) We have data of correlative codes between industries. The “old” codes (column i) and the “new” codes (column K)
    2) We have data that are industry codes, mixed old codes with new ones (column M). This is the data that need to be corrected.

    What we need?

    Fill the column N with the new correlative code to column M. So the formula on column M should do something like that:
    - Look for the code on same road in column M.
    - If the code in M same road is NEW (some code in column K); copy the same code. Image attached N19 to N24 are example of this.
    - If the code is OLD (some code in column i); fill N cell with the NEW correlative code. Image attached N7 to N18 are examples of this.

    Does is possible to Excel to do this? If the answer is YES; which might be the formula on N column?

    Thanking in advance so much.

    PS

    Average Humans knowledge increase exponentially, but each day it pass, each day goes faster.
    Attached Files Attached Files

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

    Re: Searching and correlating

    in n7
    =IF(ISERROR(VLOOKUP(M7,$I$8:$K$14,3,FALSE)),M7,VLOOKUP(M7,$I$8:$K$14,3,FALSE))
    or
    =iferror(VLOOKUP(M7,$I$8:$K$14,3,FALSE),M7)
    "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

  3. #3
    Registered User
    Join Date
    06-23-2012
    Location
    Cordoba Argentina
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Searching and correlating

    Yes!!!! Thanks so much!!!!!!

  4. #4
    Registered User
    Join Date
    06-23-2012
    Location
    Cordoba Argentina
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Searching and correlating

    Hi,

    It seems was solved the main issue that was finding the correct data. So the 1st formula presented by Martindwilson do the job.

    But, how can I take the format of the same cell as well as the data. I mean the color and bold of the font?

    Thanks so much in advance!!

    SC

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Searching and correlating

    maybe use conditional formatting? i havnt looked at your file, but you can use CF to change color/font etc of cells based on the values in other cells.

    play around with it and if you stil have a problem, give us a shout
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    06-23-2012
    Location
    Cordoba Argentina
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Searching and correlating

    Actually what I want is to mantain the orginal format from column "J" on the column "L". Column "L" have the funcion to get the correct data. What I need is the function I need to add to maintain the format of the same data (colun "J").

    Thanks so much.

    SC
    Attached Files Attached Files

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

    Re: Searching and correlating

    functions don't copy formats but as fdibbins says use conditional format to change colour dependent on cell value, you have excel 2010 so you can choose lots!
    here it is done
    look at conditional formatting /manage rules
    Attached Files Attached Files
    Last edited by martindwilson; 06-24-2012 at 04:31 AM.

  8. #8
    Registered User
    Join Date
    06-23-2012
    Location
    Cordoba Argentina
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Searching and correlating

    Thanks so much both of you. I wrong interpreted what was conditioonal formating.

    PS
    About interpretations: Our actions born many times on interpretations. The more we get a better system of interpreting what are we seeing, reading or thinking or feeling, etc (or better said not interpreting so much), the better world we would have!! ....I am not sure but I suposse and this is another interpretation!!

+ 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