+ Reply to Thread
Results 1 to 3 of 3

split formula format litrage measurement need adjustment not giving expected results

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    split formula format litrage measurement need adjustment not giving expected results

    I have a worbook in which column A represents litrage products in various formats

    Column B to E represents the split

    if in litres column D and E will stay 1 litre

    if in cl divde by 100 to represent the amount in litres

    if in ml divide by 1000 to litres

    5*6*1l
    5*6*1L
    5*6*1litre
    5*6*1litre

    5*6*20ml
    5*6*30cl

    But I having an issue with ML , ml, l, L not giving the the expected results in column D and E

    formula used as below which starts from from column B and then drag to column E

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: split formula format litrage measurement need adjustment not giving expected results

    Please try

    B2:C2 copy down

    =IFERROR(--MID(SUBSTITUTE($A2,"*",REPT(" ",50)),COLUMNS($B2:B2)*50-49,50),"")

    D2

    =IFERROR(-LOOKUP(1,-MID(TRIM(RIGHT(SUBSTITUTE(SUBSTITUTE($A2,",","."),"*",REPT(" ",50)),50)),1,{1,2,3,4}))/1000^ISNUMBER(SEARCH("m",$A2)),"")

    E2

    =IFERROR(-LOOKUP(1,-MID(TRIM(RIGHT(SUBSTITUTE(SUBSTITUTE($A2,",","."),"*",REPT(" ",50)),50)),1,{1,2,3,4}))/1000^ISNUMBER(SEARCH("m",$A2))/100^ISNUMBER(SEARCH("c",$A2)),"")

    Copy all down

    I can Put more If to make for 4 column use same formula if need.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: split formula format litrage measurement need adjustment not giving expected results

    thank you worked as requested

+ 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] RIGHT Formula not giving expected results
    By billfinnjr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-28-2018, 09:13 AM
  2. [SOLVED] Formula not giving expected results
    By billfinnjr in forum Excel General
    Replies: 7
    Last Post: 08-15-2018, 09:58 AM
  3. Replies: 2
    Last Post: 06-11-2018, 02:41 PM
  4. [SOLVED] split formula of data not giving expected results need assistance
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-15-2018, 12:57 PM
  5. [SOLVED] assistance required copy macro not giving expected results to new sheet
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-14-2017, 01:37 PM
  6. IF Formula not giving expected results.
    By fungus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-17-2010, 02:10 PM
  7. Sumproduct formula not giving expected results
    By Shocked in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-30-2008, 03:12 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