×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Excel unique expanding table cross reference

Excel unique expanding table cross reference

Excel unique expanding table cross reference

(OP)
Hi All;

I'm sure that this isn't uncommon, but I can't locate an applicable solution to my issue.

I have 2 tables [table1] and [table2]. [Table1] contains a list of models and their descriptions only. [table2] contains cost calculations that needs to expand based on changes to [Table1]. For example, if a model is added or removed in [Table1] it also needs to cause [Table2] to adjust. The two tables cannot be combined into one since there are a lot of different reasons that are outside the scope of my question.

[table1] should always have unique model values. If [table2] can pull the model column directly from [table1] automatically that would solve the problem quickly.

the =unique() function works on creating the dynamic range and can provide a workable solution, but I'd like to use [table2] instead since it will automatically add the formulas to the new row. This would make it a lot easier for a less excel experienced person to make either formula modifications to an entire column and allow for a bit more automation. The #Spill "error" is preventing me from using it since Microsoft decided to make life a little more difficult for everyone.

I have tried data connection from an internal table [table1]. While it will update the [table2] models, it will automatically delete the formula columns that are added to [table2] to process the data.

I have also tried to use data query from an internal table, but there are several problems with that as a long-term solution. The first is that the custom column formula isn't easy to access to make adjustments. Second, the formula structure in a power query isn't apples to apples with a standard Excel formula so an inexperienced person can't modify the formula without research. Third, the data query feature isn't really well known and understood for someone to understand what is going on with the data.

If there is a way to embed formulas into a pivot table, that might also work, but I haven't found a solution yet. I do know that you can reference a pivot table in a formula, but I'm not sure if that would solve the dynamic data row expansion and deletion from [table1] problem since I am back to using a formula outside [table2].

I can write a macro to process the data, but I have painfully learned that I am the only one in the company that understands and can create code. I'd like to avoid macros as much as possible.

Any ideas on other methods that I can explore?

Thank you for the help!

RE: Excel unique expanding table cross reference

Hmmmm? No example?

"[table1] should always have unique model values. If [table2] can pull the model column directly from [table1] automatically that would solve the problem quickly."

Isn't there a model in table2?

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

RE: Excel unique expanding table cross reference

(OP)
Hi Skip,

[table2] models are entered by a manager (shudders) manually. Currently, I restricted the model options that can be selected to the model list in [table1] using an indirect() pull down list to the "Model" column cells. After the model is selected, formulas perform processes accordingly. Knowing my intended audience, a copy paste from one sheet to another is a bad idea.

I'd like to get away from that and auto expand using a range like unique() or something that will pull the equivalent line so that [table2] model column expands automatically so a manager doesn't need to go through 400+ model numbers in a pull down list to get their expected resulting data.

I hope that explained the issue a little better.

RE: Excel unique expanding table cross reference

What happens in vagueness, stays in vagueness.

I devine, after reading your answer, that you need cascading lists based on previous selections. Am I on the right track? If it is, then this sort of process is common and doable.

So if the manager loads a row in [table 2] starting with the SELECTION of a model from a unique list of models from [table 1], and you're currently using FORMULAE, to fill some columns in [table 2] what the problem?

Is this going to become "20 Questions?"

Can we see an example based on a selected set of real data?

I think I have 16 left.

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

RE: Excel unique expanding table cross reference

(OP)
Hi Skip,

Unfortunately, I can't provide an example of this.

Here is the order of operations:

1) Engineer loads model numbers into [table1]
2) Engineer enters data about either all the models or a single model by part. For instance, if the part is used on all models, they would put the part number in and then select "All" to denote if it is used for all models. If it is for a specific model, they would enter the specific model that the part is used on. Other data is entered in several different locations, but it's the same idea.

Basically, the engineer is generating a BOM for parts that are used on all models and optional parts used on specific models.

3) Once all of the part data is loaded, a cost is assigned to the part. I have used the sumif() function to determine what model has what part assigned to it and what the cost associated with it is.

When All is selected, the total cost without options is calculated. When a particular model is selected, it sums all of the specific model parts and adds them to the "All" model costs.

4) The manager needs to know what the cost for the "All" model is, and the individual model costs are when specific parts are added. By using [table2] the manager currently can get the total cost for either "All" or a specific model. The problem is that they need to either manually select the model number or create a mess by coping and pasting the model list into [table2].

--

If there is a way to generate the same list in [tabe1] model = [table2] model without creating a mess with copy paste, that would be ideal.

RE: Excel unique expanding table cross reference

Is your BOM a single level or multi-level BOM?

Multi-level BOMs take a recursive method to calculate--not at all simple.

I'm still NOT seeing what your challenge is very clearly. You have not done a good enought job, at least for me.

I'm down to 15.

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

RE: Excel unique expanding table cross reference

What about parts that are used on "some" models?

What about next week, when a new model that doesn't use one of the "all" parts is created?

Using "all" as a model number is a horrible idea.

RE: Excel unique expanding table cross reference

You need a table with

Model | part
Model | part
Model | part
Model | part

Then this becomes a simple power pivot solution.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close