Simplify formula

Paul_Nepomuceno

New Member
Joined
Oct 6, 2017
Messages
6
[FONT=&quot]Hi Guys,[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Is there anyway I can simplify this formula?[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]B26 =SUM(AMADEO!F4,CARMONA!F4,'CAVITE CITY'!F4,'DASMA A'!F4,'DASMA B'!F4,'GEN TRIAS'!F4,GMA!F4,IMUS!F4,MANGAHAN!F4,NAIC!F4,ROSARIO!F4,'SILANG I'!F4,'SILANG II'!F4,TANZA!F4,TERNATE!F4)[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]on B27 it should be like this =SUM(AMADEO!F8,CARMONA!F8,'CAVITE CITY'!F8,'DASMA A'!F8,'DASMA B'!F8,'GEN TRIAS'!F8,GMA!F8,IMUS!F8,MANGAHAN!F8,NAIC!F8,ROSARIO!F8,'SILANG I'!F8,'SILANG II'!F8,TANZA!F8,TERNATE!F8)[/FONT]
[FONT=&quot]And so on. [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Is there a way to make this easier[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Thank you guys.[/FONT]
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi, welcome for the board, you can try this in B26 and copied down:

Code:
=SUMPRODUCT(SUM(INDIRECT("'"&{"AMADEO","CARMONA","CAVITE CITY","DASMA A","DASMA B","GEN TRIAS","GMA","IMUS","MANGAHAN","NAIC","ROSARIO","SILANG I","SILANG II","TERNATE"}&"'!F"&ROWS(B$26:B26)*4)))
 
Last edited:
Upvote 0
Hi, welcome for the board, you can try this in B26 and copied down:

Code:
=SUMPRODUCT(SUM(INDIRECT("'"&{"AMADEO","CARMONA","CAVITE CITY","DASMA A","DASMA B","GEN TRIAS","GMA","IMUS","MANGAHAN","NAIC","ROSARIO","SILANG I","SILANG II","TERNATE"}&"'!F"&ROWS(B$26:B26)*4)))


Oh my God.. Thank you very much. This is a life saver.
 
Upvote 0
I also need these kind of formula for C to H

Hi, it doesn't seem too onerous to manually update the column references for those 6 variations.

EDIT - the col ref is here (scroll the code box right if needed):

Rich (BB code):
=SUMPRODUCT(SUM(INDIRECT("'"&{"AMADEO","CARMONA","CAVITE CITY","DASMA A","DASMA B","GEN TRIAS","GMA","IMUS","MANGAHAN","NAIC","ROSARIO","SILANG I","SILANG II","TERNATE"}&"'!F"&ROWS(B$26:B26)*4)))
 
Last edited:
Upvote 0
DYv8Iha.png
DYv8Iha
Here is the screenshot of what I am trying to do
 
Upvote 0
Okay

Starting B26 I need to get F4 on C26 need to get F5 on D26 need to get F6.
Then B27 F8 on C27 F9 then D27 F10 and so on.
 
Upvote 0
Starting B26 I need to get F4 on C26 need to get F5 on D26 need to get F6.
Then B27 F8 on C27 F9 then D27 F10 and so on.

Much easier to understand :)

You can try:

Code:
=SUMPRODUCT(SUM(INDIRECT("'"&{"AMADEO","CARMONA","CAVITE CITY","DASMA A","DASMA B","GEN TRIAS","GMA","IMUS","MANGAHAN","NAIC","ROSARIO","SILANG I","SILANG II","TERNATE"}&"'!F"&(ROWS(B$26:B26)*4)+COLUMNS($B26:B26)-1)))
 
Upvote 0
Much easier to understand :)

You can try:

Code:
=SUMPRODUCT(SUM(INDIRECT("'"&{"AMADEO","CARMONA","CAVITE CITY","DASMA A","DASMA B","GEN TRIAS","GMA","IMUS","MANGAHAN","NAIC","ROSARIO","SILANG I","SILANG II","TERNATE"}&"'!F"&(ROWS(B$26:B26)*4)+COLUMNS($B26:B26)-1)))

When I copied the formula on C26 it is giving the same value on B26
 
Upvote 0

Forum statistics

Threads
1,215,558
Messages
6,125,504
Members
449,235
Latest member
Terra0013

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top