Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bart
 
Posts: n/a
Default formula problem

Hi,
This formula has references to other sheets in the same file.
I have this formula in A1 : =IF('47'!$B$1<0;'47'!$B$1;" ")
I have this formula in A2 : =IF('48'!$B$1<0;'48'!$B$1;" ")
and so on and so on.
I want to copy this formula in about 50 rows. So i tried to click it and
move it to others cells. But the formula stays the same. I thought the
numbers 47 and 48 should increase with 1, but they don't.
How could I solve this ?

Bart

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default formula problem

Change it to

=IF(INDIRECT("'"&ROW(A47)&"'!$B$1"<0;INDIRECT("'" &ROW(A47)&"'!$B$1;" ")

and copy down


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bart" wrote in message
...
Hi,
This formula has references to other sheets in the same file.
I have this formula in A1 : =IF('47'!$B$1<0;'47'!$B$1;" ")
I have this formula in A2 : =IF('48'!$B$1<0;'48'!$B$1;" ")
and so on and so on.
I want to copy this formula in about 50 rows. So i tried to click it and
move it to others cells. But the formula stays the same. I thought the
numbers 47 and 48 should increase with 1, but they don't.
How could I solve this ?

Bart



  #3   Report Post  
Bart
 
Posts: n/a
Default formula problem

Thank you Bob, but it's not the solution I think.
You refer to A47, which is a cell, but i want to refer to a sheet which is
called '47'. To make it easier to understand i changed the formula :

I have this formula in A1 : =IF('sheet47'!$B$1<0;'sheet47'!$B$1;" ")
I have this formula in A2 : =IF('sheet48'!$B$1<0;'sheet48'!$B$1;" ")

So i want to make 'sheet47' variable, so it counts to sheet49, sheet50,
sheet51, ...

Is this more clear ?



"Bob Phillips" wrote:

Change it to

=IF(INDIRECT("'"&ROW(A47)&"'!$B$1"<0;INDIRECT("'" &ROW(A47)&"'!$B$1;" ")

and copy down


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bart" wrote in message
...
Hi,
This formula has references to other sheets in the same file.
I have this formula in A1 : =IF('47'!$B$1<0;'47'!$B$1;" ")
I have this formula in A2 : =IF('48'!$B$1<0;'48'!$B$1;" ")
and so on and so on.
I want to copy this formula in about 50 rows. So i tried to click it and
move it to others cells. But the formula stays the same. I thought the
numbers 47 and 48 should increase with 1, but they don't.
How could I solve this ?

Bart




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default formula problem

I know what you want, but there was an error ijn my previous post

Try

=IF(INDIRECT("'"&ROW(A47)&"'!$B$1")<0;INDIRECT("' "&ROW(A47)&"'!$B$1");"")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bart" wrote in message
...
Thank you Bob, but it's not the solution I think.
You refer to A47, which is a cell, but i want to refer to a sheet which is
called '47'. To make it easier to understand i changed the formula :

I have this formula in A1 : =IF('sheet47'!$B$1<0;'sheet47'!$B$1;" ")
I have this formula in A2 : =IF('sheet48'!$B$1<0;'sheet48'!$B$1;" ")

So i want to make 'sheet47' variable, so it counts to sheet49, sheet50,
sheet51, ...

Is this more clear ?



"Bob Phillips" wrote:

Change it to

=IF(INDIRECT("'"&ROW(A47)&"'!$B$1"<0;INDIRECT("'" &ROW(A47)&"'!$B$1;" ")

and copy down


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bart" wrote in message
...
Hi,
This formula has references to other sheets in the same file.
I have this formula in A1 : =IF('47'!$B$1<0;'47'!$B$1;" ")
I have this formula in A2 : =IF('48'!$B$1<0;'48'!$B$1;" ")
and so on and so on.
I want to copy this formula in about 50 rows. So i tried to click it

and
move it to others cells. But the formula stays the same. I thought the
numbers 47 and 48 should increase with 1, but they don't.
How could I solve this ?

Bart






  #5   Report Post  
Bart
 
Posts: n/a
Default formula problem

Thank you Bob, it works now

"Bob Phillips" wrote:

I know what you want, but there was an error ijn my previous post

Try

=IF(INDIRECT("'"&ROW(A47)&"'!$B$1")<0;INDIRECT("' "&ROW(A47)&"'!$B$1");"")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bart" wrote in message
...
Thank you Bob, but it's not the solution I think.
You refer to A47, which is a cell, but i want to refer to a sheet which is
called '47'. To make it easier to understand i changed the formula :

I have this formula in A1 : =IF('sheet47'!$B$1<0;'sheet47'!$B$1;" ")
I have this formula in A2 : =IF('sheet48'!$B$1<0;'sheet48'!$B$1;" ")

So i want to make 'sheet47' variable, so it counts to sheet49, sheet50,
sheet51, ...

Is this more clear ?



"Bob Phillips" wrote:

Change it to

=IF(INDIRECT("'"&ROW(A47)&"'!$B$1"<0;INDIRECT("'" &ROW(A47)&"'!$B$1;" ")

and copy down


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bart" wrote in message
...
Hi,
This formula has references to other sheets in the same file.
I have this formula in A1 : =IF('47'!$B$1<0;'47'!$B$1;" ")
I have this formula in A2 : =IF('48'!$B$1<0;'48'!$B$1;" ")
and so on and so on.
I want to copy this formula in about 50 rows. So i tried to click it

and
move it to others cells. But the formula stays the same. I thought the
numbers 47 and 48 should increase with 1, but they don't.
How could I solve this ?

Bart







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
Incremental formula problem Benjamin Excel Worksheet Functions 4 October 18th 05 02:42 PM
Problem with formula in Excel Bill R Excel Worksheet Functions 3 August 15th 05 03:02 AM
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 02:47 PM.

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"