Table syncing

%3CLINGO-SUB%20id%3D%22lingo-sub-810300%22%20slang%3D%22en-US%22%3ETable%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810300%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20currently%20writing%20an%20excel%20workbook%20to%20analyse%20material%20contents%20of%20various%20yachts%20for%20Life-Cycle%20analysis%20and%20was%20wondering%20if%20you%20may%20be%20able%20to%20help%20solve%20an%20issue%20I%20have%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20is%20an%20example%20file%20which%20I%20have%20made%20with%20%E2%80%98Vessel%201%E2%80%99%20sheet%20showing%20the%20referencing%20style%2C%20and%20%E2%80%98Vessel%202%E2%80%99%20with%20no%20referencing.%20The%20codes%20are%20intentionally%20duplicated%20in%20some%20places%20so%20they%20cannot%20be%20used%20as%20ID.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20am%20aiming%20for%20is%20to%20have%20the%20%E2%80%9CPrimary_Data%E2%80%9D%20table%20to%20be%20where%20rows%20are%20added%20and%20amended%2C%20and%20then%20for%20these%20amendments%20to%20automatically%20sync%20with%20the%20vessel%20specific%20tables.%20At%20the%20moment%2C%20if%20I%20were%20to%20link%20the%20first%20three%20columns%20(Code%2C%20material%2C%20and%20Dis.%20Type)%20using%20%E2%80%98%3D%E2%80%99%20referencing%2C%20they%20would%20sync%20but%20the%20following%20columns%20in%20the%20vessel%20specific%20tables%20(Mass%20and%20%25)%20stay%20as%20they%20were.%20So%20for%20example%2C%20if%20I%20were%20to%20add%20a%20row%20between%20fuel%20and%20teak%2C%20the%20vessel%20tables%20update%20those%20columns%2C%20however%20the%20mass%20and%20%25%20values%20do%20not%20move%20and%20would%20incorrectly%20display%20the%20%E2%80%98test%E2%80%99%20as%20having%20a%20mass%2C%20this%20test%20mass%20and%20%25%20is%20actually%20the%20teaks...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F127415iFA71BF1D112FCBE4%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIf%20there%20a%20way%20to%20fix%20this%20with%20VBA%20coding%20or%20queries%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-810300%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810581%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810581%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394373%22%20target%3D%22_blank%22%3E%40madeleine101%3C%2FA%3E%26nbsp%3B%2C%20could%20you%20use%20as%20ID%20Code%26amp%3BMaterial%26amp%3BDis.Type%20or%20so%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810621%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810621%22%20slang%3D%22en-US%22%3E%3CP%3EHI%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20using%20an%20ID%20code%20for%20the%20whole%20table%2C%20also%20tried%20splitting%20the%20table%20into%20two%20and%20using%20ID%20codes%20for%20both%20but%20neither%20seem%20to%20work%20as%20when%20a%20row%20is%20added%2C%20the%20cells%20still%20do%20not%20sync%20or%20jump%20correctly...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810625%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810625%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394373%22%20target%3D%22_blank%22%3E%40madeleine101%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDid%20you%20try%20VLOOKUP%20or%20INDEX%2FMATCH%20on%20this%20combined%20ID%3F%20Perhaps%20you%20may%20attach%20sample%20file%20removing%20all%20sensitive%20information%20to%20play%20with%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810654%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810654%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%20try%20both..%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810655%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810655%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394373%22%20target%3D%22_blank%22%3E%40madeleine101%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20theory%20it%20shall%20work.%20Could%20you%20share%20formulas%20you%20used%2C%20or%20better%20the%20sample%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810663%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810663%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%20able%20to%20see%20this%20attachment%3F%3C%2FP%3E%3CP%3EVessel%201%20only%20is%20using%20direct%20ref%2C%20vessel%20two%20has%20the%20ID%20and%20Index(Match..%20neither%20are%20working%20as%20can%20be%20seen%20with%20the%20'test'%20which%20should%20not%20have%20a%20mass%20in%20the%20cell...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810803%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810803%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394373%22%20target%3D%22_blank%22%3E%40madeleine101%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYes%20thank%20you.%20If%20we%20consider%20PrimaryTable%20and%20Vessel2%3A%3C%2FP%3E%0A%3CP%3ELet%20add%20one%20more%20row%20into%20first%20one%20with%20ID%3D9%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20315px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F127507iD3D6F7536D597CF0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAfter%20that%20add%20empty%20row%20into%20Vessel2%20and%20enter%209%20into%20ID%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20611px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F127509i9A95CBF822B40528%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20works%2C%20Mass%20is%20zero%20since%20we%20didn't%20add%20it%20so%20far.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810804%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810804%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20have%20you%20kept%20the%20same%20equation%20and%20then%20manually%20typed%20in%20the%20ID%20of%20the%20new%20row%20into%20the%20vessel2%20table%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810819%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810819%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394373%22%20target%3D%22_blank%22%3E%40madeleine101%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYes%2C%20I%20didn't%20touch%20your%20formulas%2C%20only%20added%20ID%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810840%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810840%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGreat%20thank%20you!%3C%2FP%3E%3CP%3EIt%20will%20work%20for%20now%20however%20I%20am%20really%20aiming%20for%20an%20automated%20system%20as%20it%20will%20be%20used%20by%20multiple%20people%20and%20I%20can%20see%20there%20will%20be%20some%20mistakes%20along%20the%20way%20as%20the%20real%20document%20has%20hundreds%20of%20lines%20and%20entries....%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810999%22%20slang%3D%22en-US%22%3ERe%3A%20Table%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810999%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394373%22%20target%3D%22_blank%22%3E%40madeleine101%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPerhaps%20you%20may%20use%20more%20meaningful%20IDs%20rather%20than%20sequential%20numbers%2C%20more%20understandable%20by%20end%20users.%20Afraid%20without%20any%20IDs%20it'll%20be%20much%20more%20mistakes.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I am currently writing an excel workbook to analyse material contents of various yachts for Life-Cycle analysis and was wondering if you may be able to help solve an issue I have?

 

Attached is an example file which I have made with ‘Vessel 1’ sheet showing the referencing style, and ‘Vessel 2’ with no referencing. The codes are intentionally duplicated in some places so they cannot be used as ID.

 

What I am aiming for is to have the “Primary_Data” table to be where rows are added and amended, and then for these amendments to automatically sync with the vessel specific tables. At the moment, if I were to link the first three columns (Code, material, and Dis. Type) using ‘=’ referencing, they would sync but the following columns in the vessel specific tables (Mass and %) stay as they were. So for example, if I were to add a row between fuel and teak, the vessel tables update those columns, however the mass and % values do not move and would incorrectly display the ‘test’ as having a mass, this test mass and % is actually the teaks...

 

clipboard_image_0.png

If there a way to fix this with VBA coding or queries?

 

11 Replies
Highlighted

@madeleine101 , could you use as ID Code&Material&Dis.Type or so?

Highlighted

HI@Sergei Baklan 

 

I tried using an ID code for the whole table, also tried splitting the table into two and using ID codes for both but neither seem to work as when a row is added, the cells still do not sync or jump correctly...

Highlighted

@madeleine101 

Did you try VLOOKUP or INDEX/MATCH on this combined ID? Perhaps you may attach sample file removing all sensitive information to play with it.

Highlighted

Hi @Sergei Baklan 

 

I did try both.. 

Highlighted

@madeleine101 

In theory it shall work. Could you share formulas you used, or better the sample?

Highlighted

Hi @Sergei Baklan 

 

Are you able to see this attachment?

Vessel 1 only is using direct ref, vessel two has the ID and Index(Match.. neither are working as can be seen with the 'test' which should not have a mass in the cell...

Highlighted

@madeleine101 

Yes thank you. If we consider PrimaryTable and Vessel2:

Let add one more row into first one with ID=9

image.png

After that add empty row into Vessel2 and enter 9 into ID

image.png

 

It works, Mass is zero since we didn't add it so far.

Highlighted

@Sergei Baklan 

 

So have you kept the same equation and then manually typed in the ID of the new row into the vessel2 table?

Highlighted

@madeleine101 

Yes, I didn't touch your formulas, only added ID

Highlighted

@Sergei Baklan 

 

Great thank you!

It will work for now however I am really aiming for an automated system as it will be used by multiple people and I can see there will be some mistakes along the way as the real document has hundreds of lines and entries....

Highlighted

@madeleine101 

Perhaps you may use more meaningful IDs rather than sequential numbers, more understandable by end users. Afraid without any IDs it'll be much more mistakes.