Needing a format to merge cells

%3CLINGO-SUB%20id%3D%22lingo-sub-2378283%22%20slang%3D%22en-US%22%3ENeeding%20a%20format%20to%20merge%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378283%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20guys%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20Im%20currently%20trying%20to%20merge%20to%20cells%20that%20are%20in%20different%20columns.%20But%20they%20aren't%20keeping%20the%20numbers%20that%20Im%20needing%20them%20to%20keep%20when%20they%20merge.%20Is%20there%20a%20formula%20that%20Im%20completely%20missing%20that%20would%20by%20chance%20help%20me%20do%20this.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%26nbsp%3B%3C%2FP%3E%3CP%3EEmpolyee%20Number%7C%20First%20Name%7C%20Last%20Name%7C%20Host%20jurisdiction%7C%20Annual%20Income%7C%20Social%20tax%7C%20State%20tax%7C%26nbsp%3B%3C%2FP%3E%3CP%3E-----------------------------------------------------------------------------------------------%3C%2FP%3E%3CP%3E000123271%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7C%20John%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7C%20Doe%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7C%20TX%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7C%20200%2C000%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7C%20101.00%20%26nbsp%3B%20%26nbsp%3B%20%7C%200%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7C%3C%2FP%3E%3CP%3E000123271%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7C%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7C%20Doe%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7C%20United%20States%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7C%200%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7C%200%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7C%200%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBoth%20the%20columns%20belong%20to%20the%20same%20person%20but%20they%20have%20different%20numbers%20in%20the%20place%20due%20to%20being%20able%20to%20put%20the%20certain%20numbers%20in%20either%20the%20first%20column%20belonging%20to%20the%20person%20instead%20of%20the%20second%20column.%20But%20Im%20looking%20to%20combine%20both%20columns%20into%20one%20colum%20while%20keeping%20the%20numbers%20that%20I%20have.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20tried%20merging%20before%20it%20only%20keeps%20the%20numbers%20in%20the%20top%20column%2C%20and%20doesn't%20bring%20up%20the%20number%20from%20the%20bottom%20column%20if%20the%20top%20one%20has%20a%200%20in%20it..%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%26nbsp%3B%3C%2FP%3E%3CP%3EAnnual%20income%20%7C%20State%20Tax%3C%2FP%3E%3CP%3E-----------------------------%3C%2FP%3E%3CP%3E150%2C000%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7C%200%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E-----------------------------%20(these%20two%20rows%20won't%20combine)%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3E0%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7C%20150.00%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2378283%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2385059%22%20slang%3D%22en-US%22%3ERe%3A%20Needing%20a%20format%20to%20merge%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2385059%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%2F1060814%22%20target%3D%22_blank%22%3E%40leighamarigoni%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEven%20with%20advanced%20steps%20such%20as%20power%20query%20or%20power%20pivot%2C%20it%20is%20un-mergeable%20because%20of%20the%20values%20in%20the%20Host%20Jurisdictions%20as%20illustrated%20in%20the%20first%20example%2C%20what%20expression%20would%20one%20implement%20on%20which%20logic%20to%20use%20to%20keep%20which%20Host%20Jurisdiction%20(which%20I%20would%20assume%20to%20be%20multiple)%20in%20which%20case%20one%20would%20have%20to%20create%20a%20precedence%20table%20to%20support%20the%20expression%20otherwise%20one%20would%20be%20lost%20in%20implementing%20that%20expression%20(%20where%20in%20the%20step%20was%20I%20in%20the%20decision%20expression%3F)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378650%22%20slang%3D%22en-US%22%3ERe%3A%20Needing%20a%20format%20to%20merge%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378650%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1060814%22%20target%3D%22_blank%22%3E%40leighamarigoni%3C%2FA%3E%26nbsp%3BIf%20it's%20always%20a%20zero%20in%20one%20of%20the%20rows%20for%20a%20particular%20column%2C%20why%20not%20just%20sum%20the%20two%3F%20But%2C%20perhaps%20these%20numbers%20are%20in%20fact%20texts%20and%20then%20it%20doesn't%20make%20much%20sense%2C%20without%20a%20few%20extra%20steps.%20You%20haven't%20really%20explained%20how%20you%20are%20combining%20the%20rows%20for%20the%20other%20columns.%20Perhaps%20a%20workbook%20demonstrating%20a%20realistic%20data%20set%20and%20the%20formulae%20that%20you%20already%20have%20in%20place%20to%20combine%20the%20two%20rows%20would%20be%20helpful.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hey guys, 

 

So Im currently trying to merge to cells that are in different columns. But they aren't keeping the numbers that Im needing them to keep when they merge. Is there a formula that Im completely missing that would by chance help me do this. 

 

Example: 

Empolyee Number| First Name| Last Name| Host jurisdiction| Annual Income| Social tax| State tax| 

-----------------------------------------------------------------------------------------------

000123271            | John          | Doe          | TX                       | 200,000           | 101.00     | 0            |

000123271            |                   | Doe         | United States      | 0                      | 0             | 0            | 

 

Both the columns belong to the same person but they have different numbers in the place due to being able to put the certain numbers in either the first column belonging to the person instead of the second column. But Im looking to combine both columns into one colum while keeping the numbers that I have.

 

When I tried merging before it only keeps the numbers in the top column, and doesn't bring up the number from the bottom column if the top one has a 0 in it.. 

 

Example 

Annual income | State Tax

-----------------------------

150,000            | 0                                                                             

----------------------------- (these two rows won't combine)                            

0                      | 150.00 

2 Replies

@leighamarigoni If it's always a zero in one of the rows for a particular column, why not just sum the two? But, perhaps these numbers are in fact texts and then it doesn't make much sense, without a few extra steps. You haven't really explained how you are combining the rows for the other columns. Perhaps a workbook demonstrating a realistic data set and the formulae that you already have in place to combine the two rows would be helpful.

Hi @leighamarigoni 

Even with advanced steps such as power query or power pivot, it is un-mergeable because of the values in the Host Jurisdictions as illustrated in the first example, what expression would one implement on which logic to use to keep which Host Jurisdiction (which I would assume to be multiple) in which case one would have to create a precedence table to support the expression otherwise one would be lost in implementing that expression ( where in the step was I in the decision expression?)