Very confusing error when gathering data from Sage Database

kgkev

Well-known Member
Joined
Jun 24, 2008
Messages
1,285
Office Version
  1. 365
Platform
  1. Windows
The first part of the procedure works fine.

I enter a date in D2 (invoiced from)
I enter a date in D3 (invoiced to) <- at this point it does the update.

the data starts in A7 to T7


I don't need all the data for the report I create so I have a seconf Tab labelled Cleaned.

This basically is = Data!A7 Copied left and right missing out the coloumns I don't want.


All works nice until I change the dates in D2 & D3

If my data was 17 rows long originally and expands to 30 rows the first 16 rows are fine then the forumla in row 17 becomes =Data!#REF!

a similar problem happens when the data gets smaller.

this si currently fixed by copying and repasting the forumals on the cleaned page - But there must be a better way of doing it.

Any help appreciated.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Your #REF! error occurs because rows are being deleted. You can avoid it by using a formula like:

=INDEX(Data!A:A,ROW(A7)-ROW(A$1)+1)
 
Upvote 0
Why does updating my data from a database source cause my second page to think that cells have been deleted?
 
Upvote 0
Either by Clicking the Red Exclamation mark (refresh Data)

or by changing the second of the two date - I ticked the box Update on change.

Currently there is nothing in rows 26 down - If I expand my dates then it might get to several hundred Then I change the dates back and it will be less.

There are no macro's or scripts involved in gathering the data just the standard excel - Get External Data.
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,999
Members
448,543
Latest member
MartinLarkin

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