Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Anthony
 
Posts: n/a
Default Duplication of function

The following formula relates to one worksheet. I now want to dupicate this
formuala so that it now relates to 12 worksheets all throwing to one cell,
the only change is the sheet ref. Is there an easy way to do this other than
copy and cut / paste changes

=(SUMPRODUCT(--('Angus Waygu SF 120 day'!$E$29:'Angus Waygu SF 120
day'!$E$84='Cattle Budget'!D7),--(('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$9)+('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$18)),('Angus Waygu SF 120
day'!$C$29:'Angus Waygu SF 120 day'!$C$84)*'Feedlot Assumptions'!$B$3))
  #2   Report Post  
DerbyJim1978
 
Posts: n/a
Default

Highlight the cell and goto Edit - Replace (shortcut CTRL+H).

Now replace 'Angus Waygu SF 120 day' with say 'Sheet1' or whatever it is
called.

Regards

Jim

"Anthony" wrote:

The following formula relates to one worksheet. I now want to dupicate this
formuala so that it now relates to 12 worksheets all throwing to one cell,
the only change is the sheet ref. Is there an easy way to do this other than
copy and cut / paste changes

=(SUMPRODUCT(--('Angus Waygu SF 120 day'!$E$29:'Angus Waygu SF 120
day'!$E$84='Cattle Budget'!D7),--(('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$9)+('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$18)),('Angus Waygu SF 120
day'!$C$29:'Angus Waygu SF 120 day'!$C$84)*'Feedlot Assumptions'!$B$3))

  #3   Report Post  
Anthony
 
Posts: n/a
Default

jim

below is an example of the string with one duplication copied in, how do i
do a replace on the Angus Wagyu SF 120 day for only the second part. know
what I mean?

thanks

anthony

=(SUMPRODUCT(--('Angus Waygu SF 120 day'!$E$29:'Angus Waygu SF 120
day'!$E$84='Cattle Budget'!D7),--(('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$9)+('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$18)),('Angus Waygu SF 120
day'!$C$29:'Angus Waygu SF 120 day'!$C$84)*'Feedlot
Assumptions'!$B$3))+(SUMPRODUCT(--('Angus Waygu SF 120 day'!$E$29:'Angus
Waygu SF 120 day'!$E$84='Cattle Budget'!D7),--(('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$9)+('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$18)),('Angus Waygu SF 120
day'!$C$29:'Angus Waygu SF 120 day'!$C$84)*'Feedlot Assumptions'!$B$3))

"DerbyJim1978" wrote:

Highlight the cell and goto Edit - Replace (shortcut CTRL+H).

Now replace 'Angus Waygu SF 120 day' with say 'Sheet1' or whatever it is
called.

Regards

Jim

"Anthony" wrote:

The following formula relates to one worksheet. I now want to dupicate this
formuala so that it now relates to 12 worksheets all throwing to one cell,
the only change is the sheet ref. Is there an easy way to do this other than
copy and cut / paste changes

=(SUMPRODUCT(--('Angus Waygu SF 120 day'!$E$29:'Angus Waygu SF 120
day'!$E$84='Cattle Budget'!D7),--(('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$9)+('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$18)),('Angus Waygu SF 120
day'!$C$29:'Angus Waygu SF 120 day'!$C$84)*'Feedlot Assumptions'!$B$3))

  #4   Report Post  
Biff
 
Posts: n/a
Default

Hi!

You don't need to repeat the sheet names in the range references:

'Angus Waygu SF 120 day'!$E$29:'Angus Waygu SF 120 day'!$E$84

Can be shortened to:

'Angus Waygu SF 120 day'!$E$29:$E$84

That formula is almost unreadable and unecessarily way too long.

Another thing that will make your life easier is to not use such long sheet
names! Maybe consider something like AWSF120D.

Biff

"Anthony" wrote in message
...
jim

below is an example of the string with one duplication copied in, how do i
do a replace on the Angus Wagyu SF 120 day for only the second part. know
what I mean?

thanks

anthony

=(SUMPRODUCT(--('Angus Waygu SF 120 day'!$E$29:'Angus Waygu SF 120
day'!$E$84='Cattle Budget'!D7),--(('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$9)+('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$18)),('Angus Waygu SF 120
day'!$C$29:'Angus Waygu SF 120 day'!$C$84)*'Feedlot
Assumptions'!$B$3))+(SUMPRODUCT(--('Angus Waygu SF 120 day'!$E$29:'Angus
Waygu SF 120 day'!$E$84='Cattle Budget'!D7),--(('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$9)+('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$18)),('Angus Waygu SF 120
day'!$C$29:'Angus Waygu SF 120 day'!$C$84)*'Feedlot Assumptions'!$B$3))

"DerbyJim1978" wrote:

Highlight the cell and goto Edit - Replace (shortcut CTRL+H).

Now replace 'Angus Waygu SF 120 day' with say 'Sheet1' or whatever it is
called.

Regards

Jim

"Anthony" wrote:

The following formula relates to one worksheet. I now want to dupicate
this
formuala so that it now relates to 12 worksheets all throwing to one
cell,
the only change is the sheet ref. Is there an easy way to do this other
than
copy and cut / paste changes

=(SUMPRODUCT(--('Angus Waygu SF 120 day'!$E$29:'Angus Waygu SF 120
day'!$E$84='Cattle Budget'!D7),--(('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$9)+('Angus Waygu SF 120
day'!$B$29:$B$84='Angus Waygu SF 120 day'!$B$18)),('Angus Waygu SF 120
day'!$C$29:'Angus Waygu SF 120 day'!$C$84)*'Feedlot Assumptions'!$B$3))



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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


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

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"