Conditional Merge

LINUS_MAASTOK

New Member
Joined
Oct 25, 2019
Messages
11
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
 

macfuller

Active Member
Joined
Apr 30, 2014
Messages
251
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

Threads
1,082,323
Messages
5,364,584
Members
400,809
Latest member
formulasataglance

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top