protected static Ptg calcColumn( Ptg[] operands )
	{
		if( operands[0] instanceof PtgFuncVar )
		{
			// we need to return the col where the formula is.
			PtgFuncVar pfunk = (PtgFuncVar) operands[0];
			try
			{
				int loc = pfunk.getParentRec().getColNumber();
				loc += 1;
				return new PtgInt( loc );
			}
			catch( Exception e )
			{
			}
			;
		}
		else
		{
			// It's ugly, but we are going to handle the four types of references seperately, as there is no good way
			// to generically get this info
			try
			{
				if( operands[0] instanceof PtgArea )
				{
					PtgArea pa = (PtgArea) operands[0];
					int[] loc = pa.getIntLocation();
					return new PtgInt( loc[1] + 1 );
				}
				if( operands[0] instanceof PtgRef )
				{
					PtgRef pref = (PtgRef) operands[0];
					int loc = pref.getIntLocation()[1];
					loc += 1;
					return new PtgInt( loc );
				}
				if( operands[0] instanceof PtgName )
				{    // table???
					String range = ((PtgName) operands[0]).getName().getLocation();
					int[] loc = ExcelTools.getRangeCoords( range );
					return new PtgInt( loc[1] + 1 );
				}
			}
			catch( Exception e )
			{
			}
			;
		}
		return new PtgInt( -1 );
	}