+ Reply to Thread
Results 1 to 8 of 8

why are my bottom two contras not matching 2? can someone help

  1. #1
    Registered User
    Join Date
    06-14-2023
    Location
    usa
    MS-Off Ver
    365
    Posts
    48

    why are my bottom two contras not matching 2? can someone help

    Why the the green lines not saying 2?

    the top lines are fine

    iv concatanetd the name, amount,
    i have a countif in there also

  2. #2
    Registered User
    Join Date
    06-14-2023
    Location
    usa
    MS-Off Ver
    365
    Posts
    48

    Re: why are my bottom two contras not matching 2? can someone help

    here i forgot to add the file thanks alot guys
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,329

    Re: why are my bottom two contras not matching 2? can someone help

    C7 and C8 are different
    C9 and C10 are different

    I don't know what you want to count in column E
    Last edited by popipipo; 05-09-2024 at 04:51 PM.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Registered User
    Join Date
    06-14-2023
    Location
    usa
    MS-Off Ver
    365
    Posts
    48

    Re: why are my bottom two contras not matching 2? can someone help

    sorry i cannot upload a file as its too large but if you can help i would appreciate it:

    bascically

    in column AD it counts how many 180 there are above - its got over 100,000 lines so if you look at cell AI 971, at the end it says 180-4, this is because it looks at column AD and see how many times before 180 has come so it says its seen 18- 4 times before ( i am trying to net the same figures) problem is row 973 should match 971 but because the concat at the end says 180-4 & 180-1 it counts that as two separate lines and gives me the incorrect number 1 in column AJ

    please see picture

    if you look at column AI cels 971 and 973 they are exactly the same and should net off, but due to concat and countifs it doesnt match

    does it have to be sorted a special way?

    Attachment 868607

  5. #5
    Registered User
    Join Date
    06-14-2023
    Location
    usa
    MS-Off Ver
    365
    Posts
    48

    Re: why are my bottom two contras not matching 2? can someone help

    Quote Originally Posted by popipipo View Post
    C7 and C8 are different
    C9 and C10 are different

    I don't know what you want to count in column E
    sorry please see above my explnatation if you can help would really apprecaite
    Attached Images Attached Images

  6. #6
    Registered User
    Join Date
    06-14-2023
    Location
    usa
    MS-Off Ver
    365
    Posts
    48

    Re: why are my bottom two contras not matching 2? can someone help

    iv summarised more clearly:

    Hi All,

    I thought this formula was working as it did find a lot of contra entries, which then shown in column AJ a 1 or 2 – 2 meant it has a matching contra based on the concat in AI, 1 meant it cannot find a matching entry

    I was happy until I randomly checked an amount (180) and realised it as 1 when it should have been 2

    In column AD it counts how many 180 there are above (its filtered on 180) - its got over 100,000 lines so if you look at cell AI 971, at the end it says 180-4, this is because it looks at column AD and see how many times before 180 has come - so it says its seen 180- 4 times before ( i am trying to net the same figures) problem is row 973 should match 971 but BECAUSE the concat at the end says 180-4 & 180-1 it counts that as two separate lines (non matching) and gives me the incorrect number 1 in column AJ


    if you look at column AI cells 971 and 973 they are exactly the same and should net off, but due to concat and countifs it doesn’t match, it thinks its different

    I also I think need the countifs formula in Column AI as it if do not the countif in column AJ will show more numbers than 1 or 2 which is incorrect

    As an exercise I deleted the 180’s in cells AD 73,136,220 and guess what the cell AJ 971/972 show a 2

  7. #7
    Registered User
    Join Date
    06-14-2023
    Location
    usa
    MS-Off Ver
    365
    Posts
    48

    Re: why are my bottom two contras not matching 2? can someone help


  8. #8
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    146

    Re: why are my bottom two contras not matching 2? can someone help

    Without seeing the file or when looking at the one posted on Excel Forum, i'm see 2 potential issues:

    You're mentioning wanting to count anything "above the current cell/row" however your formula is referring the total column. Doing it like this will never come back with a valid answer to "counts how many 180 there are above". To get a valid and correct result from the formula, you need to restrict the counting range.
    Your count involves 2 criteria, so my advise change to "countifs" and include both criteria. Perhaps change the countif in column X to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Any further help: please attach the appropriate file to this thread, the one uploaded in post 4 is invalid.
    Attached Files Attached Files
    Last edited by joris moerings; 05-10-2024 at 05:42 AM.
    HtH,

    Joris

    --------------------------------------------------------------------------------
    If you found my answer helpful, please hit the Like or Thank button.

    Please follow the forum Rules and Guidelines and use Code tags around your VBA code.

    Remember: test VBA code always on a copy of your file because usually you can't use undo

+ 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] Return Row no. for Lookup from bottom of range, ignoring bottom n no. of rows
    By naira in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 12-27-2018, 12:07 AM
  2. finding contras of amounts with the same source
    By AndreE in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-25-2014, 06:34 AM
  3. how contras to eliminate in excel
    By Roselin in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-20-2014, 08:40 PM
  4. Reverse LOOKUP to find the Second matching value from the bottom
    By Nomad33 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-19-2013, 10:41 PM
  5. [Probably SOLVED] Bottom border depending on matching cell value
    By athegn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-27-2009, 09:41 AM
  6. Matching and then adding to bottom of col
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2006, 03:45 PM
  7. Replies: 1
    Last Post: 04-09-2006, 04:30 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