Duplication of function

A

Anthony

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

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
 
A

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top