+ Reply to Thread
Results 1 to 7 of 7

Auto fill column k from one sheet to another if two cells match?

Hybrid View

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    Florida US
    MS-Off Ver
    Excel 2007
    Posts
    96

    Auto fill column k from one sheet to another if two cells match?

    HI,
    On 20 different spreadsheets, Column K has a value (scores) that needs to appear in column E or F (depending on the spreadsheet/different grades/years) when the district number and school number (columns B and D for schools) that match in each of the spreadsheets for the comparison spreadsheet I am building.

    I tried lookup, but doesn't work when matching two criteria.

    I think it is index and match but do not understand the syntax well enough on the help files I have accessed to write it myself.

    Any and all help greatly appreciated.

    for forum 4.xlsx

    Gratefully,
    Synthia

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Auto fill column k from one sheet to another if two cells match?

    Hi Synthia

    You are indeed correct in saying that this will work with index and match, but we need to set things up first.

    For any system to work we need some rules and consistency. The lack of consistency is shown on the tab name 2012 r3sch (whereas all others have a space between r3 and sch or dis). A small thing but important.

    Next, how can we distinguish between schools and districts. Easy - Districts end in "District" and schools end in "School". Except where they don't.

    Can we have a helper column somewhere (it can be hidden) where we can put "Sch" or "Dis" as appropriate? To make things easier (but this is not mandatory) can we have the year on row 2 in a cell all on its own?

    Subject to fixing the above items I think I can get something to work - but anyone else should feel free to offer any other suggestions

    Regards
    Alastair

  3. #3
    Registered User
    Join Date
    07-05-2012
    Location
    Florida US
    MS-Off Ver
    Excel 2007
    Posts
    96

    Re: Auto fill column k from one sheet to another if two cells match?

    You are exactly right about inconsistencies being the issue.
    I wound up using
    HTML Code: 
    changing it carefully for each entry - took an entire day to compile 40 spreadsheets!

    This is the matching problem, too ...I posted this under VBA Programming Macros in case there is a macro to use- maybe it explains it better:
    School names are typed differently in many pages.
    Compiling 40 sheets into one page took all day and I have 40 more to compile, looking at lots of correcting errors due to "no match" when there is a match that is slightly differently spelled or carries an ' or not.

    It would SEEM to be easier to match district number and school number BUT they are formatted differently - some entered as text, some as Custom, some as Special, some with an apostrophe (all due to needing to have leading zeroes) that I can't remove and make it stay removed, etc.

    Is there a macro that would make all the numbers in Elem FCAT Reading columns A and B match the formatting on the other sheets of the numbers in columns B and D ...? (A should match D; C should match E)

    I am using Excel 2010 and can't get the "Custom" to stick on the sheet I create (Elem FCAT Reading), I enter it but it changes to Special....

    AND I can't get the apostrophe to disappear from the other sheets - must be programmed in - when I delete them they reappear!

    So there are major formatting inconsistencies....issues that I am thinking a macro across all sheets MIGHT fix so I can edit the formula to match District Number and School Number and have less corrections of "no match" errors...?

    Thanks for your help,
    Synthia
    Gratefully,
    Synthia

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Auto fill column k from one sheet to another if two cells match?

    It might help if you used an identification system for District, Schools and Grades so that different entries of a school's name wouldn't mess up calculations. An ID number identifying the combination of Grade, District and School could save you a lot of trouble.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Auto fill column k from one sheet to another if two cells match?

    Hi Synthia

    In my office, just under the plaques stating "God is Love" and "Jesus loves you" was the text "Consistency is the next best thing to accuracy"

    To get the district and school numbers consistent I have used double negatives (see columns V & W). This gets rid of leading zeros and apostrophes. Copy and paste values to the original column and set the number format to 00 or 0000.

    I have inserted helper columns and rows (cunningly coloured (not colored!) so that you know that these may be hidden so as not to frighten the natives). On the schools tab I have inserted 2 columns so that all the results for both schools and districts are in column M.

    The formulas then work.

    I hope this saves you some work.

    Let me know you need anything explaining / changing.

    Regards
    Alastair
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-05-2012
    Location
    Florida US
    MS-Off Ver
    Excel 2007
    Posts
    96

    Re: Auto fill column k from one sheet to another if two cells match?

    You are so correct and simply amazing.
    That was an unexpected blessing.
    Thank you so much!
    Synthia

  7. #7
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Auto fill column k from one sheet to another if two cells match?

    Glad to have been of assistance.

    Should you have further queries,feel free to PM me (as I do not always keep a good watch on the forum)

    Regards
    Alastair

+ 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