[mso] Unsolicited Sharing - Relative Incrementing of the INDIRECT formula

 
No one has asked about this type of issue that I've seen recently but its
turned to be such a nice trick I thought I'd share it.

52 (weeks) spread sheets compiling weekly data, each sheet with 1100 plus
line items (part numbers, each line item totaling ups 3 values.  Easy to
bring the total to the summary with   =INDIRECT($D$1&"!G7")  .  However,
repeat that down 1100 plus lines of data.  Copy and paste will not allow
"!G7" to perform a relative increment.  Hand edit 1100 formula's  !!yuck!!
These steps will automate the process.

Step 1 in the indirect formula change from   =INDIRECT($D$1&"!G7")  to
=INDIRECT($D$1& G7 ),  (you'll get a #ref value in your cell)

Step 2 copy and paste down your range of cells.  (This will allow the G7
value to increment)

Step 3 Within your copy range, find and replace the "="  with " " (or
nothing)   INDIRECT($D$1& G7 )    (This changes the line to text, has to be
text or it will error)

Step 4 Find and replace   &   with &"!  (This changes your text from
INDIRECT($D$1 & G7) to  INDIRECT($D$1&"!G7) 

Step 5 Find and replace ) with ")  (This changes your text from
INDIRECT($D$1&"!G7) to INDIRECT($D$1&"!G7")

Step 6 Find and Replace  IND  with =IND  which changes your text back to a
formula  =INDIRECT($D$1&"!G7")


If anyone else has tried to deal with this sort of problem hope this helps,
it's stumped me for a long time.  If there's a better way Please share.

Shirley Graver
Sys Admin
Rubber Associates

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: