+ Reply to Thread
Results 1 to 2 of 2

Value manipulation, String to Int, Int to Sting

  1. #1
    Registered User
    Join Date
    01-16-2007
    Posts
    8

    Value manipulation, String to Int, Int to Sting

    Hi all..


    1. How to delete "$" in string and convert to int, ie:
    From:
    String a = "$100"
    Into:
    Int b = 100

    2. How to combine int and string become one string, ie:
    From:
    String a = "January";
    Int b = 5;
    Into:
    String c = "5 January"; // Please add space in between.


    Thank you..

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Quote Originally Posted by bluechip
    Hi all..


    1. How to delete "$" in string and convert to int, ie:
    From:
    String a = "$100"
    Into:
    Int b = 100

    2. How to combine int and string become one string, ie:
    From:
    String a = "January";
    Int b = 5;
    Into:
    String c = "5 January"; // Please add space in between.


    Thank you..

    Hi

    not sure where you want to do this (in spreadsheet or in code) but look at

    1) SUBSTITUTE: substitute(a,"$","")
    2) c = 5 & " " & a
    or
    the CONCATENATE function
    concatenate(b," ",a)

    rylo

+ 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