+ Reply to Thread
Results 1 to 6 of 6

VBA Required to split cells & calcuate

  1. #1
    Forum Contributor
    Join Date
    12-12-2017
    Location
    india
    MS-Off Ver
    2013
    Posts
    196

    VBA Required to split cells & calcuate

    Hi Friends,
    For long i m doing this manual task, were i need to split cells/Delimit cells which is in C7:C15 (Combined range), Here i need to
    split cells with some standards applied over it,

    ** If (combined range) it starts with Numeric, then it should split the combined range for 2 times as shown in attached sample
    file, one with P & the other with N in the Route Column.
    ** If (combined range) it starts with Alphabets, it should get splitted for 1 time as shown in samples

    then need to put start & End number in sequence manner, only for the P & X (Route Column).

    Samples with clearly explain better then me, so please refer the attached excel file (sheet1 & 2)

    I hope someone could help me to do this Task using VBA.

    Thanks in Advance.
    Attached Files Attached Files
    Last edited by amb2301; 09-03-2020 at 01:00 PM. Reason: attachment missed

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,938

    Re: VBA Required to split cells & calcuate

    You don't need VBA - here's a file with formulas and some slight rearrangement of your results...
    Attached Files Attached Files
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    12-12-2017
    Location
    india
    MS-Off Ver
    2013
    Posts
    196

    Re: VBA Required to split cells & calcuate

    Quote Originally Posted by Bernie Deitrick View Post
    You don't need VBA - here's a file with formulas and some slight rearrangement of your results...
    Thank you so much Bernie its working perfectly

  4. #4
    Forum Contributor
    Join Date
    12-12-2017
    Location
    india
    MS-Off Ver
    2013
    Posts
    196

    Re: VBA Required to split cells & calcuate

    Hi Bernie, from the above provided solution, you have saved lot of my time in my work.
    Thank you so much for that work.

    Here i got a small change/Amend in my work, so i m here again seeking your help.
    its better to understand my request with the attached sample file, as my english is poor.
    in the attached sample file, i have shown the difference of existing formula & Required once,
    Actually before the semicolon(":") if the letter D comes, then the exisiting formula is Okay for me, but if the Letter is other than D, then i need the formula to be worked as per the numerical values like in the sample.

    Please help me on this & it would be a great help for me.
    Thanks in Advance.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,938

    Re: VBA Required to split cells & calcuate

    I think this will work. In D6, use

    =IFERROR(VALUE(LEFT(C6,FIND(":",C6)-1)),IF(MID(C6,FIND(":",C6)-1,2)<>"D:",LEFT(C6,FIND(":",C6)-1),""))

    and then copy down.

  6. #6
    Forum Contributor
    Join Date
    12-12-2017
    Location
    india
    MS-Off Ver
    2013
    Posts
    196

    Re: VBA Required to split cells & calcuate

    Quote Originally Posted by Bernie Deitrick View Post
    I think this will work. In D6, use

    =IFERROR(VALUE(LEFT(C6,FIND(":",C6)-1)),IF(MID(C6,FIND(":",C6)-1,2)<>"D:",LEFT(C6,FIND(":",C6)-1),""))

    and then copy down.


    Thatz a perfect one worked fine .
    Thank you so much for your Help Bernie

+ 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. [SOLVED] VBA required to split some specific end word to another column
    By amb2301 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-11-2020, 05:34 PM
  2. VBA Required to split addresses
    By amb2301 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2020, 09:10 PM
  3. [SOLVED] Edit vba to split values over 10 columns and required rows
    By JNEWMAN in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2019, 11:16 AM
  4. [SOLVED] Needs to calcuate a Dymamic value relative to 2 cells
    By tommytrader in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-31-2016, 09:22 PM
  5. [SOLVED] Formula required to split uneven data into different columns
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-14-2015, 04:25 AM
  6. [SOLVED] Fucntion Required for Split data
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2013, 11:10 AM
  7. Macro required to split in to Multiple files
    By gsikumar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-01-2012, 08:23 AM

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