Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50079

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

$
0
0
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:

=INDEX('2012 r3 sch'!$M$13:$M$2173,MATCH(1,('Elem FCAT Reading'!B7='2012 r3 sch'!$C$13:$C$2173)*('Elem FCAT Reading'!D7='2012 r3 sch'!$E$13:$E$2173),0))
(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

Viewing all articles
Browse latest Browse all 50079

Trending Articles