Microsoft Excel sequencing

Copper Contributor

Microsoft Excel sequencing

Hello Excel Community,

is there a way or two columns to be sequence on different rows?

For example,

Row A1 does not match with S1, but matches with S16. I Hope this makes sense. I can send an example to further explain, ask. I am basically trying to find the variance between two columns on different rows. I did a Sort on both columns, but for some reason, when I am doing the match or true false, a majority of the columns are not matching up

3 Replies

Re: Microsoft Excel sequencing

It's possible to compare values from two columns that are on different rows in Excel. You can use the INDEX and MATCH functions together to achieve this. Here's how you can do it:

Suppose you have two columns of data in columns A and S, and you want to find the matching values from column A in column S, but they are not on the same row. You can follow these steps:

1. In cell B1, enter the formula:

=IF(ISNUMBER(MATCH(A1, S:S, 0)), "Match", "No Match")

This formula will check if the value in cell A1 exists anywhere in column S. If it does, it will return "Match", otherwise "No Match".

1. Drag the formula down along column B to apply it to all rows you want to compare.

This will give you a result of "Match" or "No Match" for each value in column A based on whether it exists in column S or not.

If you want to find the corresponding value in column S when there's a match, you can use the following formula in cell C1:

=IF(ISNUMBER(MATCH(A1, S:S, 0)), INDEX(S:S, MATCH(A1, S:S, 0)), "")

This formula will return the matching value from column S if there's a match, otherwise it will leave the cell blank.

Again, drag the formula down along column C to apply it to all rows.

These formulas should help you identify the variances between the two columns on different rows. The text was created with the help of AI

My answers are voluntary and without guarantee!

Was the answer useful? Mark as best response and like it!

This will help all forum participants.

Re: Microsoft Excel sequencing

Thank you for the information!I am looking at other methods as well, like how to reconcile 2 data sets in Power Query. Could this be done in Power Query as well?

Re: Microsoft Excel sequencing

You can reconcile two data sets in Power Query as well. Power Query provides a robust set of tools for data transformation and merging, making it ideal for comparing and reconciling different data sets.

Here's how you can reconcile two data sets using Power Query:

1. Load both data sets into Power Query:

• Go to the "Data" tab in Excel.
• Click on "Get Data" and choose "From Table/Range" to load your first data set.
• Repeat the process to load your second data set into Power Query.

2. Perform necessary transformations:

• Ensure that both data sets are properly formatted and structured for comparison.
• Apply any necessary transformations to clean and standardize the data.

3. Merge the two data sets:

• Use the "Merge Queries" option in Power Query to merge the two data sets based on a common key, such as an ID or a unique identifier.
• Choose the appropriate join type (e.g., inner join, left outer join) based on your reconciliation requirements.

4. Identify variances:

• Once the data sets are merged, you can add columns to calculate variances or differences between corresponding values in the two data sets.
• Use conditional logic or calculations to identify discrepancies or inconsistencies between the data sets.

5. Review and finalize:

• Review the reconciled data to identify any discrepancies or outliers.
• Make necessary adjustments or corrections as needed to ensure data integrity.

By following these steps, you can reconcile two data sets in Power Query and effectively identify any differences or variances between them. Power Query's flexibility and functionality make it a powerful tool for data reconciliation tasks.