VLOOKUP/Indirect Formula

Katich

Board Regular
Joined
Jan 22, 2008
Messages
154
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I'm trying to do a lookup that will reference different tabs in spreadsheet. Currently i only have 1 tab in the spreadsheet but it will have multiple. On the Variance v2 tab, i want cell B7 to lookup at the "3+9" which will be the same name of the other tab. I want it to go to 1Q23 column in tab 3+9 and find the cells in the formula i currently have and perform that calculation. Next month when i have a 4+8 tab, i want it to look at that. I'll have to create a drop down in B2 i know that. Any help will be appreciated

Thank you!

Book3
ABCDEF
1
23+9
3Income Statement1Q232Q233Q234Q23FY23
4
5Revenue:
6
7 Building A0.40.40.50.72.0
8
9Total Revenue0.40.40.50.72.0
10
11Operating Expense:
12
13 Building A0.40.40.30.41.6
14
15Total Operating Expense0.40.40.30.41.6
16
17Adjusted EBITDA0.0(0.0)0.20.20.4
Variance v2
Cell Formulas
RangeFormula
B7:F7B7=('3+9'!S31+'3+9'!S50)/1000000
B9:F9,B15:F15B9=SUM(B7:B8)
B13:F13B13=('3+9'!S46+'3+9'!S54)/1000000
B17:F17B17=B9-B15


Cell Formulas
RangeFormula
S4:S15,S56,S54,S52,S50,S48,S33:S44,S31,S29,S23:S27,S19S4=SUM(G4:I4)
T4:T15,T56,T54,T52,T50,T48,T33:T44,T31,T29,T23:T27,T19T4=SUM(J4:L4)
U4:U15,U56,U54,U52,U50,U48,U33:U44,U31,U29,U23:U27,U19U4=SUM(M4:O4)
V4:V15,V56,V54,V52,V50,V48,V33:V44,V31,V29,V23:V27,V19V4=SUM(P4:R4)
W4:W15,W56,W54,W52,W50,W48,W33:W44,W31,W29,W23:W27,W19W4=SUM(S4:V4)
S17:W17S17=+SUM(S4:S15)
S21:W21S21=SUM(S17:S19)
S46:W46S46=SUM(S33:S44)
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
is it a requirement that you have separate tabs for 4+8 and 3+9?

This looks like you'll have a very big worksheet with a lot of INDIRECT functions which will slow your processing down.

Have you considered adding one column in your data sheet for the sheet category 3+9 or 4+8, etc. and the values in the column be 3+9 or 4+8? It would make your lookup much easier.
 
Upvote 0
I think you have to create a data base with the sums and the periods to excel look up, but you have to create with only one number like
3+9= 12
4+8= 12
 
Upvote 0
another way to approach it is with power query or power pivot. But, then you may need to take this discussion to the Power Forum.
 
Upvote 0
What you want to lookup?
On the Variance v2 tab, the revenue amount is pulling cells S31 and S50 from tab 3+9 and the expenses are pulling S46 and S54 from tab 3+9 for Q123. Then just shift columns over for each quarter.
 
Upvote 0
is it a requirement that you have separate tabs for 4+8 and 3+9?

This looks like you'll have a very big worksheet with a lot of INDIRECT functions which will slow your processing down.

Have you considered adding one column in your data sheet for the sheet category 3+9 or 4+8, etc. and the values in the column be 3+9 or 4+8? It would make your lookup much easier.
it's not a requirement but makes it easier (now) since there is alot of data on each tab. Each 3+9 or 4+8 tab will have data for Jan-Dec and each month those numbers will change.
 
Upvote 0
Actually @Katich ,... it makes it much more difficult and will kill your processing time when the file gets big.
The rule of thumb I use:
if it is data.... make it as flat a data set as possible.... build reports from that.

if you had 365 you could use VSTACK and stack worksheet ranges, provided you had a column on each worksheet that identified the worksheet source
So: COLUMNA in 9+3 would have header of SOURCE, and all items in Column A2:A## would be '9+3, and similar for '8+4 on that tab.
 
Upvote 0
Actually @Katich ,... it makes it much more difficult and will kill your processing time when the file gets big.
The rule of thumb I use:
if it is data.... make it as flat a data set as possible.... build reports from that.

if you had 365 you could use VSTACK and stack worksheet ranges, provided you had a column on each worksheet that identified the worksheet source
So: COLUMNA in 9+3 would have header of SOURCE, and all items in Column A2:A## would be '9+3, and similar for '8+4 on that tab.
ok, that makes sense on your rule of thumb.

Well, i do have 365 but not everyone in my company sometimes myself use it so would VSTACK work if someone else opened the file that didn't have 365? I've never used it nor really worked in 365 as i just haven't gotten used to working in there.
 
Upvote 0
it would work if they opened it in Excel WEB version, but unsure of 2019 and earlier.

but, the first solution i suggest will work on any, but you need to do work to consolidate the worksheets.
 
Upvote 0

Forum statistics

Threads
1,215,181
Messages
6,123,508
Members
449,101
Latest member
mgro123

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