+ Reply to Thread
Results 1 to 3 of 3

Concatenate formula Nested within a IF formula is not producing expected results.

  1. #1
    Registered User
    Join Date
    08-24-2014
    Location
    Guwahati, India
    MS-Off Ver
    2007
    Posts
    1

    Concatenate formula Nested within a IF formula is not producing expected results.

    I am trying to use a combination of Concatenate and IF formula to produce an email.

    My input.

    D4: First Name:
    D5: Middle Name:
    D6: Last Name:

    D8: Organization:

    Once all these are filled, I want the formula to produce a result like

    FirstName.M.LastName@Organization.com

    I have used the following formula.

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


    Problem is if there is a middle name the formula works fine, but in case where there is no middle name, it produces the following result.

    FirstName..LastName@Organization.com

    Please advice how do I remove the additional (.) in cases where there is no middle name.
    Attached Files Attached Files
    Last edited by sandilya; 08-24-2014 at 02:48 AM. Reason: Want to add the file as attachement

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Need help with a Formula

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Need help with a Formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Never use Merged Cells in Excel

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Concatenate formula Nested within a IF formula is not producing expected results.

    try
    =SUBSTITUTE(TRIM(D4&" "&D5&" "&D6&" ")," ",".")&"@"&D8
    Last edited by martindwilson; 08-24-2014 at 06:54 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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