+ Reply to Thread
Results 1 to 3 of 3

Macro to make all numbers in 2 columns of 40 sheets the same format?

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

    Macro to make all numbers in 2 columns of 40 sheets the same format?

    Hi,

    I am using this formula to compile data from 40 sheets onto one using the district name and school name as matching criteria.

    HTML Code: 
    (array formula)

    for forum 5.xlsx

    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
    Last edited by synses; 06-15-2013 at 08:32 AM.
    Gratefully,
    Synthia

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Macro to make all numbers in 2 columns of 40 sheets the same format?

    Hi,

    the following code will loop all sheets in your workbook and change the formatting of column 2 to "00" and column 4 to "0000" (rows 13 till end) and converting text to number values (at least in the example), skipping the sheet with name "Elem FCAT Reading":

    Please Login or Register  to view this content.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

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

    Re: Macro to make all numbers in 2 columns of 40 sheets the same format?

    THANKS so much!

+ 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