?
Solved

Data Table refresh

Posted on 2012-12-21
7
Medium Priority
?
255 Views
Last Modified: 2012-12-31
On the attached ss, the two blue tables are linked to an Access Database and are refreshed via the button.

As you can see they cover rows 20-40

On refresh, some rows will be lost making the range more like 20-36

The data in A1:I16 is reading these data tables, so unless the data tables always have 20 rows, i get ref errors.

How can i essentially lock those data tables so they will always show 20 rows and if there is no data, they are just blank

Thanks!
test.xlsx
0
Comment
Question by:Seamus2626
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 26

Expert Comment

by:redmondb
ID: 38713474
Hi, Seamus2626.

Assuming that the data in A1:I16 is reading the tables by formula, could you post a copy with the formulas, please?

Thanks,
Brian.
0
 

Author Comment

by:Seamus2626
ID: 38713484
Attached!

Thanks
test.xlsx
0
 
LVL 26

Expert Comment

by:redmondb
ID: 38713914
Seamus2626,

Please see attached. Let me know if you want an explanation for the two formulas.

Regards,
Brian.test-V2.xlsx
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:Seamus2626
ID: 38732236
Hi Brian,

Thanks for the attached.

Can you please explain the formula?

Thanks!
0
 
LVL 26

Accepted Solution

by:
redmondb earned 2000 total points
ID: 38732350
Surely, Seamus2626.

Before we start, I've not explained the following two items, so let me know if you need anything on them or are on unclear on anything mentioned below...
1*False = 0
Difference between B11, $B11 and B$11.

SumProduct takes up to 255 arrays, multiples them together to produce a single array (SumProduct) and then adds together all the elements in that array (Sumproduct) producing a single figure.

In your case, there are three arrays, so looking at B11 (I'll explain why that cell later)...
1st Array
1*(Table_New_Global_US_Ops_Control_Database_1[Reporting Status]=$A11)
This firstly compares every entry in the Reporting Status column of the second table to the appropriate Reporting Status ($A11), giving us the following array...
{TRUE;TRUE;TRUE;TRUE;TRUE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE}
... which is then multiplied by one to give us...
{1;1;1;1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0}

2nd Array
1*(Table_New_Global_US_Ops_Control_Database_1[Age Bucket]=B$10&"")
This firstly compares every entry in the Age Bucket of the second table to the appropriate Bucket Range (B$10), giving us the following array...
{TRUE;FALSE;FALSE;FALSE;FALSE;TRUE;FALSE;FALSE;FALSE;FALSE;TRUE;FALSE;FALSE;FALSE;FALSE;TRUE;FALSE;FALSE;FALSE;FALSE}
... which is then multiplied by one to give us...
{1;0;0;0;0;1;0;0;0;0;1;0;0;0;0;1;0;0;0;0}

3rd Array
Table_New_Global_US_Ops_Control_Database_1[SumOfGBP Equiv]
Simply all the values from the SumOfGBP Equiv column of the second table...
{-9849618;-58655248;1138732;-24845306;-3635103;21278;-129;-9180;3180;9139;73;106;-177;-96;-457;-32528;-40828;-9665314;-106108;-14926}

Multiplying the three arrays together gives...
{-9849618,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
...and the final step of summing them produces the value shown...
-9,849,618

Why didn't I use B2 for my example? Confession time - the formulas in B2:F7 were incorrect as they used the headings in row 10 instead of row 1 and those in A11:A116 instead of A2:A7. (Of course the actual results were correct because the two sets of headings happened to be the same.)

Apologies. The attached corrects this.

Please let me know if there's anything I've left unclear.

Regards,
Brian.test-V3.xlsx
0
 

Author Closing Comment

by:Seamus2626
ID: 38732402
Thats spot on Brian!

This is just what i needed!

Thanks
0
 
LVL 26

Expert Comment

by:redmondb
ID: 38732432
Thanks, Seamus2626, glad to help!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question