+ Reply to Thread
Results 1 to 16 of 16

Formula to consider first value of multiple same values

  1. #1
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Formula to consider first value of multiple same values

    Hello formula experts
    I am facing an issue with the formulas in columns L and O. When the amounts are same under one GSTIN number, the formula is selecting all the amounts and displaying matched. I need your expertise to edit the formula in such a way that it will select only one row (first row) to match and the remaining ones as blank. The code needed to be edited are columns L and O only as they do not take the Invoice number and Date into consideration. Please help me to solve this issue.
    Thank you in advance
    Attached Files Attached Files
    Last edited by RAJESH SHAH; 08-29-2022 at 04:50 AM. Reason: #Solved by HansDouwe

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: Formula to consider first value of multiple same values

    Try changing the part >0 to =1

    L2 would be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!

  3. #3
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Formula to consider first value of multiple same values

    It is deleting one of the matches but the wrong one. It is showing matched in both the Tally rows whereas it has to show Matched one in Portal and one in Tally row. I want the yellow marked cell to show as blank.

  4. #4
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Formula to consider first value of multiple same values

    I have a formula from a different application, used before but that will calculate only one column G. If this is edited to include column H and I then it may work for column O. Have to use control + shift + enter to get the result.
    HTML Code: 

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: Formula to consider first value of multiple same values

    L24 matched because there are even 2 PORTAL rows with exact the same content in columns C, G, H and I. [row 22 and row 23]
    L21 matched because there is 1 PORTAL row with exact the same content in columns C, G, H and I. [row 19]

  6. #6
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Formula to consider first value of multiple same values

    This is why I need to edit or change the formulain columns L and O. So that, the formula selects only one value instead of multiple values.

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: Formula to consider first value of multiple same values

    You don't have an Excel issue, but a business issue.
    The formulas do what they are supposed to do and indicate is there for a PORTAL row at least 1 TALLY MATCH or not and vice-versa.
    PORTAL row 19 matched to TALLY row 20 and 21 and vice-versa (TALLY row 20 and 21 matched to PORTAL row 19).
    TALLY row 24 matched to PORTAL row 22 and 23 and vice-versa (PORTAL row 22 and 23 matched to TALLY row 24).

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: Formula to consider first value of multiple same values

    If you say a row cannot be matched for the second time, then in my opinion there is a match at L24 and O24, but no match at L23 and O23.
    After all, PORTAL rows are matched to TALLY rows, but PORTAL rows are not matched to each other.
    Now I understand what you mean and a formula can be made, so that the MATCH on rows 21 and 23 is not displayed.

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: Formula to consider first value of multiple same values

    Please try for L2 this formula and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    .
    I'll have to take a closer look at the formula for O2 and will come later.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Formula to consider first value of multiple same values

    Column L formula is working fine. Thanks HansDouwe. WIll wait for the formula for O2.

  11. #11
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: Formula to consider first value of multiple same values

    Please try for O2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Formula to consider first value of multiple same values

    Wow! It must be one of the biggest formulas I have come across so far. Both formulas are working perfect. Thank You so much HansDouwe.

  13. #13
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Formula to consider first value of multiple same values

    I am not able to add reputation to your post. It say you must spread some reputation around before giving it to HansDouwe again.

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: Formula to consider first value of multiple same values

    After applying the formula in column L and O, if there are multiple portals as well as tallys that all match each other then only the first will be matched.

    If it is the intention that if, for example, there are 3 tallys that match on 2 portals (and therefore 2 portals match on 3 tallys),
    then 2 tallys may be matched on 2 portals (and vice versa).

    In that case this formula can be used for column L:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In this given example, only the third tally remains unmatched.
    Last edited by HansDouwe; 08-29-2022 at 05:33 AM.

  15. #15
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Formula to consider first value of multiple same values

    HansDowwe. I want only the first one to be matched and the other to be blank as the other is an actual mismatch. Your first formula is perfect for that. I checked all the 6 formulas and it is giving me exactly what I was expecting. If there are 5 same amounts, 3 in Portal and 2 in Tally, under one GSTIN then it will take 2 from portal and 2 from tally as matched and the remaining one will be blank (Mismatch). and if there are 7 same amounts.... and so on. Hope you understood.

  16. #16
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Formula to consider first value of multiple same values

    Not to worry, your 2 formulas are perfect. If I face any other issue in future, I will post it in a new thread. For now this is solved. Thanks for still trying to help.

+ 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. Replies: 1
    Last Post: 02-12-2021, 07:21 PM
  2. Replies: 13
    Last Post: 05-24-2018, 01:18 AM
  3. Formula to Sum 3 Column Values based on Multiple Criteria for Multiple Rows
    By RMerckling in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2016, 07:46 PM
  4. Formula to check multiple values for multiple specific results
    By lqangel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2015, 01:29 PM
  5. Replies: 12
    Last Post: 02-10-2014, 11:59 AM
  6. Formula to lookup multiple text values in multiple columns
    By karimk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-04-2013, 05:33 AM
  7. Replies: 1
    Last Post: 10-23-2012, 12:08 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