How to Return Intersection of Row and Column
Find The Intersection Of Row And Column If We Have Two Conditions
In this Excel example tutorial I will show how we can for the two criteria/conditions as a result of back data that is in the intersection of the respective conditions. In this case, the conditions are the row and column and the result is the value at the intersection.
When it comes to the intersection of rows and columns then we have a minimum of two types of tasks
- One condition - How to show as a result of the row and column headers if you happen to know the intersection
- Two conditions - How to display the information as a result of the intersection if we know the conditions of the row and column
I already wrote about the problem of how to return a Column header and Row header if we are aware of the fact or value at the Intersection of Rows and Columns.
In the picture below you see the situation on the worksheet 'Sheet1'. In this Excel example, you imagine that you fill out a table containing the names of workers and payment of the cash value of a specific Date. Here I show the three workers would not be a problem to find how much we paid money to whom. But what if you have 50 to 100... employees and annual filling tables. Then the problem quickly find which employee we are on a specific date to pay out.
So at a certain date, we perform the payment of money. Our goal is to another worksheet, entering a date to see how much we have to pay that day and one worker. You must be aware that this Excel example can be used in other similar situations where we have two conditions header row and column and seek data or a value that is located at the intersection of rows and columns.
In this case, the conditions are us the date and the name of the workers and we are looking for value paid for each worker to a specific Date.
On the second worksheet 'Sheet2' there is another table that we use to have a certain search results from table 'Sheet1'. In this table it is sufficient to enter the date and Excel formulas will automatically display which the a worker has made payment of funds for a specific Date. This way of creating one good Excel formula is that the formula can be copied to the right and down and the formula will return the correct results since we have multiple columns that are a requirement.
You notice that our conditions is Unique (Dates and Names of employees).
INDEX function has Two syntax:
The formula in cell "B2" is as follows. This formula you copy it to the right until the last column and all the way down to the last row. The formula put in one line.
The formula above is composed of multiple nested functions. I'm here to try to parse the formula to the parts that you showed how the formula works.
The basic formula is the INDEX/MATCH combination. It consists of nested functions and how the INDEX-MATCH formula refer to the respective link where you have detailed explanations. This combination of the two functions often substitutes VLOOKUP formula.
I used the first type of variant syntax. As an array argument was used INDIRECT function which in combination with ADDRESS function returns a range of cells in which we seek a result.
As a second argument INDEX function, I used the MATCH function. Match function returns a row number for a particular condition. Inside, the MATCH formula also I used Indirect formula because we need a range of cells in which we seek condition. The formula put in one line
Also in the formula you notice COLUMN function, which is important because of the copy to the right. If you look at the organization of data on 'Sheet1', then you may notice that the data we seek as a result is in every second column. The combination of Address/Column functions assures us that when copying to the right, skipping one column or in other words I can say increasing the number of columns when copying a formula to the right. The first formula gives back the range 'B2:B50', other 'D2:D50', the third number of columns 'F2:F50', etc ...
Looks like this formula below, which uses the Address/Column functions. If you copy to the right you can see how it changes the cell range.
I hope you understand how the formula works in full. And finally, I can further say that I used IFERROR function to ignore the error #N/A which occurs if the conditions.
Find intersection point Row and Column header using the VLOOKUP formula
This problem can be solved with one VLOOKUP formula, because it is the Date in column 'A' Unique. So, set this formula in the cell below the 'B2' and copy it to the right all the way down. The principle of operation is the same formula. Set formula in to one line.