Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I NEED HELP with the SPELLNUMBER Function | Excel Worksheet Functions | |||
Excel option to store trendline's coefficients in cells for use | Charts and Charting in Excel | |||
Date & Time | New Users to Excel | |||
Automatically up date time in a cell | Excel Discussion (Misc queries) | |||
clock | Excel Worksheet Functions |