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 formula

  • 09-09-2006 11:04pm
    #1
    Closed Accounts Posts: 839 ✭✭✭


    can anyone help me out with a formula to a number eg 0831234567 and convert it to 00353831234567


Comments

  • Registered Users, Registered Users 2 Posts: 944 ✭✭✭SwampThing


    Because of the leading 0, I'm assuming the cells are formatted as text.

    =IF(LEFT(A1,1) = "0", "00353" & MID(A3,2,99), "A1")


  • Closed Accounts Posts: 15 Jebubs


    zap wrote:
    can anyone help me out with a formula to a number eg 0831234567 and convert it to 00353831234567

    Ok....

    Your best bet is the following. Format your cells as text. To keep the "0" at the start.
    COL A: 00353
    COL B : 086123456
    COL C: =MID(B1,2,8) Returns 86123456
    Select COL C
    Choose copy then edit then "paste special" then Values. (Pastes all the data in COL C as values rather then Formula.

    COL D =CONCATENATE(A1,C1) This joins the Data in A1 (00353) and C1 (86123456)

    Hope that is what you were after.


  • Registered Users, Registered Users 2 Posts: 3,282 ✭✭✭BlackWizard


    ^^^^

    Thats how I would of went about doing it. Im not an expert in excel though.


  • Registered Users, Registered Users 2 Posts: 944 ✭✭✭SwampThing


    Jebubs wrote:
    Ok....

    Your best bet is the following. Format your cells as text. To keep the "0" at the start.
    COL A: 00353
    COL B : 086123456
    COL C: =MID(B1,2,8) Returns 86123456
    Select COL C
    Choose copy then edit then "paste special" then Values. (Pastes all the data in COL C as values rather then Formula.

    COL D =CONCATENATE(A1,C1) This joins the Data in A1 (00353) and C1 (86123456)

    Hope that is what you were after.

    Is that not a bit convoluted? It involves filling Col A with '00353' for each row that has a phone number in it and a copy here, paste special there.

    What if the phone numbers are not a uniform lenght? What if one is missing the leading zero?


  • Registered Users, Registered Users 2 Posts: 3,282 ✭✭✭BlackWizard


    If it does the job...


  • Advertisement
Advertisement