+ Reply to Thread
Results 1 to 4 of 4

putting words after number imported

  1. #1
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    putting words after number imported

    I have some code that imports a recordset from SQL Server and returns to my report and pastes the data into a set cell, I'm trying to add a word after the number imported how can I do this?

    Please Login or Register  to view this content.
    so I want to show in cell C12... 8 Months (so 8 would be returned from SQL Server and Months would be added afterwards)

    How can I do this?

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: putting words after number imported

    I prefer using the Cell format as the value remains a value and can be used as such later on.
    Goto Format Cells, Custom and type ##" months"
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161
    The changing of the Format Cells works better, but if the answer is 0 then the zero (0) always disappears for some reason...

    Why would this be?

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: putting words after number imported

    Because the hashes will not display trailing zeros.

    What you can do is use #0" Months"

+ 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. How to show zero as a first number
    By Paul Smith in forum Excel General
    Replies: 5
    Last Post: 11-17-2010, 02:15 PM
  2. Putting a Specific Number in a Cell, and Numbering Worksheets
    By james1980 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-12-2008, 04:19 AM
  3. ranking second number between two words
    By jamiepullen in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-17-2008, 11:06 AM
  4. Auto generate number???
    By iluminatae in forum Excel General
    Replies: 9
    Last Post: 02-11-2007, 07:43 AM

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