+ Reply to Thread
Results 1 to 8 of 8

I need help integrating a string into a formula

  1. #1
    Registered User
    Join Date
    10-13-2012
    Location
    Nutley,NJ
    MS-Off Ver
    Excel 2011
    Posts
    77

    Question I need help integrating a string into a formula

    Microsoft Excel 2011

    Example

    I want the B5 cell to read "13 to 15"
    Where 13 is the result of B1+B2 and 15 is the result of B3+B4
    I just want that "to" in the beginning

    Obviously

    =(B1+B2) "to" (B3+B4) doesn't work?


    What is the correct format?

    Thank you
    Last edited by Jhertilus; 10-24-2012 at 08:40 PM. Reason: forgot something

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: I need help integrating a string into a formula

    you have to put &

    =(B1+B2)& " to " &(B3+B4)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    10-13-2012
    Location
    Nutley,NJ
    MS-Off Ver
    Excel 2011
    Posts
    77

    Re: I need help integrating a string into a formula

    Nice! Thanks. One more question. Although I was able to add the string I can no longer limit my "(B1+B2)" to 0 decimal points. Is there something I can put in the formula? Because format cell seems to longer have an effect.

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: I need help integrating a string into a formula

    you can use the round,roundup,rounddown depends on your goal


    something like


    =round((B1+B2),0)& " to " &rounddown((B3+B4),2)

    note: i used round and rounddown for the example above

  5. #5
    Registered User
    Join Date
    10-13-2012
    Location
    Nutley,NJ
    MS-Off Ver
    Excel 2011
    Posts
    77

    Re: I need help integrating a string into a formula

    Thank you so much!

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: I need help integrating a string into a formula

    Your welcome.

  7. #7
    Registered User
    Join Date
    10-13-2012
    Location
    Nutley,NJ
    MS-Off Ver
    Excel 2011
    Posts
    77

    Re: I need help integrating a string into a formula

    One issue, when I put this in my macro editor the quotation marks for to yields an end of argument error. Any workaround for that?

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: I need help integrating a string into a formula

    how did you put it can you show the code on that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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