{"id":6545,"date":"2021-11-01T17:00:00","date_gmt":"2021-11-01T16:00:00","guid":{"rendered":"https:\/\/www.razumny.no\/?p=6545"},"modified":"2021-10-31T18:28:39","modified_gmt":"2021-10-31T17:28:39","slug":"excel-combine-two-columns","status":"publish","type":"post","link":"https:\/\/www.razumny.no\/?p=6545","title":{"rendered":"Excel: Combine two columns"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">While analysing an Excel sheet the other day, I needed to combine two columns so that I could get names in the format <code>firstname lastname<\/code> (the list had been provided as <code>lastname,firstname<\/code>). As it happens, doing so is relatively easy. You do it on a cell by cell basis, by using basic excel commands.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>If you simply want to combine two columns: <code>=B4&amp;C4<\/code><\/li><li>Combine two columns with a space between them: <code>=B4&amp;\" \"&amp;C4<\/code><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You then copy the command and paste it into the rest of the cells you want to apply it to, and you should see it change the numbers for each row.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While analysing an Excel sheet the other day, I needed to combine two columns so that I could get names in the format firstname lastname (the list had been provided as lastname,firstname). As it happens, doing so is relatively easy. You do it on a cell by cell basis, by using basic excel commands. If [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[615,677],"tags":[1432,1433,435],"class_list":["post-6545","post","type-post","status-publish","format-standard","hentry","category-how-to-2","category-tips-tricks","tag-column","tag-combine","tag-excel"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p2ukSU-1Hz","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":5478,"url":"https:\/\/www.razumny.no\/?p=5478","url_meta":{"origin":6545,"position":0},"title":"Excel: Text to Columns","author":"Aleksander Nordgarden-R\u00f8dner","date":"25\/05\/2020","format":false,"excerpt":"I work a lot with text files containing data which is, to some degree or another, structured. Whether a breach file from a published breach, or the result of a powershell query such as Get-ADUser, Get-ADComputer, or Get-ADDirectReports, I need to separate the data into columns so that I can\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-16.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":5471,"url":"https:\/\/www.razumny.no\/?p=5471","url_meta":{"origin":6545,"position":1},"title":"Outlook: Mail merge","author":"Aleksander Nordgarden-R\u00f8dner","date":"08\/06\/2020","format":false,"excerpt":"I have previously written about one of my many responsibilities; contacting users whose login credentials have shown up in breach lists. While the pertinent results of the breach files are delivered to me in a flat file, I use Excel's Text to Columns feature to separate logins (usually email addresses)\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-21.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":6746,"url":"https:\/\/www.razumny.no\/?p=6746","url_meta":{"origin":6545,"position":2},"title":"Excel: Merge cells without losing data","author":"Aleksander Nordgarden-R\u00f8dner","date":"28\/03\/2022","format":false,"excerpt":"If you've ever attempted to merge cells that hold data in Excel, you will almost certainly have encountered this warning: This can be annoying when you're trying to combine data in multiple different fields, such as first and last names. Happily, there is a formula (in Excel, there's more or\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"Image of warning box:\nMicrosoft Excel\nMerging cells only keeps the upper-left value and discards other values.\n\n[OK][Cancel]","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-91.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":6303,"url":"https:\/\/www.razumny.no\/?p=6303","url_meta":{"origin":6545,"position":3},"title":"Finding all groups without a manager in a specific OU in AD","author":"Aleksander Nordgarden-R\u00f8dner","date":"01\/03\/2021","format":false,"excerpt":"Last week, I showed you how you can easily find the OU to use when looking for the members of a specific OU. Today, I'd like to show you how I use that information. The background was that we use AD groups to control access to network shares. In order\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-47.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":6405,"url":"https:\/\/www.razumny.no\/?p=6405","url_meta":{"origin":6545,"position":4},"title":"Calculating percentage change in Excel","author":"Aleksander Nordgarden-R\u00f8dner","date":"07\/06\/2021","format":false,"excerpt":"If you do a lot of work in Excel, odds are you've needed to calculate a percentage change. Luckily, Excel does this for you quite readily if you simply apply a basic formula of (New Value - Old Value)\/Old Value. There is, however, a pitfall that you'll not get the\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7092,"url":"https:\/\/www.razumny.no\/?p=7092","url_meta":{"origin":6545,"position":5},"title":"Excel: Visualising pay differences","author":"Aleksander Nordgarden-R\u00f8dner","date":"27\/02\/2023","format":false,"excerpt":"As I've mentioned more than once previously, I'm a union representative. Among my many duties in this role is wage negotiations. While we negotiate collectively, I also make sure to dive into the numbers to look for the unexplained outliers, and to have them addressed. One of the tools I\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-127.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/6545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6545"}],"version-history":[{"count":2,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/6545\/revisions"}],"predecessor-version":[{"id":6552,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/6545\/revisions\/6552"}],"wp:attachment":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}