ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Duplication of function (https://www.excelbanter.com/excel-worksheet-functions/35154-duplication-function.html)

Anthony

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))

DerbyJim1978

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))


Anthony

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))


Biff

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))





All times are GMT +1. The time now is 10:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com