Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default change formula reference in bulk?

I need the help of all you experts out there. I have the following formula
throughout my spreadsheet.

=IF(INDEX(Summary!I$3:I$80,MATCH(VendorCommodities _Detail!$C3,Summary!$C$3:$C$80,0))="","",INDEX(Sum mary!$I$3:$I$80,MATCH(VendorCommodities_Detail!$C3 ,Summary!$C$3:$C$80,0)))

Basically, Column I on sheet2 pulls its data from column I on sheet1 and in
a seperate but similar formula, column L on sheet2 pulls its data from column
J on sheet1. With the exception of rows throughout the columns that give
totals, averages etc (these rows are protected)

Now I want to add a new column into sheet1 (for a new months data) and have
the formulas reference that column instead. But, due to the various rows of
protected totals, I cannot use the autofill option to change all of the
formulas in the column at once. Right now I pretty much have to manually
chnage the formulas in each cell (some are in bunches of 5-10 rows, but still
very time consuming)

Surely there is an easier way to go about this. Any ideas?

thanks
diane
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default change formula reference in bulk?

One thing you can do to minimize this pain in the future is use some named
ranges. So, for instance, if you gave the name Idx to Summary!I$3:I$80, and
gave the name MatchRange to Summary!$C$3:$C$80, then you'd need only to edit
the range assigned to those names. Assuming that you modified your formula
to be

=IF(INDEX(Idx,MATCH(VendorCommodities_Detail!$C3,M atchRange,0))="","",INDEX(Idx,MATCH(VendorCommodit ies_Detail!$C3,MatchRange,0)))

Meanwhile, you can press Ctrl-H to call up the Search & Replace dialog, and
search for

Summary!$C$3:$C$80

and replace it with

Summary!$D$3:$D$80

or whatever is appropriate - assuming that this range doesn't appear in your
subtotal formulas, etc

"diaare" wrote:

I need the help of all you experts out there. I have the following formula
throughout my spreadsheet.

=IF(INDEX(Summary!I$3:I$80,MATCH(VendorCommodities _Detail!$C3,Summary!$C$3:$C$80,0))="","",INDEX(Sum mary!$I$3:$I$80,MATCH(VendorCommodities_Detail!$C3 ,Summary!$C$3:$C$80,0)))

Basically, Column I on sheet2 pulls its data from column I on sheet1 and in
a seperate but similar formula, column L on sheet2 pulls its data from column
J on sheet1. With the exception of rows throughout the columns that give
totals, averages etc (these rows are protected)

Now I want to add a new column into sheet1 (for a new months data) and have
the formulas reference that column instead. But, due to the various rows of
protected totals, I cannot use the autofill option to change all of the
formulas in the column at once. Right now I pretty much have to manually
chnage the formulas in each cell (some are in bunches of 5-10 rows, but still
very time consuming)

Surely there is an easier way to go about this. Any ideas?

thanks
diane

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default change formula reference in bulk?

Perfect!

I named the ranges and then used the Find and Replace function to change the
formulas to include the range names. Worked beautifully. I can't believe I
had never named ranges before...I think I will go out and edit all of my
spreadsheets!

Thanks so much...

Diane

"Duke Carey" wrote:

One thing you can do to minimize this pain in the future is use some named
ranges. So, for instance, if you gave the name Idx to Summary!I$3:I$80, and
gave the name MatchRange to Summary!$C$3:$C$80, then you'd need only to edit
the range assigned to those names. Assuming that you modified your formula
to be

=IF(INDEX(Idx,MATCH(VendorCommodities_Detail!$C3,M atchRange,0))="","",INDEX(Idx,MATCH(VendorCommodit ies_Detail!$C3,MatchRange,0)))

Meanwhile, you can press Ctrl-H to call up the Search & Replace dialog, and
search for

Summary!$C$3:$C$80

and replace it with

Summary!$D$3:$D$80

or whatever is appropriate - assuming that this range doesn't appear in your
subtotal formulas, etc

"diaare" wrote:

I need the help of all you experts out there. I have the following formula
throughout my spreadsheet.

=IF(INDEX(Summary!I$3:I$80,MATCH(VendorCommodities _Detail!$C3,Summary!$C$3:$C$80,0))="","",INDEX(Sum mary!$I$3:$I$80,MATCH(VendorCommodities_Detail!$C3 ,Summary!$C$3:$C$80,0)))

Basically, Column I on sheet2 pulls its data from column I on sheet1 and in
a seperate but similar formula, column L on sheet2 pulls its data from column
J on sheet1. With the exception of rows throughout the columns that give
totals, averages etc (these rows are protected)

Now I want to add a new column into sheet1 (for a new months data) and have
the formulas reference that column instead. But, due to the various rows of
protected totals, I cannot use the autofill option to change all of the
formulas in the column at once. Right now I pretty much have to manually
chnage the formulas in each cell (some are in bunches of 5-10 rows, but still
very time consuming)

Surely there is an easier way to go about this. Any ideas?

thanks
diane

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
change row reference when pasting formula Stratful Excel Worksheet Functions 4 May 1st 07 01:52 PM
Bulk change cells to Array Formula [email protected] Excel Discussion (Misc queries) 1 September 28th 06 03:59 PM
How to change a tab name with cell reference and formula? Jared Excel Worksheet Functions 3 June 12th 06 09:41 PM
How do I bulk change the sign (+ or -) in Excel Steve Excel Discussion (Misc queries) 2 March 3rd 06 05:06 PM
How to change a formula reference? Brockettb Excel Discussion (Misc queries) 4 March 7th 05 11:11 PM


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

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"