QUOTE
I'm trying to set up all of my field records in excel with each field a seperate worksheet, each farm a workbook and so on. What I was wondering was if I could set up a master workbook with all the values (disking, planting, fertilizer costs, etc) and assign variables to them that i could then reference on each individual worksheet. That way i always know how much i have invested in any given crop.
I will also make projections easier
is there any way of referencing between sheets in a workbook, referencing between diff workbooks, or assigning a word variable to a cell with a numerical value in it?
I use Excel every day, 8-10 hours. So just about anything you want to do, it can be done.
A few questions about set up. Are you wanting those values all on one worksheet or separate worksheets, but same workbook? How are you getting values into Excel? By hand?
Will the size change; that is, will you keep adding rows and/or columns?
It sounds like named ranges will work fine for you. Named ranges can be specific to a worksheet or a global name (for the entire workbook). Also, you can set up static named ranges or dynamic named ranges, particularly if you will be adding new rows/columns of data.
NOTE: For worksheets, never use spaces for the worksheet names; if you want multiple words, then use capital letters for each word with no spaces, i.e. MyData. And for named rangeds, Excel will not let you have spaces for them.
Let's say you have values for planting on a worksheet named "Plantings". And assume your data is in the range A1:G25, but you may have new columns or new rows. Then while on worksheet Plantings, go to Insert > Name > Define. In the top portion, type in a name for the range. I tend to use Data plus a suffix to identify it. In this case, type in DataPlant. Then in the bottom box, type in the following formula:
=OFFSET(Plantings!$A$1,0,0,COUNTA(Plantings!$A:$A),COUNTA(Plantings!$1:$1))
Click OK.
To explain, the OFFSET function has five arguments. The first is the starting cell, in this case Plantings!$A$1. Then the number of rows to offset, in this case 0; then number of columns to offset, in this case 0. The fourth one is a COUNTA function which counts the number of used rows in column A, and the fifth counts the number of columns in row 1.
Now, if you have three columns and 12 rows, this named range will identify it. If you have 12 columns and 45 rows, it will still refer to the entire range.
Then anywhere else in the workbook, if you want to refer to this range, then you can use the name DataPlant. Also, if you want to pull data from any of these ranges, then you can use four different functions or combinations: VLOOKUP, HLOOKUP, INDEX/MATCH (this last combination is the most powerful). And you can use conditional sums. For one condition, use SUMIF, for multiple conditions use SUMPRODUCT.
Now, if this is the direction you want to go, then you will have to provide more info.