#Ref error with refreshable dataset

MahmoudSa

New Member
Joined
Sep 6, 2014
Messages
13
I have a dataset retrieving data from SQL view, upon which I have built several functions. The problem is, when I refresh the data set, all the funtions get corrupted with the common "#Ref" error.


Your help is highly appreciated,
 
The data set changes, the original data set now has 7 columns for instance, when I refresh (after changing the data source), the new data set being retrieved would not necessary has 7 columns, it could be a different number of column. In my example above, the new data set brings back only 2 columns instead of 7
Therefore, the formula columns shift to the left.

I have tried to put the formulas in another work sheet, to make sure that the "formula" columns won't shift, Same result
 
Last edited:
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Mr. Andrew
You have absolutely made my day.
You have pointed me to the precise direction, it was all related to the "Properties" of the connection string. I have done the following:
1- I have unchecked all the options related to "Data Formatting and Layout"
2- Second section (If the numbers of the rows in the data range changes upon refresh), > Overwrite existing cell with the new data.

The original formulas and function are performing as supposed to with no problem at all by now.

Isn't there a way to verify the correct answer in the forum ?

Thanks again Mr. Andrew
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,845
Members
449,471
Latest member
lachbee

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