+ Reply to Thread
Results 1 to 8 of 8

Make sentence from data in cells in Excel

  1. #1
    Registered User
    Join Date
    06-11-2019
    Location
    Texas, United States
    MS-Off Ver
    2016
    Posts
    3

    Make sentence from data in cells in Excel

    Hi,



    I have a form of 4 cells (as you can see in the attached picture) & I need to get the values within brackets of the sentence filled when updating data in A2, B2, C2 & D2.

    Excel Capture.PNG


    Please be kind enough to share a code with me to get this done ASAP. Thank in advance!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,389

    Re: Make sentence from data in cells in Excel

    Welcome to the forum!

    Like this:

    ="DOS "&A2&"_"&B2&" - Active coverage since "&C2&", Specialist co-pay $"&D2&"."
    Last edited by AliGW; 06-11-2019 at 12:58 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Make sentence from data in cells in Excel

    Use a formula like this;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-11-2019
    Location
    Texas, United States
    MS-Off Ver
    2016
    Posts
    3

    Re: Make sentence from data in cells in Excel

    THANK YOU SO MUCH FOR THE PROMPT RESPONSE!!!

    The code works perfect! However, there was a small problem. Highlighted areas in the attached picture are dates & I need them to come up as dates in the sentence. It would be great if you could help me with this.

    Attachment 627813

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,389

    Re: Make sentence from data in cells in Excel

    Try this:

    ="DOS "&A2&"_"&B2&" - Active coverage since "&TEXT(C2,"mm/dd/yyyy")&", Specialist co-pay $"&D2&"."

  6. #6
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Make sentence from data in cells in Excel

    Try this;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-11-2019
    Location
    Texas, United States
    MS-Off Ver
    2016
    Posts
    3

    Re: Make sentence from data in cells in Excel

    Quote Originally Posted by AliGW View Post
    Try this:

    ="DOS "&A2&"_"&B2&" - Active coverage since "&TEXT(C2,"mm/dd/yyyy")&", Specialist co-pay $"&D2&"."
    Thank you so much! I added a lil bit as ="DOS "&TEXT(A2,"mm/dd/yyyy")&"_"&B2&" - Active coverage since "&TEXT(C2,"mm/dd/yyyy")&", Specialist co-pay $"&D2&"." & it worked perfect!!! Really appreciate your support! Good luck! Cheers!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,389

    Re: Make sentence from data in cells in Excel

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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. Cross reference letter case: Beginning of sentence and middle of sentence
    By caswell1000 in forum Word Formatting & General
    Replies: 4
    Last Post: 02-07-2019, 05:25 PM
  2. [SOLVED] Make Sentence By formula
    By Sanjibghosh in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-18-2016, 05:27 AM
  3. Replies: 5
    Last Post: 03-15-2015, 12:57 PM
  4. Replies: 2
    Last Post: 12-02-2014, 06:24 AM
  5. Vba code for remove extra full stops, and make sentence case.
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-11-2013, 04:04 AM
  6. Excel 2007 : create a sentence from 4 cells
    By NavNeet2912 in forum Excel General
    Replies: 2
    Last Post: 04-22-2011, 11:03 AM
  7. Replies: 3
    Last Post: 01-29-2010, 02:45 AM

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