Very confusing error when gathering data from Sage Database

kgkev

Well-known Member
Joined
Jun 24, 2008
Messages
1,245
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.
 

Some videos you may like

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
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)
 

kgkev

Well-known Member
Joined
Jun 24, 2008
Messages
1,245
Why does updating my data from a database source cause my second page to think that cells have been deleted?
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
It doesn't think the cells are deleted. They are deleted. How are you updating your data?
 

kgkev

Well-known Member
Joined
Jun 24, 2008
Messages
1,245
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,385
Messages
5,601,331
Members
414,446
Latest member
CRAVIN

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
Top