+ Reply to Thread
Results 1 to 4 of 4

numbers in concatenated columns not recognised

  1. #1
    Registered User
    Join Date
    08-25-2010
    Location
    High Wycombe, England
    MS-Off Ver
    Excel 2003,7
    Posts
    5

    numbers in concatenated columns not recognised

    I'm merging 2 columns of numbers (no numbers are in the same row), which looks fine, but when I try to use this column in a pivot table, the numbers all show up as zero when I use 'sum' in the Field Settings. When I look at Format for the column of numbers, General is selected, changing it to any other setting (number, accounting, currency) makes no difference. It seems as though the concatenate function makes the numbers unrecognisable in the pivot table. Thank you for reading, thanks even more if you can help!
    Last edited by Linden; 08-25-2010 at 01:31 PM. Reason: update solved information

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: numbers in concatenated columns not recognised

    When you concatenate numbers, you get a text string. You have to do something mathematical on the text string to convert it back into a number.

    A1 = 5
    B1 = 3
    C1 =A1&B1 (result 53, but it's a text string)

    Better:
    =(A1&B1)+0 (result 53 and it's a real number)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-25-2010
    Location
    High Wycombe, England
    MS-Off Ver
    Excel 2003,7
    Posts
    5

    Re: numbers in concatenated columns not recognised

    Fantastic, thank you so much. I spent hours trying to sort this out - I think your answer is one to remember because I've had similar problems before. Heartfelt thanks from 'across the pond'!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: numbers in concatenated columns not recognised

    Other formula functions that will always result in text strings:

    LEFT()
    RIGHT()
    MID()
    CONCATENATE()
    TEXT()
    CHAR()
    UPPER()
    LOWER()
    PROPER()
    REPT()
    REPLACE()
    ASC()

    ...heck, here's a list that helps:
    http://office.microsoft.com/en-us/ex...005203209.aspx


    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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