Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default =ROUND((ROW()-10)!G$66,L$3) ... what's the error?

Okay so an older spreadsheet i have had the code as this:

=ROUND('2'!G$66, L$3)

Basically the 2 is referencing the sheets because they are numbered 1-100.
Anyways, i want to try and get the number automatically instead of having to
enter each one. So i figured the title one would work but i can't seem to
figure out how to integrate all those together.

Because in an easy way to explain it '2' in the old code could also be
represented as ROW()-10, and so on for every other cell, but when i try and
put it into the code instead of the '2' it doesn't work.

Maybe i'm just missing something here...

Thanks a ton guys!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default =ROUND((ROW()-10)!G$66,L$3) ... what's the error?

You'll need to use the INDIRECT function for this:

=ROUND(INDIRECT(ROW()-10&"!G$66"),L$3)

HTH
Elkar



"tripflex" wrote:

Okay so an older spreadsheet i have had the code as this:

=ROUND('2'!G$66, L$3)

Basically the 2 is referencing the sheets because they are numbered 1-100.
Anyways, i want to try and get the number automatically instead of having to
enter each one. So i figured the title one would work but i can't seem to
figure out how to integrate all those together.

Because in an easy way to explain it '2' in the old code could also be
represented as ROW()-10, and so on for every other cell, but when i try and
put it into the code instead of the '2' it doesn't work.

Maybe i'm just missing something here...

Thanks a ton guys!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default =ROUND((ROW()-10)!G$66,L$3) ... what's the error?

On Mon, 9 Mar 2009 11:59:03 -0700, tripflex
wrote:

Okay so an older spreadsheet i have had the code as this:

=ROUND('2'!G$66, L$3)

Basically the 2 is referencing the sheets because they are numbered 1-100.
Anyways, i want to try and get the number automatically instead of having to
enter each one. So i figured the title one would work but i can't seem to
figure out how to integrate all those together.

Because in an easy way to explain it '2' in the old code could also be
represented as ROW()-10, and so on for every other cell, but when i try and
put it into the code instead of the '2' it doesn't work.

Maybe i'm just missing something here...

Thanks a ton guys!!


You aren't properly forming the string

The easiest way is to use the Address function:

Something like:

=AVERAGE(INDIRECT(ADDRESS(66,COLUMN($G$1),,,ROW()-10)),INDIRECT(ADDRESS(3,COLUMN($L$1),,,ROW()-10)))

--ron
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default =ROUND((ROW()-10)!G$66,L$3) ... what's the error?

On Mon, 09 Mar 2009 15:19:15 -0400, Ron Rosenfeld
wrote:

On Mon, 9 Mar 2009 11:59:03 -0700, tripflex
wrote:

Okay so an older spreadsheet i have had the code as this:

=ROUND('2'!G$66, L$3)

Basically the 2 is referencing the sheets because they are numbered 1-100.
Anyways, i want to try and get the number automatically instead of having to
enter each one. So i figured the title one would work but i can't seem to
figure out how to integrate all those together.

Because in an easy way to explain it '2' in the old code could also be
represented as ROW()-10, and so on for every other cell, but when i try and
put it into the code instead of the '2' it doesn't work.

Maybe i'm just missing something here...

Thanks a ton guys!!


You aren't properly forming the string

The easiest way is to use the Address function:

Something like:

=AVERAGE(INDIRECT(ADDRESS(66,COLUMN($G$1),,,ROW ()-10)),INDIRECT(ADDRESS(3,COLUMN($L$1),,,ROW()-10)))

--ron


oops, that should have been

=AVERAGE(INDIRECT(ADDRESS(66,COLUMN($G$1),,,ROW()-10)),L$3)
--ron
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
Round up or down cybergardener Excel Discussion (Misc queries) 7 April 11th 07 10:10 PM
Round up down or anywhere Joel Excel Discussion (Misc queries) 0 February 15th 07 02:55 PM
Excel error:ROUND(1000.2555-999,3)=1.255 liaosheng Excel Worksheet Functions 5 September 4th 06 09:15 PM
I am getting a strange round off error in excel derekcowley Excel Worksheet Functions 9 June 19th 06 12:41 PM
How do I ROUND() round off decimals of a column dataset? Højrup Excel Worksheet Functions 2 January 12th 05 10:50 AM


All times are GMT +1. The time now is 03:51 AM.

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

About Us

"It's about Microsoft Excel"