VBA to change room numbers from Scientific Notation to text

powercell99

Board Regular
Joined
May 14, 2014
Messages
75
Need help, when we run a report from our work database, and export it to Excel, the room numbers get screwed up because of scientific notation. the Room numbers format are 5 characters in length, characters 1, 3, 4, 5 are numbers, and the 2nd character is a letter. the problem is for all rooms in the "E" wing causes excel to change the number format to scientific notation. 9E54 = 9E+54. we tried changing the number format for the entire column to text, number, etc, but excel keeps changing it back to Sci Notation. We tried find and replacing the "E+" to just "E" but again it changes it back. reading online, i see many people suggest pre-formatting outside of excel to make that a text field, but we dont have that option of pre-forming. assuming the room numbers are in column D, does anyone have any suggestions on how to deal with Excel autochanging the number formats to Scientific Notation????

Thanks for your thoughts.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top