+ Reply to Thread
Results 1 to 3 of 3

Function to help generate sentences from a multitude of options?

  1. #1
    Registered User
    Join Date
    08-21-2018
    Location
    New York
    MS-Off Ver
    2016
    Posts
    2

    Function to help generate sentences from a multitude of options?

    So I'm not sure if this should go here or in another forum but here goes:
    Right now I have a list of around 100 manholes, and each manhole has 8 different things that could be wrong with it (defects), each of those has 12 positions that they could be at in the manhole (think positions on a clock).

    For example a manhole could have 2 holes and 1 leak at 5, 7, and 11 o'clock in the manhole.

    In Excel I have a column for every type of defect that, when the defect column and manhole row match up, if the manhole has that defect, the number of defects is manually entered into that cell. If there are no defects, they are all left blank in that row. Then, the number of defects and type of defect is put into a different cell for formatting, so it looks like this:

    Please Login or Register  to view this content.
    The numbers up top along withe at, bench, etc, are all for what I use as references when I'm building my sentences. I reference all the cells individually in order to create a sentence that looks something like this:

    68409 has (2) Weepers at 2, 3 o'clock in channel and (1) gusher at 3 o'clock on bench

    The Italics show what is selected from the sheet. I want Excel to do all the work for me, rather than typing in something like this every time:
    Please Login or Register  to view this content.
    I'm not sure if Excel can help me at all because there are a lot of references and possibilities. I'm not afraid to have to do some of it myself, like making sure the sentence flows well or even put in heights within the manhole (Cause I need to do that too), but if something could get me started, then that would help a lot.

    Thanks!

    Attached is an example of what I've got, but the result is all manually entered all the way to the right.
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Function to help generate sentences from a multitude of options?

    Your logic is out of my mind. Can you share your original data & required result with separately.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    06-12-2017
    Location
    Pittsburgh, PA
    MS-Off Ver
    365
    Posts
    16

    Re: Function to help generate sentences from a multitude of options?

    As avk mentioned, the original data and required result will go a long way to helping.

    At first glance it seems like the info is not collected enough for each record to work the way you want or there are missing some helper columns. Without me rewriting it completely I would think you would want to combine the different data sets into 1 table. For example: Columns for: surface inflow, surface inflow clock position, surface inflow location (on bench, in channel, etc). Then do the same for stain, deposits, etc. Once that is done making a formula for the sentence gets pretty easy. I just dont see enough good references to make the full sentence possible as it is.

    That might also make assigning a priority based on the defects a little easier as well.

    As I will always say: There is probably a better way than what I know but if i can help I will.

+ 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. Function to help generate sentences from a multitude of options?
    By Tykuhn42 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2018, 12:05 AM
  2. [SOLVED] Generate Different Combinations of Yes or No To n Amount of Options
    By QAChaska in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2014, 05:30 PM
  3. 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
  4. [SOLVED] IF a cell has one of a multitude of values
    By bibu in forum Excel General
    Replies: 5
    Last Post: 03-12-2014, 05:46 PM
  5. Change a Reg Box into a Combo to generate a list of options-get new VBA plug-in
    By brwnrootsister in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2014, 12:52 AM
  6. Using the LOOKUP function to extract numbers from sentences
    By velda in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2013, 12:04 AM
  7. [SOLVED] sumif function with partially matchin sentences
    By Vikram Dhemare in forum Excel General
    Replies: 2
    Last Post: 04-25-2006, 02:30 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