+ Reply to Thread
Results 1 to 11 of 11

issue with actual formula packsize drink split giving un expected output for specific data

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

    issue with actual formula packsize drink split giving un expected output for specific data

    I have a worksheet which split drinks packing size

    24*2*50CL that is splits by packs then per packs then original litrage then convert all original litrage to litres which is mandatory to . split to their individual columns


    24 / 2 /50 /0.5


    but I have an issue with 6*8*1L5 packsize giving me wrong output results 6 / 8 /1/ false expected results should be 6/8/1.5 /1.5.

    formula used for third split giving 1 instead of 1.5

    Please Login or Register  to view this content.

    formula used in 4 split giving false instead of 1.5
    Please Login or Register  to view this content.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: issue with actual formula packsize drink split giving un expected output for specific

    You could use Power Query (Get & Transform Data). Format your source column as a table, then use:

    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

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

    Re: issue with actual formula packsize drink split giving un expected output for specific

    Hi Olly

    Thanks for solution provided but I prefer a formula solution as the worksheet is very complex.

    If anyone can assists in a formula solution

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: issue with actual formula packsize drink split giving un expected output for specific

    A complex worksheet is all the more reason to use Power Query

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: issue with actual formula packsize drink split giving un expected output for specific

    Hi

    Try this approach
    In F2 use
    =SUBSTITUTE(
    MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"M",""),"C",""),"L",IF(COUNTIF(A2,"*.*"),"",",")),FIND("*",SUBSTITUTE(A2,"*","|",1),1)+1,99),
    ".",
    ",")
    +0
    Note: Probably you need delete the first SUBSTITUTE (in RED) and the change the red comma to decimal point like the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In G2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: issue with actual formula packsize drink split giving un expected output for specific

    Try formula but getting #VALUE! in F, perphaps you could sent sample for teston my side unsuccessful.

    Please Login or Register  to view this content.

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: issue with actual formula packsize drink split giving un expected output for specific

    Quote Originally Posted by JEAN1972 View Post
    Try formula but getting #VALUE! in F, ....
    See the file
    Attached Files Attached Files
    Last edited by José Augusto; 09-09-2019 at 09:17 AM.

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

    Re: issue with actual formula packsize drink split giving un expected output for specific

    Thanks working but issue with new G giving wrong answers when L in the middle showing 1 / 2/ 1 instead of 1.5 /2.5/ 1.5.
    Attached Images Attached Images

  9. #9
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: issue with actual formula packsize drink split giving un expected output for specific

    Hi

    You must replace formula in F with NEW F

    Use in F2 the following formula and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the file
    Attached Files Attached Files

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

    Re: issue with actual formula packsize drink split giving un expected output for specific

    Hi Jose

    Thanks now it clearer ,thank you for assistance.

  11. #11
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: issue with actual formula packsize drink split giving un expected output for specific

    You are welcome.

+ 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] Formula not giving expected results
    By billfinnjr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2019, 02:26 PM
  2. [SOLVED] split formula format litrage measurement need adjustment not giving expected results
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2018, 12:49 PM
  3. [SOLVED] RIGHT Formula not giving expected results
    By billfinnjr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-28-2018, 09:13 AM
  4. [SOLVED] Formula not giving expected results
    By billfinnjr in forum Excel General
    Replies: 7
    Last Post: 08-15-2018, 09:58 AM
  5. [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
  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