This is called string concatenation, and it's not built into Excel natively. You have to add it.
String concatenation is conditionally gathering text strings into a single cell and separating them by some "delimiter". The most common delimiter is a comma, but your use of Alt-Enter is essentially the same thing.
First, here's the special user-defined function (UDF) you will need to add to your sheet:
=======
How to install the User Defined Function:
1. Open up your workbook
2. Get into VB Editor (Press Alt+F11)
3. Insert a new module (Insert > Module)
4. Copy and Paste in your code (given above)
5. Get out of VBA (Press Alt+Q)
6. Save your sheet
The function is installed and ready to use.
========
This UDF is used very much like a SUMIF(). First parameter is the evaluation range, the second is the value to match, the third is the return values range. The fourth is the "delimiter" to separate each matching value, and the fifth is TRUE/FALSE if you want to suppress duplicate answers.
So, on in D5, the formula would be:
=CONCATIF('Tab 1'!E10:E69, 3, 'Tab 1'!F10:F69, CHAR(10), FALSE)
You'll have to format those cells with WRAP TEXT turned on.
I can already see your next question, how to have one formula down the column D that will grab the correct tab without having to customize each formula. You'll need INDIRECT() for that. The replacement D5 formula would be:
=CONCATIF(INDIRECT("'" & A5 & "'!E10:E69"), 3, INDIRECT("'" & A5 & "'!F10:F69"), CHAR(10), FALSE)
Attached is your sample sheet with the UDF installed. I've shown the two versions of the formula in the sheet, too.
Bookmarks