=ROUND((ROW()-10)!G$66,L$3) ... what's the error?

  • Thread starter Thread starter tripflex
  • Start date Start date
T

tripflex

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'll need to use the INDIRECT function for this:

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

HTH
Elkar
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Scrabble Value calculation for Welsh words 0
Rounding Problem 5
Vlookup with 3 viariables 2
Top 10 List 4
Aligning rows. Help... 1
grouping 2
Pls help on Macro - round formula 3
Sorting Data in a Row Question 5

Back
Top