Forum

Notifications
Clear all

Vstack returning 0

4 Posts
3 Users
0 Reactions
820 Views
(@ryan586)
Posts: 2
New Member
Topic starter
 

I have been using vstack for a little while and came across a problem last night. I went to perform the function with a 3d reference of all the sheets and the formula returned a single 0 in the cell vstack was typed in.

This is also the same if I reference each page individually. However works on a single page. 

 

Anybody else come across this issue? 

 

(Sorry I can't put an example workbook up)

 
Posted : 15/08/2023 11:42 pm
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

I tried replicating the issue but could not. The attached file contain a workbook with three sheets where I used VSTACK in a 3D reference. does this resemble what you are trying to achieve? If so, does it work on your end?

 
Posted : 16/08/2023 3:24 am
(@ryan586)
Posts: 2
New Member
Topic starter
 

Hi thank you for the reply. Yes this is what I am trying to achieve. I have done the same formula for over 100 sheets before and worked OK.

 

The work around I have found so far is to take the work book where v stack doenst work, power query all the sheets into a new workbook mirroring the same format and layout, then apply the vstack and it works perfectly. 

 

Tried this on 3 separate workbooks (one of which had over 170 sheets) and the work around holds. 

 

Still can't figure out why it only works in this method now

 
Posted : 16/08/2023 3:50 am
(@fluff)
Posts: 36
Eminent Member
 

Make sure the sheet with the formula is not between the sheets your referencing, otherwise you might get a circular reference.

 
Posted : 16/08/2023 6:52 am
Share: