suming using Vlookup across multiple worksheets in the same workbook

Nelboy

Board Regular
Joined
Mar 28, 2014
Messages
53
Office Version
  1. 365
Platform
  1. Windows
Dear all,

I would be grateful of some guidance

I am trying to update some formulas in a workbook. our portfolios now have split mandate so have different assets and thus the previous formulas need to be updated

previously as all of the portfolios where the same I have been using

Code:
 =sum('*',!z9)
''''etc etc etc to cover the 15 assets held

Code:
 =IFERROR(VLOOKUP($B2,INDIRECT("'"&C$1&"'!$b:$z"),23,FALSE),"")
'''' can use this to reference the individual portfolio with the sheet name is in cell C1


Code:
 =IFERROR(SUM(VLOOKUP($B2,INDIRECT("'*'!$b:$z"),23,FALSE)),"")

''' I was hoping the above would be a solution, but defaults to the error response (or #REF, without the IFERROR)

thanks in advance
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,214,551
Messages
6,120,159
Members
448,948
Latest member
spamiki

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