+ Reply to Thread
Results 1 to 12 of 12

BIG Cleaning Data

  1. #1
    Registered User
    Join Date
    03-12-2022
    Location
    Bucharest
    MS-Off Ver
    2019
    Posts
    35

    Exclamation BIG Cleaning Data

    I have 5 columns of cleaning addresses formulas (one after one)
    All formulas working good, but 5 steps of formulas is too much.
    I ask ExcelForum experts to help me reducing the number of steps and check formulas for errors.
    Formulaset must working on Excel 2019, without VBA, UDF, PQ, without helper columns,.. only regular or array formulas.
    I know debugging is not an easy task, that's because I ask only experts.
    I provide a screenshot and workbook with full data and comments.
    Thank You.

    Excelforum_Merge.png
    Attached Files Attached Files
    Last edited by Losai; 04-07-2022 at 07:35 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,364

    Re: BIG Cleaning Data

    I don't have 2019 (and hence some of the formulae used is "alien" to me). However given the multiple SUBSTITUTE statements used, I would be surprised if you get a shorter solution. Can you really combine formula 2 & 3 !.

    The real solution is to solve the problem at source : why are the addresses so wrong?
    Last edited by JohnTopley; 04-07-2022 at 04:28 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: BIG Cleaning Data

    If you don't mind to use UDFs. Please try

    Please Login or Register  to view this content.
    With this UDF, you may use together with PROPER() and TRIM()

    Regards.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,364

    Re: BIG Cleaning Data

    The OP requested a formula - and no helper columns! - not VBA, solution [although I would look at the VBA option]: however some companies do not allow VBA solution.

  5. #5
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: BIG Cleaning Data

    Hmmm, in that case maybe LAMBDA can help ?

    something like....
    =LAMBDA(Original,From,To,SUBSTITUTE(Orighnal,From,To))

    I use Excel 2016, so not sure about them.

    Regards.

  6. #6
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: BIG Cleaning Data

    That's a first, I've never hit the 8,192 character limit in a formula before! Looks like just hammering the formula together isn't an option then

    Is PowerQuery an option? Some good Youtube tutorials available if you search for 'powerquery data cleansing'
    <<< If you have valued anyone's contributions in this thread, please click * to thank them for their efforts

  7. #7
    Registered User
    Join Date
    03-12-2022
    Location
    Bucharest
    MS-Off Ver
    2019
    Posts
    35

    Re: BIG Cleaning Data

    Quote Originally Posted by menem View Post
    ...maybe LAMBDA can help?
    something like....
    =LAMBDA(Original,From,To,SUBSTITUTE(Orighnal,From,To))
    This function is not available in Excel 2019

    Help request still available.

  8. #8
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: BIG Cleaning Data

    In that case , could series of SUBSTITUTE help ?

    Plese review in this file.
    Note:
    1 The substitute will do in order , so it will be effect if you change some of them.
    2 The file are structured so you can add more 'substitute level' if need.



    Regards.
    Attached Files Attached Files
    Last edited by menem; 04-08-2022 at 10:20 AM. Reason: re-arrange sequence of function

  9. #9
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: BIG Cleaning Data

    For more your information, in the 1st level I've add Lower(), Clean(), so in the Eliminated data will be use only lower chars.

    Please Login or Register  to view this content.

    Regards.
    Last edited by menem; 04-08-2022 at 09:23 PM.

  10. #10
    Registered User
    Join Date
    03-12-2022
    Location
    Bucharest
    MS-Off Ver
    2019
    Posts
    35

    Re: BIG Cleaning Data

    Quote Originally Posted by menem View Post
    For more your information, in the 1st level I've add Lower(), Clean(), so in the Eliminated data will be use only lower chars.

    Please Login or Register  to view this content.

    Regards.
    Its very nice, but I must exclude any helper columns.
    Request is only for formula, without additional codding (VBA, UDF, PQ) or helper column.
    Thank You.

  11. #11
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: BIG Cleaning Data

    In case you want only 1 column of answer, you may increase number of substitute and cover all of them with
    Proper( Trim ( .... ) )

    Note : Eliminate sheet is still require but all become 1 level.


    Regards.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: BIG Cleaning Data

    If you are really need only a formula, you may combind your 1st level formula with nested substitute as in my sample file.
    Note: for excel 2016 only nested () can not over 64 levels, so my limit of substitute for the formula is 54.

    Regards.

    Note : you may remove some charactor in text string (of your formula) to reduce the amount of substitute.
    Attached Files Attached Files
    Last edited by menem; 04-10-2022 at 10:56 PM. Reason: add note

+ 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 for data cleaning
    By coltan123 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-02-2020, 11:24 AM
  2. VBA for data cleaning
    By coltan123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2020, 11:09 AM
  3. cleaning data
    By rahulanvi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2019, 04:44 PM
  4. [SOLVED] Cleaning Data
    By sorensjp in forum Excel General
    Replies: 10
    Last Post: 12-23-2016, 01:55 PM
  5. cleaning up data
    By Trebor777 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-11-2016, 12:16 PM
  6. Cleaning up data
    By aldek in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-24-2012, 12:24 AM
  7. Cleaning data
    By cool.chatbot in forum Excel General
    Replies: 11
    Last Post: 02-09-2011, 03:31 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