+ Reply to Thread
Results 1 to 9 of 9

Formula for making multiple sentences

  1. #1
    Registered User
    Join Date
    04-28-2022
    Location
    St. Louis, MO
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Formula for making multiple sentences

    I am again working with a language building program. I need to have Excel combine each row of several different columns of varying lengths to give me all the possible sentence combinations. Per the attachment, I have each part of the sentence I want in a separate column and I want Excel to combine them. According to my calculation for the sample I provided, Excel should give me 128 different sentences. I tried "concatenate" but it only gives me a few combinations because the number of rows doesn't match between all the columns. I truly appreciate any help that you can give.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Formula for making multiple sentences

    Hi

    Since no body answered you I will leave here my best try with function, but a solution can be easily find with macro.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: Formula for making multiple sentences

    Let me guess.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Formula for making multiple sentences

    Great formula by windknife!!!!

    but I notice that it can be reduced a little bit.

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


    Still impressed with this formula.

  5. #5
    Registered User
    Join Date
    04-28-2022
    Location
    St. Louis, MO
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Formula for making multiple sentences

    OMG!!! We are almost there!!

    I don't see in the results of your formula that my columns B, D and E are included. Some of my columns will only have one option but still need to be able to form sentences based on that. How do we tweak this?

    Thanks soooooo much for your help.

  6. #6
    Registered User
    Join Date
    04-28-2022
    Location
    St. Louis, MO
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Formula for making multiple sentences

    OMG!!! We are almost there!!

    I don't see in the results of your formula that my columns B, D and E are included. Some of my columns will only have one option but still need to be able to form sentences based on that. How do we tweak this?

    Thanks soooooo much for your help.

  7. #7
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Formula for making multiple sentences

    Put the one line between the quotations.

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

  8. #8
    Registered User
    Join Date
    04-28-2022
    Location
    St. Louis, MO
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Formula for making multiple sentences

    OMG!!! That worked!!!! I can't believe it.

    Thank you so much for this. You all are the best.

  9. #9
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: Formula for making multiple sentences

    You are welcome.
    -----------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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. Replies: 30
    Last Post: 05-14-2023, 04:10 AM
  2. Replies: 1
    Last Post: 02-29-2020, 03:24 PM
  3. Replies: 5
    Last Post: 11-12-2019, 10:58 AM
  4. [SOLVED] Counting words in multiple sentences
    By sami770 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-28-2014, 08:34 AM
  5. [SOLVED] Extract sentences in a single cell to multiple
    By jt1672 in forum Excel General
    Replies: 3
    Last Post: 11-26-2014, 07:26 AM
  6. finding one word from a list of cell that contain multiple sentences
    By maulik1k in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2014, 06:54 PM
  7. Find a requested word within sentences and output those sentences elsewhere
    By swfred2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2014, 02:24 PM

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