+ Reply to Thread
Results 1 to 6 of 6

Bring 1 Cell Values to 3 Separate Cells

  1. #1
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Bring 1 Cell Values to 3 Separate Cells

    Bring 1 Cell Values in to 3 Separate Cells like attached output sheet2 from sheet1
    Attached Files Attached Files
    Last edited by maddyrafi1987; 11-21-2022 at 07:16 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Bring 1 Cell Values to 3 Separate Cells

    Outside of the code, there are no obvious delimiters to separate College Name from District Name.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Bring 1 Cell Values to 3 Separate Cells

    Column A
    =LEFT(input!A2,3)

    Column B
    =MID(LEFT(input!A2,FIND(CHAR(1),SUBSTITUTE(input!A2," ",CHAR(1),LEN(input!A2)-LEN(SUBSTITUTE(input!A2," ",""))+IF(RIGHT(input!A2,3)=" DT",-1,0)))),5,255)

    Column C:
    =TRIM(MID(input!A2,FIND(CHAR(1),SUBSTITUTE(input!$A2," ",CHAR(1),LEN(input!A2)-LEN(SUBSTITUTE(input!A2," ",""))-IF(RIGHT(input!A2,3)=" DT",1,0))),255))

    all copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Bring 1 Cell Values to 3 Separate Cells

    as John said above and me now: your data is inconsistent but Glenn has patience
    Last edited by sandy666; 11-21-2022 at 10:00 AM.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Bring 1 Cell Values to 3 Separate Cells

    using Glenn's solution ...

    In C3

    =TRIM((SUBSTITUTE(SUBSTITUTE(input!A2,output!A3,""),output!B3,"")))

  6. #6
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Re: Bring 1 Cell Values to 3 Separate Cells

    It is working fine sir. Superb. thanks alot

+ 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. Bring same output from sheet1
    By maddyrafi1987 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-10-2020, 01:14 PM
  2. [SOLVED] Can’t bring data over from sheet1 to sheet2 based on citeria
    By gz3s36 in forum Excel General
    Replies: 4
    Last Post: 02-03-2018, 12:19 PM
  3. Replies: 3
    Last Post: 09-24-2015, 08:20 AM
  4. Copy Data from Sheet1 to Sheet2 depending on input on Sheet1
    By jjmitchell88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2014, 04:33 PM
  5. [SOLVED] Look for values in sheet1 (input) and paste output in dedicated cells in sheet2
    By dnlwstr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2013, 06:38 AM
  6. Replies: 0
    Last Post: 12-05-2012, 09:59 PM
  7. Input Sheet2 Output Sheet1
    By tomjoe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2008, 02:32 AM

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