Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Automatic Number Increase

I have the Formula

=IF('[Power Forward 2013.xlsx]1'!$D$1"",'[Power Forward 2013.xlsx]1'!$D$1,"")

I would like to increase the number 1 to 2.3.4...and so on

the next line should look like

=IF('[Power Forward 2013.xlsx]2'!$D$1"",'[Power Forward 2013.xlsx]2'!$D$1,"")

each number is a different tab in the Power Forward Excel File. Any ideas on how to do this without copy - paste and manually changing?

I appreciate the help
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by G_off View Post
I have the Formula

=IF('[Power Forward 2013.xlsx]1'!$D$1"",'[Power Forward 2013.xlsx]1'!$D$1,"")

I would like to increase the number 1 to 2.3.4...and so on

the next line should look like

=IF('[Power Forward 2013.xlsx]2'!$D$1"",'[Power Forward 2013.xlsx]2'!$D$1,"")

each number is a different tab in the Power Forward Excel File. Any ideas on how to do this without copy - paste and manually changing?

I appreciate the help
Hi,

Have a look for the =INDIRECT() function.
It's one way of doing this, although it would require you to have a list of 1, 2, 3, 4 etc. somewhere in the workbook you can refer to.

There is possibly a VBA way around this too, but it's by no means my strong point so I won't even bog you down with a lame attempt at it.

Without sight of your workbook, I cannot advise further than that.

S.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,514
Default Automatic Number Increase

Try...

=IF(LEN('[Power Forward 2013.xlsx]1'!$D1),'[Power Forward
2013.xlsx]1'!$D1,"")

...where the row refs are now relative. Copy down to have it work for
other rows.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #4   Report Post  
Junior Member
 
Posts: 2
Default

Quote:
Originally Posted by GS[_2_] View Post
Try...

=IF(LEN('[Power Forward 2013.xlsx]1'!$D1),'[Power Forward
2013.xlsx]1'!$D1,"")

...where the row refs are now relative. Copy down to have it work for
other rows.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion

Garry,

I need the Rows to remain the same
I have a master spreadsheet. - each line refers to another spreadsheet ('[Power Forward 2013.xlsx]. I am good thus far. the problem is the following number 1' - the 1' refers to a tab in the power forward 2013 spreadsheet. I have 30 tabs labeled 1 2 3 4 5..... exact replicas of one another. what I would like to do is make that 1' automatically change to 2' 3 4 5.
any thoughts?
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,514
Default Automatic Number Increase

on 6/28/2012, G_off supposed :
'GS[_2_ Wrote:
;1603180']Try...

=IF(LEN('[Power Forward 2013.xlsx]1'!$D1),'[Power Forward
2013.xlsx]1'!$D1,"")

...where the row refs are now relative. Copy down to have it work for
other rows.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion



Garry,

I need the Rows to remain the same
I have a master spreadsheet. - each line refers to another spreadsheet
('[Power Forward 2013.xlsx]. I am good thus far. the problem is the
following number 1' - the 1' refers to a tab in the power forward 2013
spreadsheet. I have 30 tabs labeled 1 2 3 4 5..... exact replicas of
one another. what I would like to do is make that 1' automatically
change to 2' 3 4 5.
any thoughts?


Ok, I get it! The numbers you want to change are worksheet names, NOT
row positions. In this case you will need to use VBA to construct the
formula and insert it where you want it put. You will have to specify
the start row/col where the first formula goes (on which sheet) so VBA
knows where to put them. This assumes the sheet getting the formulas is
not one of the sheets you're pulling data from.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 621
Default Automatic Number Increase

To increment the sheet numbers 1 to 30 you must use INDIRECT function

example....

=IF(INDIRECT("[Book6.xls]" & ROW(1:1) & "!D1")<"","yes","no")

Copied down to row 30


Gord

On Thu, 28 Jun 2012 17:33:30 +0000, G_off
wrote:

Garry,

I need the Rows to remain the same
I have a master spreadsheet. - each line refers to another spreadsheet
('[Power Forward 2013.xlsx]. I am good thus far. the problem is the
following number 1' - the 1' refers to a tab in the power forward 2013
spreadsheet. I have 30 tabs labeled 1 2 3 4 5..... exact replicas of
one another. what I would like to do is make that 1' automatically
change to 2' 3 4 5.
any thoughts?

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
Automatic Date Increase by 12 Months Steve 084 Excel Discussion (Misc queries) 2 January 14th 09 09:50 PM
Number in cell increase with increase in font size. Value increases with increase in font.[_2_] Excel Discussion (Misc queries) 2 August 9th 07 01:58 PM
auto increase number if number is double or more chapeau_melon Excel Worksheet Functions 4 March 28th 07 12:08 AM
Can I increase a number by 5.5% and then round that number to the. Jeff Thornburg Excel Discussion (Misc queries) 1 June 28th 06 05:26 PM
number increase by 1 D Excel Worksheet Functions 0 June 22nd 05 02:25 AM


All times are GMT +1. The time now is 12:09 AM.

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"