+ Reply to Thread
Results 1 to 4 of 4

Concatenating two numbers

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    85

    Concatenating two numbers

    Hello,

    I am wondering why concatenating two numbers does not work, and maybe for a different approach if you have one.

    If I have two numbers 10 and 5, and I concatenate them (trying to show 105, not 15), the true value is not 105 (it doesn't work in a >= formula). Could someone please explain this to me, Google has been unhelpful :P

    I built a depreciation table that is broken because you are not able to concatenate two numbers. In the attached file, the "coef" values in row 7 are a combination of year and month values concatenated. The table below assigns a weekly depreciation value if the period or "coef" value is after the purchase date, but before the end of the asset's life.

    As you can see in the attached file, it breaks when the values in column "H" hit 1000.


    Thanks,
    Blake
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Concatenating two numbers

    To concatenate two numbers in from two cells
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    v A B C
    1 10 5 105
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,738

    Re: Concatenating two numbers

    Try this in K7 copy accross: =CONCATENATE(K3,K5)*1
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,352

    Re: Concatenating two numbers

    Hi Blake,

    We both know that 10 + 5 is 15 and that is using the values of those numbers. When you Concatenate you are no longer using numbers, you are treating those numbers as letters and putting them together. If you wanted to turn the letters of 105 back to a number in Excel you could add a zero to it. The last operation to a cell converts it between threated as a number or a bunch of letters. Excel needs to know if the cell ISNUMBER or ISTEXT.

    It looks like you are using these cells as numbers and want to extract the month or year for your calculation. Dates are really numbers in Excel. Excel starts day 1 in its counting as Jan 1, 1900 as Day NUMBER 1. To convert these number of days since 1/1/1900 and text you need to use Date type functions. You need to use the Date() and DateValue() functions.

    When you claim your formula "breaks" at 1000, I'm hoping the above information will help explain it. What should the value in Column H be when it "hits 1000"?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. [SOLVED] Concatenating two columns and reversing after concatenating the result
    By irfanparbatani in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2014, 09:35 PM
  2. Concatenating numbers as text and retaining text format
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-19-2014, 10:14 PM
  3. Replies: 3
    Last Post: 07-11-2013, 12:35 AM
  4. Need formula for concatenating and rounding up numbers into one cell
    By Yeager in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2013, 03:56 PM
  5. Concatenating strings and numbers
    By jonsch in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-27-2006, 11:31 PM
  6. Concatenating and transposing a row of numbers
    By Colin Hayes in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-15-2006, 04:00 PM
  7. [SOLVED] concatenating numbers
    By Mig in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2005, 09:06 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