+ Reply to Thread
Results 1 to 4 of 4

Challenging Problem

Hybrid View

  1. #1
    Registered User
    Join Date
    12-19-2011
    Location
    The Moon
    MS-Off Ver
    Excel 2013
    Posts
    6

    Challenging Problem

    Hey guys I have a bit of a problem that I hope you guys can help with.

    Using Excel 2007

    ultimate goal is to have Sheet 4, C20 display "SGT John J. Smith" (centered)

    the thing is we need the information to come from Sheet 1, L4 which displays "Smith, John J."

    and Sheet 1, N4 which displays "SGT"

    Well I hope you guys know the solution.

    -Tommy

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Challenging Problem

    Without an example spreadsheet, it would be
    ='Sheet 1'!N4 & MID('Sheet 1'!L4, SEARCH(",",'Sheet 1'!L4)+1,20) & LEFT('Sheet 1'!L4, SEARCH(",",'Sheet 1'!L4)-1)
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Challenging Problem

    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 on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Challenging Problem

    Hi Tommy,


    Use the following formula in Sheet 4:-

    =Sheet1!N4&" "&TRIM(MID(Sheet1!L4,SEARCH(",",Sheet1!L4)+2,(LEN(Sheet1!L4)-SEARCH(",",Sheet1!L4)-2))&" "&LEFT(Sheet1!L4,SEARCH(",",Sheet1!L4)-1))
    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

+ 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