

Here, the delimiter is a comma, TRUE is for Ignore empty cells, range= B5:B9 Step-1: By using the TEXTJOIN function You can join all of the rows in a cell. Step-04: After following the above process the following table will be formed. Step-03: Then Power Query Editor will appear and here follow these steps Transform tab > Transpose command Step-02: After that, a Create Table dialog box would appear where My table has headers option should be selected and the whole dataset should be selected. For using Power Query at first the data table should be selected and then the From Table/Range option under the Data tab should be selected.

Step-01: Suppose now I will convert all rows of Employee ID and Employee Nam e into a single row. Step-02: After entering the function the multiple Rows of the Employee ID Column will be transformed into a single Row. So, here I used the TRANSPOSE function and then selected the whole range. Step-01: Suppose I want to convert from Row 4 to Row 8 of Employee ID into a single row. Using this data table I will show you how you can easily convert multiple rows into a single row. Here I have a dataset composed of 2 columns named as Employee ID and Employee Name and 5 rows.

Enjoy applying these to your own Excel spreadsheets.Convert Multiple Rows to a Single Row.xlsxĥ Ways to Convert Multiple Rows to Single row in Excel You could also use an array formula, using the MATCH function, like this:Īs you can see, depending on what’s in your data tables, you can use several different techniques, using different Excel functions, to look up values. If the formulas don’t find any match, you will, of course, get a #N/A error! I used 2 as the LOOKUP value, but it can be any number, starting at 1. This is the “vector form” of the LOOKUP, so you can use it to get the corresponding value returned from C3:C13. If you use 2 as the lookup value, then the formula will match it with the last numeric value in the range, that is, the last row where both conditions are True. This will return either 1 or a #DIV/0! error. What this formula does, is divide 1 by an array of True/False values (B3:B13=C16), and then by another array of True/False values (D3:D13=C18). The result will be the same as in the previous solution. You could also do this using a different technique, such as this formula in cell C17: Then you use SUMPRODUCT in the INDEX function to return the value in the array C3:C13 that is in the row number provided. You use the SUMPRODUCT function to find out the row where both criteria are met, and return the corresponding row number using the ROW function. This formula would give us a #VALUE error! Instead, you could use a formula using a combination of SUMPRODUCT, INDEX and ROW functions, such as this one: You would be looking for the Name “James Atkinson” where the Qty is 1, and you’d like to return the Product name that matches these two criteria. This technique cannot be used if you want to look for two criteria and return a text result. Let’s change the value in cell C5 from “Wine Bottle” to “Milk Pack” to see what happens with the formula in cell C18:īecause our formula found two lines where both criteria were met, it sums the values in column D in both rows, giving us a Qty of 6. It returns the value 1, which corresponds to the value in cell D4 (“James Atkinson” in row 4 and also “Milk Pack” in the same row), thus returning the value in column D from that row. When it finds both, it returns the value in column D, from the same row where it met both criteria.

What it does is look in the range B3:B13 for the value in cell C16, and in the range C3:C13 for the value in cell C17. The SUMPRODUCT formula in cell C18 looks like this: Because the value that you want to return is a number, you can use a simple SUMPRODUCT() formula to look for the Name “James Atkinson” and the Product “Milk Pack” to return the Qty. The criteria are “Name” and “Product,” and you want them to return a “Qty” value in cell C18. Let’s look at a scenario where you want to use two criteria to return a value. Get Excel Using two criteria to return a value from a table
