#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Cleaning Up Data

Ok i have close to 10000 records and they look like bg1234 and i need
to add 00000 after the bg but i also have to make the bg capital
letters. How do i set up a marco to just look for the bg because i
have other records that begin with other letters. Another problem is
that i might have some records with bg123 but the i need to add 000000
after the bg . Any ideas?? Thanks a lot

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default Cleaning Up Data

Hi,

=UPPER(LEFT(A1,2))&IF(LEN(A1)=6,"0000","00000")&MI D(A1,3,LEN(A1))

should do the job ...

HTH
Cheers
Carim

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Cleaning Up Data

ok it works but i forgot to say there is other data that have an h
insted of bg so i have to write a vba function to search and update
each cell from top to bottom
Carim wrote:
Hi,

=UPPER(LEFT(A1,2))&IF(LEN(A1)=6,"0000","00000")&MI D(A1,3,LEN(A1))

should do the job ...

HTH
Cheers
Carim


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Cleaning Up Data

ok it works but i forgot to say there is other data that have an h
insted of bg so i have to write a vba function to search and update
each cell from top to bottom
Carim wrote:
Hi,

=UPPER(LEFT(A1,2))&IF(LEN(A1)=6,"0000","00000")&MI D(A1,3,LEN(A1))

should do the job ...

HTH
Cheers
Carim


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inputting data to one worksheet for it effect another daedalus1 Excel Discussion (Misc queries) 1 June 25th 06 04:39 PM
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
Inconsistant Data Cleaning gallegos1580 Excel Discussion (Misc queries) 1 January 10th 05 08:19 PM


All times are GMT +1. The time now is 08:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"