

=IF( logical test, value if true, value if false) Then, use the IF function as shown below.After that, the following sorted data will appear.At first, you have to select the Author column and then follow the Home tab > Editing> Sort & Filter> Sort A to Z To solve this problem I will use the IF function here. Here, suppose another criteria is to add all the books in a cell with respect to the same author.Method-2: Using Logical Function to merge same texts After pressing OK the following table will appear.

To solve this you have to just select the Count Numbers function as below.ĥ. But based on other criteria like counting the number of repetitions of the author names against the merged author name.Ĥ.

In the above scenario, I have tried to use the SUM function of the Consolidate option. After that, the duplicate cells of the Author column will be merged and their respective Price(Tk) values will be added. Then a Consolidate dialog box will appear where You have to select the whole data range as Reference and then click on Add on All references and then click on Left Column and finally press OK.ģ. To fulfill this criterion you have to first follow the procedure Data tab> Data Tools> ConsolidateĢ.Suppose you have to merge rows on the basis of the same authors and then with respect to their name the sum of the price of their book will be added. Method-1: Using Consolidate Option to merge duplicate values Sometimes based on criteria multiple rows will be merged here using different types of functions. Here, I have taken a dataset consisting of 3 columns named Author, Books, Price(Tk), and 9 rows. Merge rows in Excel based on criteria.xlsxĮasiest Methods to Merge Rows in Excel Based on Criteria
