Conditional Merge


New Member
Oct 25, 2019
Good evening everyone, I had a question ... btw, excuse my bad english:

I have a couple of tables, CONTRIBUTION and BILLING, which have an "ID" field with which I relate them (the relationship between the tables is * (CONTRIBUTION) -> 1 (BILLING)), as well as a CONSUMPTION (numeric) field , a CONSUMPTION_PERIOD (numeric) field and a DATE (date) field with which it is possible to see what contribution was successfully billed.

To see what contribution was billed i make a Merge Table (Inner) between both tables, relating identical ID, CONSUMPTION and CONSUMPTION_PERIOD, which gave me a momentary valid Merge table.

Now I have been informed that there are contributions that can be billed with a margin of + - 5 in the CONSUMPTION field, that is, they should be able to join with an identical ID, an identical CONSUMPTION_PERIOD, variable DATE and CONSUMPTION with a margin of + -5 of variation

My question is, how can I make a table (like te merge table) that relates the CONSUMPTION in a specific range?

Thanks in advance :) <3 <3 <3


Board Regular
Apr 30, 2014
First, what is the +/- variation calculated upon if there are multiple values? Min, Max, Average, fixed?

Assuming you're doing this in Power Query, try:

1. Remove the Consumption field from the merge so that all consumption values for the specific ID and Period are joined
2. Create a temporary column with the absolute variance (absolute or percentage) based on whatever the formula is.
3. Filter only the rows that are within the +/- variance
4. Delete the temporary column

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...