+ Reply to Thread
Results 1 to 9 of 9

Matching the cell to the function bar

  1. #1
    Registered User
    Join Date
    10-12-2020
    Location
    Wisconsin, US
    MS-Off Ver
    10
    Posts
    5

    Matching the cell to the function bar

    Hello,

    I have a column of phone numbers and it is display like the following: 920-123-4567

    The function bar displays the cell like the following: 9201234567. without the dashes.

    How can I make it match? I want the function bar to have the dashes like the cell.

    Thank you!

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Matching the cell to the function bar

    Did you format the cell in any way? If you just type 920-123-4567 it should be the same in both the cell and formula bar

  3. #3
    Registered User
    Join Date
    10-12-2020
    Location
    Wisconsin, US
    MS-Off Ver
    10
    Posts
    5

    Re: Matching the cell to the function bar

    The cell was a custom format from a different cell. I did not type them in. Is there anything else I can try?

    Thank you

  4. #4
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Matching the cell to the function bar

    If the column is only phone numbers then the only thing I can think of is this. (little pain but it will get what you want)

    Click on your column
    Copy to new sheet or new tab
    Go to Data tab
    Click on Text to Columns
    Click on Fixed Width
    Click Next
    Click after the 0 in 920 and after the 3 in 123 (should see a line between)
    Finish
    Now the cells will be broken up 920 in 1 cell 123 in the next and 4567 in the next
    Click on cell next to 4567 (Col D for example)
    Then use Concatenate with a dash between the cells like =CONCATENATE(A6,"-",B6,"-",C6)
    Copy that column
    Paste as Values to your original data

  5. #5
    Registered User
    Join Date
    10-12-2020
    Location
    Wisconsin, US
    MS-Off Ver
    10
    Posts
    5

    Re: Matching the cell to the function bar

    Thanks mikeava. I will try that and let you know.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Matching the cell to the function bar

    Another option.
    You could put this formula in an unused column, fill down & then copy/paste as values
    =TEXT(A2,"000-000-0000")

  7. #7
    Registered User
    Join Date
    10-12-2020
    Location
    Wisconsin, US
    MS-Off Ver
    10
    Posts
    5

    Re: Matching the cell to the function bar

    I need “ph” in front of the number. Can I still do this?

    Thank you!

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Matching the cell to the function bar

    Yup, like
    ="Ph"&TEXT(A2,"000-000-0000")

  9. #9
    Registered User
    Join Date
    10-12-2020
    Location
    Wisconsin, US
    MS-Off Ver
    10
    Posts
    5
    Quote Originally Posted by Fluff13 View Post
    Yup, like
    ="Ph"&TEXT(A2,"000-000-0000")
    Thank you all! mikeava worked for me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 03-27-2019, 11:57 PM
  2. Replies: 3
    Last Post: 01-29-2019, 02:40 PM
  3. [SOLVED] INDEX MATCH function not matching on data in a multi-line cell
    By ericalee83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2017, 10:55 PM
  4. Replies: 1
    Last Post: 09-30-2015, 11:37 PM
  5. [SOLVED] Alter Matching Sub From matching two Ranges to matching one range and list
    By capson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2015, 10:48 PM
  6. [SOLVED] Return cell values for non-matching & matching criteria
    By jenz_skallemose in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-13-2012, 11:52 AM
  7. Bank reconciliation - Many to one matching and partial cell matching
    By maartendelaet in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-25-2010, 08:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1