How to Combine Two Spreadsheets (PC)

  1. Home
  2. Knowledge Base
  3. Initial Setup
  4. Import
  5. How to Combine Two Spreadsheets (PC)
  1. Home
  2. Knowledge Base
  3. Troubleshooting
  4. Excel Issues
  5. How to Combine Two Spreadsheets (PC)

 

  1. When you are combining two spreadsheets, you need to designate one as the “main spreadsheet.” The main spreadsheet could be an export of an account from Badger. Once you’ve determined the main spreadsheet, add a new sheet to the main spreadsheet. (Keyboard Shortcut Hint: Press and hold [shift] and then press [F11].)  
  2. Copy and paste the secondary spreadsheet onto the newly created sheet on the main spreadsheet. (Keyboard Shortcut Hint: Press and hold [ctrl] and then press [A] to select the whole secondary spreadsheet.
  3. Then press and hold [ctrl] and then select [C] to copy the whole sheet. And then switch to the new sheet on the main spreadsheet and then press and hold [ctrl] and [V] to past the secondary spreadsheet onto the main spreadsheet sheet. Once it is pasted, you can close the secondary spreadsheet.
  4. For the rest of the article, I will say [new sheet] when referring to the info pasted from the secondary spreadsheet and the [main sheet] to refer to the information from the main spreadsheet.0 2
  5. To the far right on the [main sheet], put in the name of the column that you want to bring into the new sheet. 3
  6. Right underneath the name of the column,(the second row) start typing the formula: “=index( “and then select the column of information that you’re pulling from the [new sheet]. So if you’re pulling from Column C in the [new sheet], you would select all of Column C. So now the formula box looks like this: =INDEX(Sheet2!D:D 45
  7. After selecting the column, put in a [,] and then type “MATCH(”  (ps. don’t include the quotes “”.) Now the formula box looks like this: =INDEX(Sheet2!D:D,MATCH( 6
  8. Next, select the cell in this row on the [main sheet] that you will use to determine if they match a row on the [new sheet]. This is preferably the [name] column. So if the [name] column is in column B, we would type “$B2”. If that isn’t available, then the [address] or [customer id] column will work.  Note that the $ sign is so that we can drag across if we are bringing across multiple columns of data from the [new sheet] to the [main sheet].  So now the formula box looks like this: =INDEX(Sheet2!D:D,MATCH(Sheet1!$A2  7
  9. Then, we would type [,] and then we would select the column on the [new sheet] that corresponds (is the one we are matching) to the column we selected from the [main sheet] in Step 8. Then type $ in front of each letter in the array that we selected. So now the formula box looks like this: =INDEX(Sheet2!D:D,MATCH(Sheet1!$A2,Sheet2!$C:$C8
  10. Finally, we would type [,] and then type the zero key [0] followed by two closed parentheses”))”. So now the formula box looks like this: =INDEX(Sheet2!D:D,MATCH(Sheet1!$A2,Sheet2!$C:$C,0)).9
  11. If the formula is working, then it should populate the cell with information in the [new sheet] that lines up with the first row in the [main sheet].
  12. If it looks right, then you can drag down the formula for the rest of the column. So now the formula box in the cell right underneath the original one looks like this: =INDEX(Sheet2!D:D,MATCH(Sheet1!$A3,Sheet2!$C:$C,0)).
  13. If there are multiple columns that are right next to it that you want to bring across you can copy and paste across or drag across. So the formula in the cell right next to the original would look like this: =INDEX(Sheet2!E:E,MATCH(Sheet1!$A2,Sheet2!$C:$C,0)).
  14. Note, if there is no match, it will return a result of “#N/A”.
  15. If you want to get rid of the formulas and/or the #N/A’s”, you can copy and paste special the new row or rows and then replace the #N/A’s with nothing.

 

Related Articles