Nov 05 2020 02:17 AM
Nov 05 2020 02:17 AM
I have over 6000 data and i want to Match all amount that sums to zero or a set value without the try and error method which takes time and prone to errors, please how can i achieve that using excel or Macros.
Nov 05 2020 05:58 AM
What you're asking is not exactly clear, I'm sorry to say. Nevertheless, if what you mean by "Match" is to identify, then you could use the Filter capability. That's available under the Data...toolbar. Or, if you have the newest versions of Excel, there's a FILTER function that could list every row of a database where zero is identified in some field.
You would be far more likely to get a more detailed and helpful response if you could post your actual spreadsheet (just making sure it contains no confidential information). A simple verbal description is almost always too confusing or unclear.
Nov 06 2020 01:15 AM
@mathetes Thanks for your response. yes it is to identify, attached shows a random sample which i am sure sum of the highlighted is equal to zero (which is what i want to achieve).
suppose i have 6000 or more cells cells to identify . how best can i go about it. i hope this clarify my questions.
Nov 06 2020 02:04 AM
Nov 06 2020 04:32 AM - edited Nov 06 2020 04:35 AM
Do you want to find/markup any positive number that has a matching negative number (and any negative number with a positive match)? Try something like this i B2
And copy down.
0 there is no match with opposite sign
1 there is one match with opposite sign
>1 (ambivalent)There is at least one match with opposite sign, but the match might be "used" by another number with the same sign
Try some kind of IF statement to sort things out
I'm using a non-english excel and i translating in my head, Check the spelling of the formulas
Nov 06 2020 07:33 AM
You're correct that the highlighted cells do sum to zero.
That raises at least a number of questions:
You need to become a lot clearer.....
and maybe you could describe the context you're working in here as well, so long as it's not confidential. Maybe there's a different way to meet the objective.
Nov 06 2020 08:11 AM
@IDRIS_A as @mathetes (and others) have said we need more information to understand exactly what you want/need. But looking at the number it almost appears that you have a ledger entries and are trying to find values that don't match up and need to be investigated. So in that case or similar you want to have paired values highlighted (or ignored). Here is a conditional formatting formula you can use to highlight any value that does not have a corresponding matched but opposite value. Note that it will highlight the FIRST x number of occurrences of that value so if you have 5, 5, -5, 5, 5, -5, -5 it will highlight the FIRST 5 and not the following 5s or -5s because those have 'matches'. BUT if this is a ledger and you want to know the unmatched line item you may need additional info to distinguish which 5 and -5 actually match up. AGAIN, we need more info to fully help.
Here is the Conditional Formatting formula I mentioned and used in the attached sheet to highlight the UNmatched values in RED:
Nov 06 2020 11:41 AM
@IDRIS_A Similar to @mtarler's solution and with the same end-result (I believe), something I picked-up a while ago from https://www.myonlinetraininghub.com/excel-bank-reconciliation-formula
I've taken the liberty to apply this trick to your data set, using a few helper columns and an intermediate pivot table. It highlights all numbers that cancel each other out. Whether these cancelling numbers really are related is something for you to determine.
Nov 06 2020 11:36 PM
@mathetes thank you very much, i appreciate your responses.
thanks for your time.