permanent cell equal to a sheet

spilner

Board Regular
Joined
Jun 7, 2011
Messages
146
hi,i hve D,E and F cell as below.i need help if someone can make macro of this.

the cell D and F's cell is permanent.only the sheet number is different.
ive hundred of sheets which mean i will also have hundreds value in E cell.
below is example.what im showing is exact like in excel file.

Code:
  D           E                F
=''!G11       1             =''!F28
=''!G11       2             =''!F28
=''!G11       3             =''!F28
=''!G11       4             =''!F28
=''!G11       5             =''!F28
after formula :

Code:
   D             E              F
='1'!G11         1          ='1'!F28
='2'!G11         2          ='2'!F28
='3'!G11         3          ='3'!F28
='4'!G11         4          ='4'!F28
='5'!G11         5          ='5'!F28
is there anyway we can can make it auto insert value in E to D and E to F's ='value in E' ?

thanks a lot
 
Last edited:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try ...

In D2,
=INDIRECT("'"&E2&"'!G11")

Fill down

In F2,
=INDIRECT("'"&E2&"'!F28")

Fill down
 
Upvote 0
If i havent create a new sheet yet. So the number on D wont be key in. If i put the formula it turns REF. how do i make it turn to blank? So when i enter the sheet number on D. Then i refresh the formula. Then it recalculate the cell. Thanks
 
Upvote 0
sydney,

example in sheet 2.i insert a new line.the formula still take from F28.can u write when i insert a new line it will change to F29 cause the f28 is the total.
the total in f28 will be in f29 or so when i insert multiple lines.
can u fix it?

thanks sydney
 
Upvote 0
sydney,

example in sheet 2.i insert a new line.the formula still take from F28.can u write when i insert a new line it will change to F29 cause the f28 is the total.
the total in f28 will be in f29 or so when i insert multiple lines.
can u fix it?

thanks sydney
You have shifted the goalposts a fair bit with that little snippet of information. It may be that you will need a completely different approach. Is the cell F28 identifiable by some text or label, for example, the word TOTAL in a corresponding cell on the same row?
 
Upvote 0
the F28 is the total of sales.

xecel.jpg


like the pic above.if i insert a new line in F27.
the F28 will change to F29 right?

this formula =INDIRECT("'"&E2&"'!F28") .it will show the value 100 if i insert a new line in F27 as the formula is exact to F28 only.i want the formula to follow the total in F28.
so,everytime i insert a new line.the formula will still show the 300.
sorry for my bad english.thanks for concern.
 
Upvote 0
And I ask again ... Is the cell F28 identifiable by some text or label, for example, the word TOTAL in a corresponding cell on the same row?
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,713
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top