+ Reply to Thread
Results 1 to 11 of 11

Sort the values depends upon first three segment

  1. #1
    Forum Contributor
    Join Date
    02-28-2016
    Location
    australia
    MS-Off Ver
    2019
    Posts
    194

    Sort the values depends upon first three segment

    Dear expertise

    I have data which is splited as minus and plus values along with MICR Code. on both side

    i want sort the values both side from largest to smallest on both side, but same values repeat values are there but same MICR code.

    i want match TE008-145788-109-E1207-008R-USD-INR & TE008-145788-109-E1307-008R-USD-INR first three segment value

    if atleast two segment match then sort value to exact MICR code
    TE014-145794-125-E1213-008R-USD-INR = 720995
    TE014-145794-115-E1313-008R-USD-INR = -720995

    Find the attachment
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sort the values depends upon first three segment

    Explain, why this is the expected result.

    TE017-145797-118-E1216-008R-USD-INR 1058375
    TE017-145425-118-E1216-008R-USD-INR 1058375
    TE017-145797-118-E1216-008R-USD-INR 1058375
    TE017-145797-118-E1216-008R-USD-INR 1058375
    TE016-252202-301-E1215-008R-USD-INR 1058375
    TE018-145798-119-E1217-008R-USD-INR 1421280
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    02-28-2016
    Location
    australia
    MS-Off Ver
    2019
    Posts
    194

    Re: Sort the values depends upon first three segment

    if you sort largest to smallest values it not come not exact plus minus segment.

    for e.g 1058375 it reflect 5 line in both side but as per comparsion of micr code it not same in comparison of code
    first three segment is not match TE016-252202-301 & TE016-252202-303 then check first two segment TE016-252202 & TE016-252202 but value should match

    i want first three segment match with opposit segment code then cost should match, same cost but different Code is duplicate
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sort the values depends upon first three segment

    Now I am lost,

    you want to sort the data

    OR

    you want to match data in column A and B against E and F

  5. #5
    Forum Contributor
    Join Date
    02-28-2016
    Location
    australia
    MS-Off Ver
    2019
    Posts
    194

    Re: Sort the values depends upon first three segment

    yes i want to match data in column A and B against E and F

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sort the values depends upon first three segment

    on sheet raw data => row 15 and 22 have no match

    c2 =left(A2,16)&B2

    d2 =iferror(match($C2,$J$2:$J$23,0),"no match")

    f2 =left(H2,16)&ABS(I2)

    all formula's dragged down.

  7. #7
    Forum Contributor
    Join Date
    02-28-2016
    Location
    australia
    MS-Off Ver
    2019
    Posts
    194

    Re: Sort the values depends upon first three segment

    i couldnt get exact result what i looking for can u add working sheet ?

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sort the values depends upon first three segment

    Maybe you can add the excel file, with my formulas and add manualy the expected result in that file.

    Please also explain why it has to be that result.

  9. #9
    Forum Contributor
    Join Date
    02-28-2016
    Location
    australia
    MS-Off Ver
    2019
    Posts
    194

    Re: Sort the values depends upon first three segment

    Why result has to be expected means the cost value look some similar values
    for example there are 5 similar 1058375 cost in B&F , if i sort this In B col 1058375 and if sort In F col it come in straight line method -1058375 but product code not come in straight line if you see A4 TE017-145425-118-E1216-008R-USD-INR towards A4 Code in E4 TE017-145797-118-E1316-008R-USD-INR but its not actual match the actual code is in E5 i want TE017-145425-118-E1216-TR01-USD-INR code come to against A4 Code becoz TE017-145425-118 & TE017-145425-118 first segment is same. find the sheet "if sort the vallues" any one help this ? Please
    Last edited by johnmacpro; 08-01-2016 at 12:35 AM. Reason: excuse

  10. #10
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Sort the values depends upon first three segment

    See Attachment!! Create New NameManager of PWC of Range E:E This is UDF Formula J2 =FUZZYFIND(A2,PWC) fill down. for cost DO=VLOOKUP(J2,$E$2:$F$23,2,0)
    Here
    Please Login or Register  to view this content.
    Code credits to Robert solution
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    02-28-2016
    Location
    australia
    MS-Off Ver
    2019
    Posts
    194

    Re: Sort the values depends upon first three segment

    Thank alot Sir It's work for me Solved

+ 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. Have a large lookup that depends on 2 values...
    By CallumWebley in forum Excel General
    Replies: 6
    Last Post: 04-22-2016, 07:22 AM
  2. [SOLVED] VBA Code replace old values to new values depends upon column values
    By johnlara in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2015, 08:19 AM
  3. Ms access Vba Save Data to xl depends upon 1 table pick & Depends 2 Upon fiterDate
    By breadwinner in forum Access Programming / VBA / Macros
    Replies: 14
    Last Post: 05-29-2014, 10:59 PM
  4. vba code to replace old values by new value depends upon 2 col values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-27-2014, 03:22 AM
  5. [SOLVED] Fill the values & replace the old values by vba code depends upon 2 col
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-27-2014, 03:11 AM
  6. [SOLVED] vba to Replace Old values by new values depends upon cell values in AC:AC col
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2014, 08:15 AM
  7. [SOLVED] Need vba or formula help to set values depends upon 3 conditions values in 3 col
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2014, 12:34 PM

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