+ Reply to Thread
Results 1 to 3 of 3

Split sentences into different columns using formulas

  1. #1
    Registered User
    Join Date
    08-29-2016
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    41

    Split sentences into different columns using formulas

    Dear all

    I am trying to create a table with formulas built in to separate the words into different columns.

    Refer to attached,
    For example:
    If I paste the following into E2,
    11 Sep 2017: Inflow of USD$1,000,000.00 via CHEQUE 123456 from ()

    The following should generate automatically
    11 Sep 2017 --> Column A2 --> =TRIM(LEFT(E2,FIND(":",E2)-1))
    Inflow --> Column B2 --> =IF(ISNUMBER(SEARCH("Inflow",E2)),"Inflow","Outflow")
    123456 --> Column C2
    USD$1,000,000.00 --> Column D2 --> =TRIM(MID(E2,FIND("of",E2)+2,FIND("via",E2)-FIND("of",E2)-2))

    I have problems with the Cheque No. I am trying to find a formula that can find the position of the numeric value after the "via" and take 6 digits from there.

    1) The position of the cheque no is not fixed. It varies because of the amount and inflow/outflow.
    2) The cheque number will always be a 6 digits number
    3) It is the only numeric value after the "via"

    Appreciate if anyone has a solution to it.

    Thanks and warmest regards,
    Fantasylo
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Split sentences into different columns using formulas

    Not too pretty but it works for the example given:

    =MID(E2,FIND(IF(COUNTIF(E2,"*DEPOSIT*"),"DEPOSIT","CHEQUE"),E2)+IF(COUNTIF(E2,"*DEPOSIT*"),8,7),6)

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Split sentences into different columns using formulas

    Happy to help. Thanks for the rep!

+ 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. Formula(s) to Split Text String Across Columns Using Columns as Seperator
    By WaylettChris in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2016, 01:13 PM
  2. Replies: 0
    Last Post: 10-28-2015, 01:45 PM
  3. Find a requested word within sentences and output those sentences elsewhere
    By swfred2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2014, 02:24 PM
  4. [SOLVED] Column of single words as filter for columns with sentences
    By [email protected] in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 12
    Last Post: 01-23-2014, 12:11 PM
  5. Split uneven data from a single columns to multiple columns
    By pfoz in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-13-2013, 08:24 AM
  6. Replies: 1
    Last Post: 05-07-2013, 04:16 AM
  7. Split sentences into words
    By sparx in forum Excel General
    Replies: 5
    Last Post: 02-22-2006, 03:51 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