Summing columns on a different sheet using numerical column number

rjheibel

New Member
Joined
Mar 8, 2018
Messages
43
Office Version
  1. 365
Platform
  1. Windows
Using a match function, I have identified the column number I would like to sum through : =MATCH('Current Month'!H1,'Baseline '!A1:AQ1,0)

Now I would like to create the sum statement =B3+(SUM('Baseline '!H4:L4)) but I would like the end of the range "L" to be based on the result of the formula above which is 12.

Any help is much appreciated!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
you could use indirect function

B3+(SUM(INDIRECT( "'Baseline '!H4:L" & MATCH('Current Month'!H1,'Baseline '!A1:AQ1,0) )))
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

I would also recommend removing the space character at the end of the 'Baseline ' sheet tab. Trailing (& leading) spaces often lead to errors/problems.

The requirement is also slightly unclear to me in that your MATCH function starts looking in column A but your SUM function starts at column H.
However, my reading of the question is that you may want one of these.
Excel Formula:
=B3+SUM('Baseline '!H4:INDEX('Baseline '!H4:AQ4,MATCH('Current Month'!H1,'Baseline '!A1:AQ1,0)))
Excel Formula:
=B3+SUM('Baseline '!H4:INDEX('Baseline '!H4:AQ4,MATCH('Current Month'!H1,'Baseline '!A1:AQ1,0)-7))

I would also be interested to know the name of the worksheet this formula is in?
 
Upvote 1
Solution
Thanks for updating your version details. (y)
Looks like one of those formulas must have been what you are after ...
.. but I am hoping you would also be able to respond to my question:
I would also be interested to know the name of the worksheet this formula is in?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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