Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

excel text column reformatting

  • 09-05-2007 11:30am
    #1
    Registered Users, Registered Users 2 Posts: 462 ✭✭


    Just a wee query about text conversion or reformatting in excel. Im pulling information from an oracle database into an excel document and all the text like FirstName LastName etc is in all caps by default. Is there anyway to reformat this in excel so that the first letter in each field is caps and the rest in smalls, for example JOHNNY COOLKID becomes Johnny Coolkid.


Comments

  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    Just a wee query about text conversion or reformatting in excel. Im pulling information from an oracle database into an excel document and all the text like FirstName LastName etc is in all caps by default. Is there anyway to reformat this in excel so that the first letter in each field is caps and the rest in smalls, for example JOHNNY COOLKID becomes Johnny Coolkid.

    Do you have access to edit the query?

    If so, try this:
    select nls_initcap(COLUMN_NAME) from TABLE_NAME
    

    Failing that, there seem to be a few add-ins you can try for Excel.

    e.g.
    http://www.digdb.com/excel_add_ins/convert_upper_lower_proper_case/


  • Registered Users, Registered Users 2 Posts: 1,345 ✭✭✭Squall


    You could try creating a Macro to convert it all for you.

    Is there VBA code pulling in the data? You could try manipulating that to change the data there


  • Closed Accounts Posts: 82 ✭✭cyberbob


    you could just use the Proper() function in excel :rolleyes:


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    cyberbob wrote:
    you could just use the Proper() function in excel :rolleyes:

    Any suggestions an how he's going to execute the proper() function other than manually? Unhelpful sarcastic posts could get you banned from this forum.


  • Closed Accounts Posts: 1,577 ✭✭✭Heinrich


    Evil Phil wrote:
    Any suggestions an how he's going to execute the proper() function other than manually? Unhelpful sarcastic posts could get you banned from this forum.

    He could write a simple macro.
    It depends on waht exactly he needs.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Heinrich wrote:
    He could write a simple macro.
    It depends on waht exactly he needs.

    Yes, I know. I was wearing my moderators hat in that post.


    lunacyfoundme: How exactly are you populating the spreadsheet with the oracle data?


  • Closed Accounts Posts: 1,577 ✭✭✭Heinrich


    Evil Phil wrote:
    Yes, I know. I was wearing my moderators hat in that post.


    lunacyfoundme: How exactly are you populating the spreadsheet with the oracle data?


    a quickie

    Sub Macro1()

    ActiveCell.FormulaR1C1 = "=PROPER(RC[-3])"
    Selection.AutoFill Destination:=Range("D1:D32"), Type:=xlFillDefault
    Range("D1:D32").Select
    End Sub


Advertisement