+ Reply to Thread
Results 1 to 7 of 7

Joint two strings with amount

  1. #1
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Joint two strings with amount

    Hi Friends
    Can I get a clue how to join two stings with an amount
    In A1 I have "Descr "
    In B1 I have "January "
    in C1 i have a value 30.000
    I need the result in d1 as "Descr January 30.000"
    I use Range("a1").value & Range("B1").value & Range("c1").value but I am stuck with the number format it gives me the result "Descr January 30"
    Can someone correct the same above example.
    Thanks
    Appreciate clicking the * Add Reputation button on your left side, if you want say thanks to me

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Joint two strings with amount

    Range("a1").value & Range("B1").value & FIXED(Range("c1").value,3)

  3. #3
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Re: Joint two strings with amount

    SORRY... it gives me an error
    compiling error
    Sub or Function not defined
    the following is my exact code i pasted
    Please Login or Register  to view this content.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Joint two strings with amount

    =a1&b1&text(c1,"#.###000") ????
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Re: Joint two strings with amount

    I need a VB code

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Joint two strings with amount

    Ok, sorry i put it as a worksheet function

    DESC1 = Range("a10").Value & "-" & Range("c10").Value & Format(Range("b10").Value, "#.##0")

  7. #7
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Re: Joint two strings with amount

    Thanks nathansav... perfect

+ 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