Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default WorkSheet reference

I need to create a formula that change the reference of a sheet when i copy
the formula.

I have the formula: sumif(sheet2!$F:$F;"Total Rota:";sheet2!$H$H)

When i copy the formula for the next rows or columns, i want the reference
of the sheet change (sheet3;sheet4;...)

(Sorry my english) :)

Thank you
--
HC
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default WorkSheet reference

First, you have a few errors in your formula.
You've used semi-colons (;) instead of commas (,). And you're missing a
colon (:) in the last range reference.
To correct your formula:

=SUMIF(Sheet2!$F:$F,"Total Rota:",Sheet2!$H:$H)

Now for the sheets. The sheet reference will not change automatically. It
is not a relative position, so to speak. "Sheet2" is simply a sheet name
and has no relation to the order position of the sheet. You may try
entering the sheet names into a column, say AA1 through AA5 (use more rows
if needed). Assuming that your sheets are all in "Sheet1", "Sheet2",
"Sheet3", etc. format, you can use a formula like this.

=SUMIF(INDIRECT($AA1&"!$F:$F"),"Total Rota:",INDIRECT($AA1&"!$H:$H"))

When copied down, the AA1 row reference will increment as necessary
therefore changing the sheet reference in your formula.

HTH,
Paul


"lena_form" wrote in message
...
I need to create a formula that change the reference of a sheet when i copy
the formula.

I have the formula: sumif(sheet2!$F:$F;"Total Rota:";sheet2!$H$H)

When i copy the formula for the next rows or columns, i want the reference
of the sheet change (sheet3;sheet4;...)

(Sorry my english) :)

Thank you
--
HC



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default WorkSheet reference

assumed as...
When i copy the formula for the next rows or columns, i want the reference
of the sheet change (sheet3;sheet4;...)

maybe like this
on one sheet location along row(2) say e.g. sheet2!Z2
=SUMIF(INDIRECT("Sheet"&ROW()&"!$f:$f"),"Total
Rota:",INDIRECT("Sheet"&ROW()&"!$h:$h"))
---copy down you will have the sumif for sheet3, sheet4,
consecutively...Ref# will appear denoting that there is no sheet"n" in the
workbook.

regards,
driller


--
*****
birds of the same feather flock together..



"lena_form" wrote:

I need to create a formula that change the reference of a sheet when i copy
the formula.

I have the formula: sumif(sheet2!$F:$F;"Total Rota:";sheet2!$H$H)

When i copy the formula for the next rows or columns, i want the reference
of the sheet change (sheet3;sheet4;...)

(Sorry my english) :)

Thank you
--
HC

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default WorkSheet reference

Hello Paul,

In the portuguese version of Excel, we use semi-colons to separate the
arguments in a formula.
Thank you a lot for the help
--
HC


"PCLIVE" escreveu:

First, you have a few errors in your formula.
You've used semi-colons (;) instead of commas (,). And you're missing a
colon (:) in the last range reference.
To correct your formula:

=SUMIF(Sheet2!$F:$F,"Total Rota:",Sheet2!$H:$H)

Now for the sheets. The sheet reference will not change automatically. It
is not a relative position, so to speak. "Sheet2" is simply a sheet name
and has no relation to the order position of the sheet. You may try
entering the sheet names into a column, say AA1 through AA5 (use more rows
if needed). Assuming that your sheets are all in "Sheet1", "Sheet2",
"Sheet3", etc. format, you can use a formula like this.

=SUMIF(INDIRECT($AA1&"!$F:$F"),"Total Rota:",INDIRECT($AA1&"!$H:$H"))

When copied down, the AA1 row reference will increment as necessary
therefore changing the sheet reference in your formula.

HTH,
Paul


"lena_form" wrote in message
...
I need to create a formula that change the reference of a sheet when i copy
the formula.

I have the formula: sumif(sheet2!$F:$F;"Total Rota:";sheet2!$H$H)

When i copy the formula for the next rows or columns, i want the reference
of the sheet change (sheet3;sheet4;...)

(Sorry my english) :)

Thank you
--
HC




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default WorkSheet reference

Hello,

It worked perfectly.

Thank you a lot
--
HC


"driller" escreveu:

assumed as...
When i copy the formula for the next rows or columns, i want the reference
of the sheet change (sheet3;sheet4;...)

maybe like this
on one sheet location along row(2) say e.g. sheet2!Z2
=SUMIF(INDIRECT("Sheet"&ROW()&"!$f:$f"),"Total
Rota:",INDIRECT("Sheet"&ROW()&"!$h:$h"))
---copy down you will have the sumif for sheet3, sheet4,
consecutively...Ref# will appear denoting that there is no sheet"n" in the
workbook.

regards,
driller


--
*****
birds of the same feather flock together..



"lena_form" wrote:

I need to create a formula that change the reference of a sheet when i copy
the formula.

I have the formula: sumif(sheet2!$F:$F;"Total Rota:";sheet2!$H$H)

When i copy the formula for the next rows or columns, i want the reference
of the sheet change (sheet3;sheet4;...)

(Sorry my english) :)

Thank you
--
HC



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default WorkSheet reference

Is sheet name a must in the formula ? If not remove it and then copy the
fomula to other sheets ( I hope I have understood your requirements
properly).



"lena_form" wrote:

Hello,

It worked perfectly.

Thank you a lot
--
HC


"driller" escreveu:

assumed as...
When i copy the formula for the next rows or columns, i want the reference
of the sheet change (sheet3;sheet4;...)

maybe like this
on one sheet location along row(2) say e.g. sheet2!Z2
=SUMIF(INDIRECT("Sheet"&ROW()&"!$f:$f"),"Total
Rota:",INDIRECT("Sheet"&ROW()&"!$h:$h"))
---copy down you will have the sumif for sheet3, sheet4,
consecutively...Ref# will appear denoting that there is no sheet"n" in the
workbook.

regards,
driller


--
*****
birds of the same feather flock together..



"lena_form" wrote:

I need to create a formula that change the reference of a sheet when i copy
the formula.

I have the formula: sumif(sheet2!$F:$F;"Total Rota:";sheet2!$H$H)

When i copy the formula for the next rows or columns, i want the reference
of the sheet change (sheet3;sheet4;...)

(Sorry my english) :)

Thank you
--
HC

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
Macro to Create New Worksheet and Reference Cell in Old Worksheet As Tab Name - "Object Required" Error [email protected] Excel Discussion (Misc queries) 4 September 25th 06 01:35 PM
I want in one worksheet to relatively link to/reference cells in another without changing the format of the current worksheet. [email protected] Excel Discussion (Misc queries) 0 September 22nd 05 04:39 PM
Reference the worksheet from a multiple worksheet range function ( DBickel Excel Worksheet Functions 1 May 28th 05 03:49 AM
Can the offset worksheet function reference another worksheet AlistairJ Excel Worksheet Functions 2 May 9th 05 06:18 PM
Worksheet reference (i.e placing worksheet name in a cell) Roger Roger Excel Worksheet Functions 1 January 20th 05 03:40 PM


All times are GMT +1. The time now is 10:12 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"