This is either an "existing connections" issue or a spreadsheet issue

kaywai

New Member
Joined
Feb 12, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi All,
I just came across the "Existing Connections" in the Data Tab and have been experimenting its usefulness to my work. I saw potential that it would save me a lot of time and so my journey of experimentation began.

ASIA MASTER WORKBOOK test.xlsx
ABCDEFGHIJKLMN
510202101111.711.711.681.6988771001.711.68  330
511202101121.71.711.691.71109202001.711.69  440
512202101131.711.721.691.7185122001.721.69  550
513202101141.71.721.691.7192126001.721.69  000
514202101151.711.751.711.72168454001.711.56  00-1
515202101181.721.721.681.69100033001.571.57  00-2
516202101191.691.711.681.69932490000  00-3
517202101201.691.71.681.69830300000  00-4
518202101211.691.691.671.681339480000  00-5
519202101221.671.681.651.651553460000  00-6
520202101251.651.661.631.63869450000  000
521202101261.631.631.611.621251270000  000
522202101271.611.641.611.63741270000  000
523202101281.61.611.591.591262470000  000
524202101291.611.621.581.581250030000  000
525202102011.561.591.561.58990290000  000
526202102021.61.611.571.591176590000  000
527202102031.61.611.581.58709440000  000
528202102041.591.61.561.591399440000  000
529202102051.591.591.571.58706140000  000
530202102081.581.61.581.59449710000  000
531202102091.611.631.581.591395000000  000
532202102101.61.61.571.58969180000  000
533202102111.581.581.561.57677290000  000
cd
Cell Formulas
RangeFormula
H510:H513H510=MAXA(E509,C510)
I510:I513I510=MINA(E509,D510)
J510:J533J510=IF(L510=-9,MAX(H501:H510),"")
K510:K533K510=IF(L510=9,MIN(I501:I510),"")
L510:L513L510=IF(AND(E509>E505, E510<E506),-1, IF(AND(E509<E505,E510>E506),1, IF(AND(E510<E506, L509<0),L509-1, IF(AND(E510>E506, L509>0),L509+1,0))))
M510:N533M510=IF(AND(H509>H505,H510<H506),-1, IF(AND(H509<H505,H510>H506),1, IF(AND(H510<H506, M509<0),M509-1, IF(AND(H510>H506, M509>0),M509+1,0))))
H514H514=MAXA(E513,C533)
I514I514=MINA(E513,D533)
L514L514=IF(AND(E513>E509, E533<E510),-1, IF(AND(E513<E509,E533>E510),1, IF(AND(E533<E510, L513<0),L513-1, IF(AND(E533>E510, L513>0),L513+1,0))))
H515:H533H515=MAXA(E533,C534)
I515:I533I515=MINA(E533,D534)
L515:L517L515=IF(AND(E533>E510, E534<E511),-1, IF(AND(E533<E510,E534>E511),1, IF(AND(E534<E511, L514<0),L514-1, IF(AND(E534>E511, L514>0),L514+1,0))))
L518L518=IF(AND(E536>E513, E537<E533),-1, IF(AND(E536<E513,E537>E533),1, IF(AND(E537<E533, L517<0),L517-1, IF(AND(E537>E533, L517>0),L517+1,0))))
L519:L533L519=IF(AND(E537>E533, E538<E534),-1, IF(AND(E537<E533,E538>E534),1, IF(AND(E538<E534, L518<0),L518-1, IF(AND(E538>E534, L518>0),L518+1,0))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L:NCell Value=0textNO
J:JCelldoes not contain a blank value textNO
K:KCelldoes not contain a blank value textNO
L:NCell Value=1textNO
L:NCell Value=-1textNO
L:NCell Value<=-9textNO
L:NCell Value>=9textNO


I have stock data which I placed in a workbook called Data Workbook. I then initiate a connection from another workbook to pull data (Cells A510 to F514) from Data Workbook. Once the data is pulled to the second workbook, which already has formulas in them, calculations are automatically done. When I then add new data to the Data Workbook, and then do a refresh from the second workbook, the new data Cells A515 to F533) shows up nicely but nothing is being calculated even though there formulas are in the cells that uses that data.

The Calculations Options is still ticked at Automatic. I also tried Calculate Now and Calculate Sheet on the Formulas Tab. Neither work.

I then went back to the old method of copying and pasting the data from the Data Workbook to the second workbook. Everything worked!

I then recopied all the formulas into the second workbook. And everything including the new data is being used in the calculations.

Where does the problem lie and how do I fix it? I have quite a few worksheets relying on this to work the way it should.

Could someone please help?

Regards
Kay Wai
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I sort of figured what happened now.
When I refresh and new data comes in, they come in as "rows" in that the formulas references are shifted down by the number of new rows of of data. Take for example Column H row 510 and row 514. Note the shift in row reference to from 514 to 533.

Does anyone know how I can fix that?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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