+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : forumla for a range of cells that is variable

  1. #1
    Registered User
    Join Date
    05-29-2009
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    2

    forumla for a range of cells that is variable

    Since this is my first post, I don't want to do it wrong but this is what I'
    m trying to accomplish.

    Here is the example for the 1st formula in column B:

    D=”James” E=”R” F=”Dischert” G=”Susan” H=”M” I=”Dischert” so
    B=James R Dischert & Susan M Dischert

    Or

    D=”James” E=”R” F=”Dischert” and nothing in G,H, & I so
    B=James R Dischert

    in the 2nd formula for column C:

    D="James" G="Susan" so
    C= James & Susan

    or
    D="James" and nothing in G so
    C=James

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: forumla for a range of cells that is variable

    See Concatenation in Help. Post the formulas you tried if they don't work.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    05-29-2009
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: forumla for a range of cells that is variable

    this is the formula that I have used so far but if the is no data in G, H, & I it still posts the & symbol to cell B

    =CONCATENATE(D3, " ", E3, " ", F3, " ", "&", " ", G3, " ", H3, " ", I3)

    I'm only needing the & symbol if there is data to pull from G, H, & I

  4. #4
    Registered User
    Join Date
    05-28-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    4

    Re: forumla for a range of cells that is variable

    Hi


    I think what you want is this:


    =CONCATENATE(D3, " ", E3, " ", F3, " ",IF(G3="","", "&"), " ", G3, " ", H3, " ", I3)


    cheers!

  5. #5
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: forumla for a range of cells that is variable

    How about this:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: forumla for a range of cells that is variable

    You can also use the concatenation operator, & as below. I selected the entire D column and named it hfirst, selected the entire E column and named it hmid, etc, etc. Then:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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