Since you only need 2 very specific cell values โโfrom a spreadsheet, I would suggest using the Script Component to get values โโonly from these cells, instead of using an Excel source. Excel Source is really designed to get many rows and columns that are laid out sequentially, and not to select individual cells.
To do this, first drag the Script Component from the Data Flow Transformations section of the toolbar. When the script type dialog box appears, check the first option, "Source."

Then edit this script component and select the Inputs and Outputs from the leftmost column and add the 2 outputs you need and set the correct data type for them.

Then click the script button, select your language (in this case, I chose Visual Basic 2008), and then click the Edit Script button.
When the IDE appears, add a link to Microsoft.Office.Interop.Excel and add the Imports statement for this at the top of your script. Then, in the CreateNewOutputRows subroutine CreateNewOutputRows get a link to your workbook and worksheet and print the values โโfrom the specific cells that you want to use using the AddRow() method. As you can see from the code below, I get the values โโdirectly from cells b7 and c7 and convert them to the desired type.

Save the script and exit the IDE, and now you can use this script component as a source for your database:

The script will read only the 2 values โโyou want from the cells you specify and provide them with the purpose of the data stream.
Although this may look a lot more than just dropping the Excel source in the data stream, it gives you much more flexibility and control.
source share