Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default How to make columns absolute

Within excel 2003 you could use the - $ - sign for an absolute column
or row reference in a formula. The new 2007 table format gives a much
clearer reference but the reference seems to be relative for columns.
How do i make my tabel column references absolute?

note:
the new format is table1[[column1]] and looks like:
=sum(turnover[[january]])
instead of sum($B$2:$B$500).

=sum(turnover[[january]]) behaves relative. If i copy the formula to
the right and i also have a february column it becomes
=sum(turnover[[february]]).

Does anyone know how to make it absolute in a same way as the $-trick
so it won't shift to february?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default How to make columns absolute

The INDIRECT function can do this. It transforms any string containing a
range address to an actual reference that can be used by other functions.
For example,

If A1 contains "C3:C10" (without the quotes),
=SUM(INDIRECT(A1))
is the same as
=SUM(C3:C10)

You can also use INDIRECT to prevent Excel from modifying an address when a
row or column is inserted or deleted. For example

=SUM(INDIRECT("C3:C10"))

will sum the range C3:C10 and that reference will not change if rows and/or
columns are inserted/deleted. See also
http://www.cpearson.com/excel/indirect.htm for more into about the INDIRECT
function.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2008
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


"Ollie4" wrote in message
...
Within excel 2003 you could use the - $ - sign for an absolute column
or row reference in a formula. The new 2007 table format gives a much
clearer reference but the reference seems to be relative for columns.
How do i make my tabel column references absolute?

note:
the new format is table1[[column1]] and looks like:
=sum(turnover[[january]])
instead of sum($B$2:$B$500).

=sum(turnover[[january]]) behaves relative. If i copy the formula to
the right and i also have a february column it becomes
=sum(turnover[[february]]).

Does anyone know how to make it absolute in a same way as the $-trick
so it won't shift to february?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default How to make columns absolute

Tnx, Chip! I was using indirect as a workaround (i put the value in a
seperate cell and refer to this cell). Your way of using indirect is
more simple and keeps the formula readable.

i.e.
=SUMPRODUCT((fixed[BU]=$A9)*(fixed[WON]="YES")*(fixed[Turnover Fixed
Price January]))
becomes
=SUMPRODUCT((INDIRECT("fixed[BU]")=
$A9)*(INDIRECT("fixed[WON]")="YES")*(fixed[Turnover Fixed Price
January]))

draged to the next cell a got

=SUMPRODUCT((INDIRECT("fixed[BU]")=
$A9)*(INDIRECT("fixed[WON]")="YES")*(fixed[Turnover Fixed Price
February]))

Exactly what i want!! A little more complex than $ but acceptable.
Thx!


On 6 feb, 17:06, "Chip Pearson" wrote:
The INDIRECT function can do this. It transforms any string containing a
range address to an actual reference that can be used by other functions.
For example,

If A1 contains "C3:C10" (without the quotes),
=SUM(INDIRECT(A1))
is the same as
=SUM(C3:C10)

You can also use INDIRECT to prevent Excel from modifying an address when a
row or column is inserted or deleted. For example

=SUM(INDIRECT("C3:C10"))

will sum the range C3:C10 and that reference will not change if rows and/or
columns are inserted/deleted. See alsohttp://www.cpearson.com/excel/indirect.htmfor more into about the INDIRECT
function.

--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2008
Pearson Software Consulting, LLCwww.cpearson.com
(email on web site)

"Ollie4" wrote in message

...

Within excel 2003 you could use the - $ - sign for an absolute column
or row reference in a formula. The new 2007 table format gives a much
clearer reference but the reference seems to be relative for columns.
How do i make my tabel column references absolute?


note:
the new format is table1[[column1]] and looks like:
=sum(turnover[[january]])
instead of sum($B$2:$B$500).


=sum(turnover[[january]]) behaves relative. If i copy the formula to
the right and i also have a february column it becomes
=sum(turnover[[february]]).


Does anyone know how to make it absolute in a same way as the $-trick
so it won't shift to february?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you make a range absolute? Danielle Excel Discussion (Misc queries) 3 November 28th 07 11:08 PM
how do i make a cell absolute Carly Aspden Excel Discussion (Misc queries) 5 August 29th 06 09:15 AM
Excel: Cant copy an relative Cell and make absolute themantheworldlovesmorethannathan Excel Discussion (Misc queries) 1 August 22nd 06 11:26 PM
How can I make a cell valuye absolute? astoller Excel Discussion (Misc queries) 1 January 22nd 06 03:48 PM
Insert $ to make address absolute Roger Govier Excel Worksheet Functions 0 March 4th 05 06:53 AM


All times are GMT +1. The time now is 12:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"