+ Reply to Thread
Results 1 to 3 of 3

Creating a paragraph text from various cells including a IF statement.

  1. #1
    Registered User
    Join Date
    01-08-2015
    Location
    Savannah, GA
    MS-Off Ver
    Office 2013
    Posts
    5

    Creating a paragraph text from various cells including a IF statement.

    I'm currently stuck attempting to create a spreadsheet. What I want is the spreadsheet to generate a paragraph to be read based on the information entered. I can't seem to find something that isn't clunky to deal with and I'd like some help.

    I'm going to use the example of returning a product to demonstrate what I need:

    I've purchased something at Target. My receipt is valid for returns 14 days from purchase, or up to a year for store credit (Not realistic but I need a secondary date option) and the restocking fee is 15% but were going to use a flat number like $20 to be entered in the cell as 20 formatted as a number not currency


    We get something like this:

    A | B
    Store | Target
    Return by | 14 days or 1 year (This is a validated range drop down) selection
    14 day date | 22JAN15
    1 year date | 08JAN16

    this would then generate a paragraph like so:

    Your recipet is valid for "Target" and you have "14 days" to return the product until "22JAN15"

    OR

    Your recipet is valid for "Target" and you have "1 year" to return the product until "08JAN15"

    My problem is this. The words inbetween the cell values in the paragraphs need to remain the same regardless of what is chosen, but I can't integrate and if statement to distinguish between both dates. There is a workaround typing out the filler words in the paragraph elsewhere in the spreadsheet and using the formula = Z1 & B2 & Z2 etc etc where Z1 = your reicpet is valid for, z2 = and you have. But then I have to reduce my dates by one cell only either the 14 day physical date or the 1 year physical date, and I want it to be dependant on the selection of B2 and required to enter in values for both B3 and B4.

    Is there a way to do this? One nested if formula would prolly do it if someone could show me the correct way to produce the paragraph id be greatful

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Creating a paragraph text from various cells including a IF statement.

    Would something like this work?

    Please Login or Register  to view this content.
    Hope this helps!
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    01-08-2015
    Location
    Savannah, GA
    MS-Off Ver
    Office 2013
    Posts
    5

    Re: Creating a paragraph text from various cells including a IF statement.

    Thank you this did solve the issue I was making it more complex than it had to be!

+ 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. Splitting Text Into Separate Cells By Paragraph
    By Dardar1989 in forum Excel General
    Replies: 4
    Last Post: 03-15-2013, 08:31 PM
  2. Specify range of cells including spaces, manually typed text and line breaks in VBA
    By LindaABH in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2012, 12:59 AM
  3. [SOLVED] Formula that combines text cells into single cell paragraph
    By bga10s in forum Excel General
    Replies: 12
    Last Post: 08-02-2012, 04:44 PM
  4. custom number formats - including text from other cells
    By Nick Smith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2006, 04:50 AM
  5. Add cells including text
    By HappyTrucker in forum Excel General
    Replies: 6
    Last Post: 08-14-2005, 08:59 PM

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