+ Reply to Thread
Results 1 to 4 of 4

splitting formula giving wrong answer in a particular for specific pack size description

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

    splitting formula giving wrong answer in a particular for specific pack size description

    I have a worksheet which split pack size drinks to their relative columns Headers

    3*6*2,5 litre

    split

    3 6 2.5 2.5

    but however with 1*6*5L ,

    2*8*1L

    2*8*1 L


    I am getting incorrect results of litrage in column D litrage header which gives the results per pack

    Formula in column D giving me incorrect results as per sample below,


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

  2. #2
    Forum Contributor
    Join Date
    03-28-2018
    Location
    Houston, TX
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    127

    Re: splitting formula giving wrong answer in a particular for specific pack size descripti

    All of the formulas in columns B-E seem unnecessarily complex. Try this simplification for all 4 columns:

    For column B:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For column C:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For column D:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For column E:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: splitting formula giving wrong answer in a particular for specific pack size descripti

    Please try
    D2
    =IFERROR(LOOKUP(99,--LEFT(SUBSTITUTE(TRIM(MID(SUBSTITUTE($A2,"*",REPT(" ",9)),18,9)),",","."),{1,2,3})),"")
    E2
    =IF(COUNT(FIND("C",A2)),D2/10,D2)

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,513

    Re: splitting formula giving wrong answer in a particular for specific pack size descripti

    In K2 then dragged across for 4 columns.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 09-28-2018 at 02:14 PM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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] If function giving me the wrong answer
    By lmcc007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-25-2018, 08:08 AM
  2. [SOLVED] formula to extract unique data and adding drinks pack size description only
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-29-2017, 03:34 PM
  3. [SOLVED] Formula is giving a 0 answer, why???
    By MRozell in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-01-2015, 10:10 AM
  4. [SOLVED] Dividing cell is giving wrong answer
    By jwlamb in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-30-2014, 08:15 PM
  5. [SOLVED] Pull stock code , description and pack from sheet1
    By makinmomb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2014, 03:23 PM
  6. [SOLVED] Help with Formula to Distribute evenly based on pack size of item...
    By blue84rain in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-29-2014, 05:53 PM
  7. Vlookup giving wrong answer
    By toclare84 in forum Excel General
    Replies: 5
    Last Post: 08-26-2010, 08:53 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