Swap cell contents in Excel? The Next CEO of Stack OverflowExcel: keyboard shortcut to move...

Visit to the USA with ESTA approved before trip to Iran

How should I support this large drywall patch?

Why here is plural "We went to the movies last night."

Why do remote companies require working in the US?

Science fiction (dystopian) short story set after WWIII

Trouble understanding the speech of overseas colleagues

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

Which organization defines CJK Unified Ideographs?

Text adventure game code

Can a single photon have an energy density?

Can the Reverse Gravity spell affect the Meteor Swarm spell?

Opposite of a diet

How did people program for Consoles with multiple CPUs?

What is the purpose of the Evocation wizard's Potent Cantrip feature?

Should I tutor a student who I know has cheated on their homework?

Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?

Too much space between section and text in a twocolumn document

Does the Brexit deal have to be agreed by both Houses?

Unreliable Magic - Is it worth it?

How to safely derail a train during transit?

What can we do to stop prior company from asking us questions?

Why do professional authors make "consistency" mistakes? And how to avoid them?

What do "high sea" and "carry" mean in this sentence?

How to be diplomatic in refusing to write code that breaches the privacy of our users



Swap cell contents in Excel?



The Next CEO of Stack OverflowExcel: keyboard shortcut to move (swap) column left or right?Protecting the formatting in Excel 2007Cut in excel doesn't work, and copying tables from one program to another returns textDoes excel have an arrow key shortcut to skip blank cells?Excel: how to delete text and fill color?Edit current cell via keyboard?Combining cells in excel 2013 with internal formattingWriting Numeric Values from Excel Cells to Text File without Scientific Notation in VBAMicrosoft VBA Editor: assign other keyboard shortcutsExcel: MATCH() formulas with no wildcard matchingHow to fill cell with favorite colors on single click?












36















Is there an easy way to swap the contents of two cells in Microsoft Excel?



By easy, I mean either a keyboard shortcut or menu item, without involving copying to temporary cells or writing VBA scripts or anything like that. In other words, I'm looking for a way to just select two cells and click some menu item or press some key combination that will swap their contents. Surely, there has got to be a way to do this?










share|improve this question























  • This seems like a very specific implementation of a sort, and if its not already present in the advanced sorting options, I'd be surprised if you can find it elsewhere, as a non-VBA solution

    – drapkin11
    Mar 14 '11 at 16:29
















36















Is there an easy way to swap the contents of two cells in Microsoft Excel?



By easy, I mean either a keyboard shortcut or menu item, without involving copying to temporary cells or writing VBA scripts or anything like that. In other words, I'm looking for a way to just select two cells and click some menu item or press some key combination that will swap their contents. Surely, there has got to be a way to do this?










share|improve this question























  • This seems like a very specific implementation of a sort, and if its not already present in the advanced sorting options, I'd be surprised if you can find it elsewhere, as a non-VBA solution

    – drapkin11
    Mar 14 '11 at 16:29














36












36








36


9






Is there an easy way to swap the contents of two cells in Microsoft Excel?



By easy, I mean either a keyboard shortcut or menu item, without involving copying to temporary cells or writing VBA scripts or anything like that. In other words, I'm looking for a way to just select two cells and click some menu item or press some key combination that will swap their contents. Surely, there has got to be a way to do this?










share|improve this question














Is there an easy way to swap the contents of two cells in Microsoft Excel?



By easy, I mean either a keyboard shortcut or menu item, without involving copying to temporary cells or writing VBA scripts or anything like that. In other words, I'm looking for a way to just select two cells and click some menu item or press some key combination that will swap their contents. Surely, there has got to be a way to do this?







microsoft-excel






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 14 '11 at 16:18









Dan MouldingDan Moulding

3291311




3291311













  • This seems like a very specific implementation of a sort, and if its not already present in the advanced sorting options, I'd be surprised if you can find it elsewhere, as a non-VBA solution

    – drapkin11
    Mar 14 '11 at 16:29



















  • This seems like a very specific implementation of a sort, and if its not already present in the advanced sorting options, I'd be surprised if you can find it elsewhere, as a non-VBA solution

    – drapkin11
    Mar 14 '11 at 16:29

















This seems like a very specific implementation of a sort, and if its not already present in the advanced sorting options, I'd be surprised if you can find it elsewhere, as a non-VBA solution

– drapkin11
Mar 14 '11 at 16:29





This seems like a very specific implementation of a sort, and if its not already present in the advanced sorting options, I'd be surprised if you can find it elsewhere, as a non-VBA solution

– drapkin11
Mar 14 '11 at 16:29










9 Answers
9






active

oldest

votes


















45














From: http://www.extendoffice.com/documents/excel/860-excel-swap-contents-of-two-cells.html




Sometimes, there are two adjoining cells need to be swapped. We can manually do it easily. Look at the following screenshot, I want to swap cell A4 and B4, please do as follows:



enter image description here




  1. Select the cell you want to swap. In this example, select cell A4.


  2. Press Shift key, and put the cursor at the right border.


  3. Then drag the cursor to the right border of cell B4.


  4. When there displays “工”, release the mouse.


  5. And the two cell contents have been swapped.



enter image description here



With this method, we can also swap two adjoining rows or columns.







share|improve this answer





















  • 6





    This should be the selected anser to me. Thank you!

    – Nam G VU
    Feb 27 '14 at 6:45






  • 1





    It doesn't work for me. It just insert empty cells between those 2 cells

    – phuclv
    Feb 18 '16 at 10:09











  • This only works for adjacent cells which is not what the original question asked for.

    – jpierson
    Jul 14 '17 at 1:22











  • This doesn't work at all for me on Excel 2010 - it quickly flashes, but the contents of the cells remain unchanged.

    – Hashim
    Oct 12 '17 at 22:05



















14















By easy, I mean either a keyboard shortcut or menu item, without involving copying to temporary cells or writing VBA scripts or anything like that. I'm looking for a way to just select two cells and click some menu item or press some key combination that will swap their contents.




Why impose this restriction? Creating a macro makes this trivial. As far as I know, it can't be done any other way. You can assign the macro to a button or hotkey.



Sub Swap()     
If Selection.Count <> 2 Then
MsgBox "Select 2 cells (only) to swap."
Exit Sub
End If
Set trange = Selection
If trange.Areas.Count = 2 Then
temp = trange.Areas(2)
trange.Areas(2) = trange.Areas(1)
trange.Areas(1) = temp
Else
temp = trange(1)
trange(1) = trange(2)
trange(2) = temp
End If
End Sub





share|improve this answer



















  • 4





    I'm not a VBA expert and have neither the time nor the inclination to become one. I also frequently use many different computers. It would be nice to have swapping available on every computer I use for Excel, without having to look-up the code for the VBA macro that does it, so that I can bind it to a hotkey.

    – Dan Moulding
    Mar 14 '11 at 19:16






  • 3





    @Dan It would be nice if everyone could have their pet functionality built into Excel, but then it would become even more a bloated mess than it already is. There is a reason why Excel has a macro language, to automate repetitive tasks like this. I posted code found through a google search. You don't have to be an expert.

    – ghoppe
    Mar 14 '11 at 19:29











  • +1 vba is the way excel allows you to add your pet functions. there are also ways of making that vba avaliable on many computers, to just yourself or to all (eg personal workbook, or addins)

    – chris neilsen
    Mar 18 '11 at 23:34






  • 9





    I would hardly call swapping the content of two cells / rows /columns to be a pet function.

    – Nicolai
    Feb 17 '12 at 11:35






  • 5





    @ghoppe Maybe not essential, but if you do a quick search on "swap the content of two cells in excel" (which you already have) it is quite obvious that Dan and I are hardly the only ones that care about this feature.

    – Nicolai
    Feb 21 '12 at 13:57



















14














For the specific case of adjacent same-size rectangular ranges, you can use the method described in this answer to a similar question.




  1. Select the right or bottom range

  2. Press Ctrl+X

  3. Select the adjacent range (i.e., directly above or to the left)

  4. Press Ctrl++ (the + is usually above the = key so this translates to Ctrl+Shift+=)


Note you can use the same procedure to swap whole adjacent rows or columns.






share|improve this answer





















  • 1





    Excellent. This is exactly what I was looking for. Being able to use keyboard shortcuts and being able to operate on multiple cells is so much faster.

    – Anthony Geoghegan
    Nov 2 '15 at 9:36











  • This doesn't work for me. And the cells are adjacent to each other. I don't know why this doesn't work. Is there any particular explanation for this command?

    – Smart Humanism
    Nov 30 '18 at 20:07



















4














No. There is no way to swap the contents of two cells in Excel, without writing your own macro to do it.



EDIT: It sounds like there may now be an easy way to swap cell contents in more recent versions of Excel, so this answer is probably now out of date.






share|improve this answer


























  • this statement is incorrect. See the answer from user190216.

    – Karl Rookey
    Sep 10 '15 at 18:08













  • @KarlRookey Originally that answer stated (and it kind of still does) that the cells must be adjacent. It sounds like this may no longer be true for more recent versions of Excel. If that's the case, then, yes, there is now a better answer. Thanks!

    – Dan Moulding
    Sep 10 '15 at 18:20





















2














Select first set of cells to be swapped and hit ctrl+x:



Select the cells BESIDE the ones you want to swap with and hit ctrl++.






share|improve this answer





















  • 1





    This works only if cells are adjacent. Otherwise the whole stuff is shifted near target cells.

    – tumchaaditya
    Jan 5 '14 at 19:45



















0














You can paste up to 25 items to the clipboard, so they are easy to swap using ctr+tab or cmd+tab mac






share|improve this answer



















  • 2





    Is this a standard Mac feature? The author of the question didn't specify what platform they are on. I'm not sure whether the standard clipboard in all versions of Windows holds more than one item, but free utilities are readily available to provide that functionality (and the keyboard shortcuts may vary). Could you expand your answer to make it more comprehensive for this approach?

    – fixer1234
    Dec 5 '14 at 18:14













  • I tried this on Windows but couldn't figure it out. I even tried the ctrl+shift+p option that normally works in Visual Studio to paste out of the clipboard ring.

    – jpierson
    Jul 14 '17 at 1:21



















0














I read this post but actually needed a macro to swap full ranges. In addition, I needed to swap the colors. Modded the originally posted macro slightly, this might be useful for someone.



Sub Swap()

If Selection.Areas.Count <> 2 Then
MsgBox "Select 2 cell ranges (only) to swap."
Exit Sub
End If


If Selection.Areas(1).Count <> Selection.Areas(2).Count Then
MsgBox "The two areas must be of equal size"
Exit Sub
End If

'With this for loop we run through each cell 1 by 1
For i = 1 To Selection.Areas(1).Count
'Swapping values
temp = Selection.Areas(1)(i)
Selection.Areas(1)(i) = Selection.Areas(2)(i)
Selection.Areas(2)(i) = temp

'Swapping color
tempColor = Selection.Areas(1)(i).DisplayFormat.Interior.Color
Selection.Areas(1)(i).Interior.Color = Selection.Areas(2)(i).DisplayFormat.Interior.Color
Selection.Areas(2)(i).Interior.Color = tempColor
Next i

End Sub





share|improve this answer































    0














    Select the bottom cell you want to swap
    Press Ctrl + x
    and go to cell you want to swap with
    Press Ctrl + Shift + =
    the swap will be executed






    share|improve this answer
























    • This is exactly the same as Jonas Heidelberg's answer, from (exactly!) six years ago, and effectively the same as user287020's answer.

      – Scott
      Nov 22 '18 at 6:25



















    0














    In Office 365 (2016) this little trick works on ranges in the same row that are not adjacent. Works really well swapping the contents of 3 cells with 3 other cells somewhere to the left.






    share|improve this answer








    New contributor




    Steve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















    • Welcome to Super User. "this little trick"? You haven't posted any solution. If you were referring to another answer, please be aware that answer posts are reserved for solutions to the question. Please don't confirm that another answer works, or provide minor clarification or commentary as an answer. With a little more rep, you will be able to post comments.

      – fixer1234
      15 mins ago












    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f257516%2fswap-cell-contents-in-excel%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    9 Answers
    9






    active

    oldest

    votes








    9 Answers
    9






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    45














    From: http://www.extendoffice.com/documents/excel/860-excel-swap-contents-of-two-cells.html




    Sometimes, there are two adjoining cells need to be swapped. We can manually do it easily. Look at the following screenshot, I want to swap cell A4 and B4, please do as follows:



    enter image description here




    1. Select the cell you want to swap. In this example, select cell A4.


    2. Press Shift key, and put the cursor at the right border.


    3. Then drag the cursor to the right border of cell B4.


    4. When there displays “工”, release the mouse.


    5. And the two cell contents have been swapped.



    enter image description here



    With this method, we can also swap two adjoining rows or columns.







    share|improve this answer





















    • 6





      This should be the selected anser to me. Thank you!

      – Nam G VU
      Feb 27 '14 at 6:45






    • 1





      It doesn't work for me. It just insert empty cells between those 2 cells

      – phuclv
      Feb 18 '16 at 10:09











    • This only works for adjacent cells which is not what the original question asked for.

      – jpierson
      Jul 14 '17 at 1:22











    • This doesn't work at all for me on Excel 2010 - it quickly flashes, but the contents of the cells remain unchanged.

      – Hashim
      Oct 12 '17 at 22:05
















    45














    From: http://www.extendoffice.com/documents/excel/860-excel-swap-contents-of-two-cells.html




    Sometimes, there are two adjoining cells need to be swapped. We can manually do it easily. Look at the following screenshot, I want to swap cell A4 and B4, please do as follows:



    enter image description here




    1. Select the cell you want to swap. In this example, select cell A4.


    2. Press Shift key, and put the cursor at the right border.


    3. Then drag the cursor to the right border of cell B4.


    4. When there displays “工”, release the mouse.


    5. And the two cell contents have been swapped.



    enter image description here



    With this method, we can also swap two adjoining rows or columns.







    share|improve this answer





















    • 6





      This should be the selected anser to me. Thank you!

      – Nam G VU
      Feb 27 '14 at 6:45






    • 1





      It doesn't work for me. It just insert empty cells between those 2 cells

      – phuclv
      Feb 18 '16 at 10:09











    • This only works for adjacent cells which is not what the original question asked for.

      – jpierson
      Jul 14 '17 at 1:22











    • This doesn't work at all for me on Excel 2010 - it quickly flashes, but the contents of the cells remain unchanged.

      – Hashim
      Oct 12 '17 at 22:05














    45












    45








    45







    From: http://www.extendoffice.com/documents/excel/860-excel-swap-contents-of-two-cells.html




    Sometimes, there are two adjoining cells need to be swapped. We can manually do it easily. Look at the following screenshot, I want to swap cell A4 and B4, please do as follows:



    enter image description here




    1. Select the cell you want to swap. In this example, select cell A4.


    2. Press Shift key, and put the cursor at the right border.


    3. Then drag the cursor to the right border of cell B4.


    4. When there displays “工”, release the mouse.


    5. And the two cell contents have been swapped.



    enter image description here



    With this method, we can also swap two adjoining rows or columns.







    share|improve this answer















    From: http://www.extendoffice.com/documents/excel/860-excel-swap-contents-of-two-cells.html




    Sometimes, there are two adjoining cells need to be swapped. We can manually do it easily. Look at the following screenshot, I want to swap cell A4 and B4, please do as follows:



    enter image description here




    1. Select the cell you want to swap. In this example, select cell A4.


    2. Press Shift key, and put the cursor at the right border.


    3. Then drag the cursor to the right border of cell B4.


    4. When there displays “工”, release the mouse.


    5. And the two cell contents have been swapped.



    enter image description here



    With this method, we can also swap two adjoining rows or columns.








    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Sep 10 '15 at 19:24









    nixda

    21.1k1179134




    21.1k1179134










    answered Jan 15 '13 at 19:12









    user190216user190216

    47452




    47452








    • 6





      This should be the selected anser to me. Thank you!

      – Nam G VU
      Feb 27 '14 at 6:45






    • 1





      It doesn't work for me. It just insert empty cells between those 2 cells

      – phuclv
      Feb 18 '16 at 10:09











    • This only works for adjacent cells which is not what the original question asked for.

      – jpierson
      Jul 14 '17 at 1:22











    • This doesn't work at all for me on Excel 2010 - it quickly flashes, but the contents of the cells remain unchanged.

      – Hashim
      Oct 12 '17 at 22:05














    • 6





      This should be the selected anser to me. Thank you!

      – Nam G VU
      Feb 27 '14 at 6:45






    • 1





      It doesn't work for me. It just insert empty cells between those 2 cells

      – phuclv
      Feb 18 '16 at 10:09











    • This only works for adjacent cells which is not what the original question asked for.

      – jpierson
      Jul 14 '17 at 1:22











    • This doesn't work at all for me on Excel 2010 - it quickly flashes, but the contents of the cells remain unchanged.

      – Hashim
      Oct 12 '17 at 22:05








    6




    6





    This should be the selected anser to me. Thank you!

    – Nam G VU
    Feb 27 '14 at 6:45





    This should be the selected anser to me. Thank you!

    – Nam G VU
    Feb 27 '14 at 6:45




    1




    1





    It doesn't work for me. It just insert empty cells between those 2 cells

    – phuclv
    Feb 18 '16 at 10:09





    It doesn't work for me. It just insert empty cells between those 2 cells

    – phuclv
    Feb 18 '16 at 10:09













    This only works for adjacent cells which is not what the original question asked for.

    – jpierson
    Jul 14 '17 at 1:22





    This only works for adjacent cells which is not what the original question asked for.

    – jpierson
    Jul 14 '17 at 1:22













    This doesn't work at all for me on Excel 2010 - it quickly flashes, but the contents of the cells remain unchanged.

    – Hashim
    Oct 12 '17 at 22:05





    This doesn't work at all for me on Excel 2010 - it quickly flashes, but the contents of the cells remain unchanged.

    – Hashim
    Oct 12 '17 at 22:05













    14















    By easy, I mean either a keyboard shortcut or menu item, without involving copying to temporary cells or writing VBA scripts or anything like that. I'm looking for a way to just select two cells and click some menu item or press some key combination that will swap their contents.




    Why impose this restriction? Creating a macro makes this trivial. As far as I know, it can't be done any other way. You can assign the macro to a button or hotkey.



    Sub Swap()     
    If Selection.Count <> 2 Then
    MsgBox "Select 2 cells (only) to swap."
    Exit Sub
    End If
    Set trange = Selection
    If trange.Areas.Count = 2 Then
    temp = trange.Areas(2)
    trange.Areas(2) = trange.Areas(1)
    trange.Areas(1) = temp
    Else
    temp = trange(1)
    trange(1) = trange(2)
    trange(2) = temp
    End If
    End Sub





    share|improve this answer



















    • 4





      I'm not a VBA expert and have neither the time nor the inclination to become one. I also frequently use many different computers. It would be nice to have swapping available on every computer I use for Excel, without having to look-up the code for the VBA macro that does it, so that I can bind it to a hotkey.

      – Dan Moulding
      Mar 14 '11 at 19:16






    • 3





      @Dan It would be nice if everyone could have their pet functionality built into Excel, but then it would become even more a bloated mess than it already is. There is a reason why Excel has a macro language, to automate repetitive tasks like this. I posted code found through a google search. You don't have to be an expert.

      – ghoppe
      Mar 14 '11 at 19:29











    • +1 vba is the way excel allows you to add your pet functions. there are also ways of making that vba avaliable on many computers, to just yourself or to all (eg personal workbook, or addins)

      – chris neilsen
      Mar 18 '11 at 23:34






    • 9





      I would hardly call swapping the content of two cells / rows /columns to be a pet function.

      – Nicolai
      Feb 17 '12 at 11:35






    • 5





      @ghoppe Maybe not essential, but if you do a quick search on "swap the content of two cells in excel" (which you already have) it is quite obvious that Dan and I are hardly the only ones that care about this feature.

      – Nicolai
      Feb 21 '12 at 13:57
















    14















    By easy, I mean either a keyboard shortcut or menu item, without involving copying to temporary cells or writing VBA scripts or anything like that. I'm looking for a way to just select two cells and click some menu item or press some key combination that will swap their contents.




    Why impose this restriction? Creating a macro makes this trivial. As far as I know, it can't be done any other way. You can assign the macro to a button or hotkey.



    Sub Swap()     
    If Selection.Count <> 2 Then
    MsgBox "Select 2 cells (only) to swap."
    Exit Sub
    End If
    Set trange = Selection
    If trange.Areas.Count = 2 Then
    temp = trange.Areas(2)
    trange.Areas(2) = trange.Areas(1)
    trange.Areas(1) = temp
    Else
    temp = trange(1)
    trange(1) = trange(2)
    trange(2) = temp
    End If
    End Sub





    share|improve this answer



















    • 4





      I'm not a VBA expert and have neither the time nor the inclination to become one. I also frequently use many different computers. It would be nice to have swapping available on every computer I use for Excel, without having to look-up the code for the VBA macro that does it, so that I can bind it to a hotkey.

      – Dan Moulding
      Mar 14 '11 at 19:16






    • 3





      @Dan It would be nice if everyone could have their pet functionality built into Excel, but then it would become even more a bloated mess than it already is. There is a reason why Excel has a macro language, to automate repetitive tasks like this. I posted code found through a google search. You don't have to be an expert.

      – ghoppe
      Mar 14 '11 at 19:29











    • +1 vba is the way excel allows you to add your pet functions. there are also ways of making that vba avaliable on many computers, to just yourself or to all (eg personal workbook, or addins)

      – chris neilsen
      Mar 18 '11 at 23:34






    • 9





      I would hardly call swapping the content of two cells / rows /columns to be a pet function.

      – Nicolai
      Feb 17 '12 at 11:35






    • 5





      @ghoppe Maybe not essential, but if you do a quick search on "swap the content of two cells in excel" (which you already have) it is quite obvious that Dan and I are hardly the only ones that care about this feature.

      – Nicolai
      Feb 21 '12 at 13:57














    14












    14








    14








    By easy, I mean either a keyboard shortcut or menu item, without involving copying to temporary cells or writing VBA scripts or anything like that. I'm looking for a way to just select two cells and click some menu item or press some key combination that will swap their contents.




    Why impose this restriction? Creating a macro makes this trivial. As far as I know, it can't be done any other way. You can assign the macro to a button or hotkey.



    Sub Swap()     
    If Selection.Count <> 2 Then
    MsgBox "Select 2 cells (only) to swap."
    Exit Sub
    End If
    Set trange = Selection
    If trange.Areas.Count = 2 Then
    temp = trange.Areas(2)
    trange.Areas(2) = trange.Areas(1)
    trange.Areas(1) = temp
    Else
    temp = trange(1)
    trange(1) = trange(2)
    trange(2) = temp
    End If
    End Sub





    share|improve this answer














    By easy, I mean either a keyboard shortcut or menu item, without involving copying to temporary cells or writing VBA scripts or anything like that. I'm looking for a way to just select two cells and click some menu item or press some key combination that will swap their contents.




    Why impose this restriction? Creating a macro makes this trivial. As far as I know, it can't be done any other way. You can assign the macro to a button or hotkey.



    Sub Swap()     
    If Selection.Count <> 2 Then
    MsgBox "Select 2 cells (only) to swap."
    Exit Sub
    End If
    Set trange = Selection
    If trange.Areas.Count = 2 Then
    temp = trange.Areas(2)
    trange.Areas(2) = trange.Areas(1)
    trange.Areas(1) = temp
    Else
    temp = trange(1)
    trange(1) = trange(2)
    trange(2) = temp
    End If
    End Sub






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 14 '11 at 16:44









    ghoppeghoppe

    6,0741621




    6,0741621








    • 4





      I'm not a VBA expert and have neither the time nor the inclination to become one. I also frequently use many different computers. It would be nice to have swapping available on every computer I use for Excel, without having to look-up the code for the VBA macro that does it, so that I can bind it to a hotkey.

      – Dan Moulding
      Mar 14 '11 at 19:16






    • 3





      @Dan It would be nice if everyone could have their pet functionality built into Excel, but then it would become even more a bloated mess than it already is. There is a reason why Excel has a macro language, to automate repetitive tasks like this. I posted code found through a google search. You don't have to be an expert.

      – ghoppe
      Mar 14 '11 at 19:29











    • +1 vba is the way excel allows you to add your pet functions. there are also ways of making that vba avaliable on many computers, to just yourself or to all (eg personal workbook, or addins)

      – chris neilsen
      Mar 18 '11 at 23:34






    • 9





      I would hardly call swapping the content of two cells / rows /columns to be a pet function.

      – Nicolai
      Feb 17 '12 at 11:35






    • 5





      @ghoppe Maybe not essential, but if you do a quick search on "swap the content of two cells in excel" (which you already have) it is quite obvious that Dan and I are hardly the only ones that care about this feature.

      – Nicolai
      Feb 21 '12 at 13:57














    • 4





      I'm not a VBA expert and have neither the time nor the inclination to become one. I also frequently use many different computers. It would be nice to have swapping available on every computer I use for Excel, without having to look-up the code for the VBA macro that does it, so that I can bind it to a hotkey.

      – Dan Moulding
      Mar 14 '11 at 19:16






    • 3





      @Dan It would be nice if everyone could have their pet functionality built into Excel, but then it would become even more a bloated mess than it already is. There is a reason why Excel has a macro language, to automate repetitive tasks like this. I posted code found through a google search. You don't have to be an expert.

      – ghoppe
      Mar 14 '11 at 19:29











    • +1 vba is the way excel allows you to add your pet functions. there are also ways of making that vba avaliable on many computers, to just yourself or to all (eg personal workbook, or addins)

      – chris neilsen
      Mar 18 '11 at 23:34






    • 9





      I would hardly call swapping the content of two cells / rows /columns to be a pet function.

      – Nicolai
      Feb 17 '12 at 11:35






    • 5





      @ghoppe Maybe not essential, but if you do a quick search on "swap the content of two cells in excel" (which you already have) it is quite obvious that Dan and I are hardly the only ones that care about this feature.

      – Nicolai
      Feb 21 '12 at 13:57








    4




    4





    I'm not a VBA expert and have neither the time nor the inclination to become one. I also frequently use many different computers. It would be nice to have swapping available on every computer I use for Excel, without having to look-up the code for the VBA macro that does it, so that I can bind it to a hotkey.

    – Dan Moulding
    Mar 14 '11 at 19:16





    I'm not a VBA expert and have neither the time nor the inclination to become one. I also frequently use many different computers. It would be nice to have swapping available on every computer I use for Excel, without having to look-up the code for the VBA macro that does it, so that I can bind it to a hotkey.

    – Dan Moulding
    Mar 14 '11 at 19:16




    3




    3





    @Dan It would be nice if everyone could have their pet functionality built into Excel, but then it would become even more a bloated mess than it already is. There is a reason why Excel has a macro language, to automate repetitive tasks like this. I posted code found through a google search. You don't have to be an expert.

    – ghoppe
    Mar 14 '11 at 19:29





    @Dan It would be nice if everyone could have their pet functionality built into Excel, but then it would become even more a bloated mess than it already is. There is a reason why Excel has a macro language, to automate repetitive tasks like this. I posted code found through a google search. You don't have to be an expert.

    – ghoppe
    Mar 14 '11 at 19:29













    +1 vba is the way excel allows you to add your pet functions. there are also ways of making that vba avaliable on many computers, to just yourself or to all (eg personal workbook, or addins)

    – chris neilsen
    Mar 18 '11 at 23:34





    +1 vba is the way excel allows you to add your pet functions. there are also ways of making that vba avaliable on many computers, to just yourself or to all (eg personal workbook, or addins)

    – chris neilsen
    Mar 18 '11 at 23:34




    9




    9





    I would hardly call swapping the content of two cells / rows /columns to be a pet function.

    – Nicolai
    Feb 17 '12 at 11:35





    I would hardly call swapping the content of two cells / rows /columns to be a pet function.

    – Nicolai
    Feb 17 '12 at 11:35




    5




    5





    @ghoppe Maybe not essential, but if you do a quick search on "swap the content of two cells in excel" (which you already have) it is quite obvious that Dan and I are hardly the only ones that care about this feature.

    – Nicolai
    Feb 21 '12 at 13:57





    @ghoppe Maybe not essential, but if you do a quick search on "swap the content of two cells in excel" (which you already have) it is quite obvious that Dan and I are hardly the only ones that care about this feature.

    – Nicolai
    Feb 21 '12 at 13:57











    14














    For the specific case of adjacent same-size rectangular ranges, you can use the method described in this answer to a similar question.




    1. Select the right or bottom range

    2. Press Ctrl+X

    3. Select the adjacent range (i.e., directly above or to the left)

    4. Press Ctrl++ (the + is usually above the = key so this translates to Ctrl+Shift+=)


    Note you can use the same procedure to swap whole adjacent rows or columns.






    share|improve this answer





















    • 1





      Excellent. This is exactly what I was looking for. Being able to use keyboard shortcuts and being able to operate on multiple cells is so much faster.

      – Anthony Geoghegan
      Nov 2 '15 at 9:36











    • This doesn't work for me. And the cells are adjacent to each other. I don't know why this doesn't work. Is there any particular explanation for this command?

      – Smart Humanism
      Nov 30 '18 at 20:07
















    14














    For the specific case of adjacent same-size rectangular ranges, you can use the method described in this answer to a similar question.




    1. Select the right or bottom range

    2. Press Ctrl+X

    3. Select the adjacent range (i.e., directly above or to the left)

    4. Press Ctrl++ (the + is usually above the = key so this translates to Ctrl+Shift+=)


    Note you can use the same procedure to swap whole adjacent rows or columns.






    share|improve this answer





















    • 1





      Excellent. This is exactly what I was looking for. Being able to use keyboard shortcuts and being able to operate on multiple cells is so much faster.

      – Anthony Geoghegan
      Nov 2 '15 at 9:36











    • This doesn't work for me. And the cells are adjacent to each other. I don't know why this doesn't work. Is there any particular explanation for this command?

      – Smart Humanism
      Nov 30 '18 at 20:07














    14












    14








    14







    For the specific case of adjacent same-size rectangular ranges, you can use the method described in this answer to a similar question.




    1. Select the right or bottom range

    2. Press Ctrl+X

    3. Select the adjacent range (i.e., directly above or to the left)

    4. Press Ctrl++ (the + is usually above the = key so this translates to Ctrl+Shift+=)


    Note you can use the same procedure to swap whole adjacent rows or columns.






    share|improve this answer















    For the specific case of adjacent same-size rectangular ranges, you can use the method described in this answer to a similar question.




    1. Select the right or bottom range

    2. Press Ctrl+X

    3. Select the adjacent range (i.e., directly above or to the left)

    4. Press Ctrl++ (the + is usually above the = key so this translates to Ctrl+Shift+=)


    Note you can use the same procedure to swap whole adjacent rows or columns.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 22 '18 at 6:55









    Scott

    16.1k113990




    16.1k113990










    answered Nov 22 '12 at 9:20









    Jonas HeidelbergJonas Heidelberg

    1,30211534




    1,30211534








    • 1





      Excellent. This is exactly what I was looking for. Being able to use keyboard shortcuts and being able to operate on multiple cells is so much faster.

      – Anthony Geoghegan
      Nov 2 '15 at 9:36











    • This doesn't work for me. And the cells are adjacent to each other. I don't know why this doesn't work. Is there any particular explanation for this command?

      – Smart Humanism
      Nov 30 '18 at 20:07














    • 1





      Excellent. This is exactly what I was looking for. Being able to use keyboard shortcuts and being able to operate on multiple cells is so much faster.

      – Anthony Geoghegan
      Nov 2 '15 at 9:36











    • This doesn't work for me. And the cells are adjacent to each other. I don't know why this doesn't work. Is there any particular explanation for this command?

      – Smart Humanism
      Nov 30 '18 at 20:07








    1




    1





    Excellent. This is exactly what I was looking for. Being able to use keyboard shortcuts and being able to operate on multiple cells is so much faster.

    – Anthony Geoghegan
    Nov 2 '15 at 9:36





    Excellent. This is exactly what I was looking for. Being able to use keyboard shortcuts and being able to operate on multiple cells is so much faster.

    – Anthony Geoghegan
    Nov 2 '15 at 9:36













    This doesn't work for me. And the cells are adjacent to each other. I don't know why this doesn't work. Is there any particular explanation for this command?

    – Smart Humanism
    Nov 30 '18 at 20:07





    This doesn't work for me. And the cells are adjacent to each other. I don't know why this doesn't work. Is there any particular explanation for this command?

    – Smart Humanism
    Nov 30 '18 at 20:07











    4














    No. There is no way to swap the contents of two cells in Excel, without writing your own macro to do it.



    EDIT: It sounds like there may now be an easy way to swap cell contents in more recent versions of Excel, so this answer is probably now out of date.






    share|improve this answer


























    • this statement is incorrect. See the answer from user190216.

      – Karl Rookey
      Sep 10 '15 at 18:08













    • @KarlRookey Originally that answer stated (and it kind of still does) that the cells must be adjacent. It sounds like this may no longer be true for more recent versions of Excel. If that's the case, then, yes, there is now a better answer. Thanks!

      – Dan Moulding
      Sep 10 '15 at 18:20


















    4














    No. There is no way to swap the contents of two cells in Excel, without writing your own macro to do it.



    EDIT: It sounds like there may now be an easy way to swap cell contents in more recent versions of Excel, so this answer is probably now out of date.






    share|improve this answer


























    • this statement is incorrect. See the answer from user190216.

      – Karl Rookey
      Sep 10 '15 at 18:08













    • @KarlRookey Originally that answer stated (and it kind of still does) that the cells must be adjacent. It sounds like this may no longer be true for more recent versions of Excel. If that's the case, then, yes, there is now a better answer. Thanks!

      – Dan Moulding
      Sep 10 '15 at 18:20
















    4












    4








    4







    No. There is no way to swap the contents of two cells in Excel, without writing your own macro to do it.



    EDIT: It sounds like there may now be an easy way to swap cell contents in more recent versions of Excel, so this answer is probably now out of date.






    share|improve this answer















    No. There is no way to swap the contents of two cells in Excel, without writing your own macro to do it.



    EDIT: It sounds like there may now be an easy way to swap cell contents in more recent versions of Excel, so this answer is probably now out of date.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Sep 10 '15 at 18:22

























    answered Mar 24 '11 at 20:24









    Dan MouldingDan Moulding

    3291311




    3291311













    • this statement is incorrect. See the answer from user190216.

      – Karl Rookey
      Sep 10 '15 at 18:08













    • @KarlRookey Originally that answer stated (and it kind of still does) that the cells must be adjacent. It sounds like this may no longer be true for more recent versions of Excel. If that's the case, then, yes, there is now a better answer. Thanks!

      – Dan Moulding
      Sep 10 '15 at 18:20





















    • this statement is incorrect. See the answer from user190216.

      – Karl Rookey
      Sep 10 '15 at 18:08













    • @KarlRookey Originally that answer stated (and it kind of still does) that the cells must be adjacent. It sounds like this may no longer be true for more recent versions of Excel. If that's the case, then, yes, there is now a better answer. Thanks!

      – Dan Moulding
      Sep 10 '15 at 18:20



















    this statement is incorrect. See the answer from user190216.

    – Karl Rookey
    Sep 10 '15 at 18:08







    this statement is incorrect. See the answer from user190216.

    – Karl Rookey
    Sep 10 '15 at 18:08















    @KarlRookey Originally that answer stated (and it kind of still does) that the cells must be adjacent. It sounds like this may no longer be true for more recent versions of Excel. If that's the case, then, yes, there is now a better answer. Thanks!

    – Dan Moulding
    Sep 10 '15 at 18:20







    @KarlRookey Originally that answer stated (and it kind of still does) that the cells must be adjacent. It sounds like this may no longer be true for more recent versions of Excel. If that's the case, then, yes, there is now a better answer. Thanks!

    – Dan Moulding
    Sep 10 '15 at 18:20













    2














    Select first set of cells to be swapped and hit ctrl+x:



    Select the cells BESIDE the ones you want to swap with and hit ctrl++.






    share|improve this answer





















    • 1





      This works only if cells are adjacent. Otherwise the whole stuff is shifted near target cells.

      – tumchaaditya
      Jan 5 '14 at 19:45
















    2














    Select first set of cells to be swapped and hit ctrl+x:



    Select the cells BESIDE the ones you want to swap with and hit ctrl++.






    share|improve this answer





















    • 1





      This works only if cells are adjacent. Otherwise the whole stuff is shifted near target cells.

      – tumchaaditya
      Jan 5 '14 at 19:45














    2












    2








    2







    Select first set of cells to be swapped and hit ctrl+x:



    Select the cells BESIDE the ones you want to swap with and hit ctrl++.






    share|improve this answer















    Select first set of cells to be swapped and hit ctrl+x:



    Select the cells BESIDE the ones you want to swap with and hit ctrl++.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jan 5 '14 at 20:02









    Ƭᴇcʜιᴇ007

    99.9k14158221




    99.9k14158221










    answered Jan 5 '14 at 19:25









    user287020user287020

    211




    211








    • 1





      This works only if cells are adjacent. Otherwise the whole stuff is shifted near target cells.

      – tumchaaditya
      Jan 5 '14 at 19:45














    • 1





      This works only if cells are adjacent. Otherwise the whole stuff is shifted near target cells.

      – tumchaaditya
      Jan 5 '14 at 19:45








    1




    1





    This works only if cells are adjacent. Otherwise the whole stuff is shifted near target cells.

    – tumchaaditya
    Jan 5 '14 at 19:45





    This works only if cells are adjacent. Otherwise the whole stuff is shifted near target cells.

    – tumchaaditya
    Jan 5 '14 at 19:45











    0














    You can paste up to 25 items to the clipboard, so they are easy to swap using ctr+tab or cmd+tab mac






    share|improve this answer



















    • 2





      Is this a standard Mac feature? The author of the question didn't specify what platform they are on. I'm not sure whether the standard clipboard in all versions of Windows holds more than one item, but free utilities are readily available to provide that functionality (and the keyboard shortcuts may vary). Could you expand your answer to make it more comprehensive for this approach?

      – fixer1234
      Dec 5 '14 at 18:14













    • I tried this on Windows but couldn't figure it out. I even tried the ctrl+shift+p option that normally works in Visual Studio to paste out of the clipboard ring.

      – jpierson
      Jul 14 '17 at 1:21
















    0














    You can paste up to 25 items to the clipboard, so they are easy to swap using ctr+tab or cmd+tab mac






    share|improve this answer



















    • 2





      Is this a standard Mac feature? The author of the question didn't specify what platform they are on. I'm not sure whether the standard clipboard in all versions of Windows holds more than one item, but free utilities are readily available to provide that functionality (and the keyboard shortcuts may vary). Could you expand your answer to make it more comprehensive for this approach?

      – fixer1234
      Dec 5 '14 at 18:14













    • I tried this on Windows but couldn't figure it out. I even tried the ctrl+shift+p option that normally works in Visual Studio to paste out of the clipboard ring.

      – jpierson
      Jul 14 '17 at 1:21














    0












    0








    0







    You can paste up to 25 items to the clipboard, so they are easy to swap using ctr+tab or cmd+tab mac






    share|improve this answer













    You can paste up to 25 items to the clipboard, so they are easy to swap using ctr+tab or cmd+tab mac







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 5 '14 at 17:19









    AaronAaron

    91




    91








    • 2





      Is this a standard Mac feature? The author of the question didn't specify what platform they are on. I'm not sure whether the standard clipboard in all versions of Windows holds more than one item, but free utilities are readily available to provide that functionality (and the keyboard shortcuts may vary). Could you expand your answer to make it more comprehensive for this approach?

      – fixer1234
      Dec 5 '14 at 18:14













    • I tried this on Windows but couldn't figure it out. I even tried the ctrl+shift+p option that normally works in Visual Studio to paste out of the clipboard ring.

      – jpierson
      Jul 14 '17 at 1:21














    • 2





      Is this a standard Mac feature? The author of the question didn't specify what platform they are on. I'm not sure whether the standard clipboard in all versions of Windows holds more than one item, but free utilities are readily available to provide that functionality (and the keyboard shortcuts may vary). Could you expand your answer to make it more comprehensive for this approach?

      – fixer1234
      Dec 5 '14 at 18:14













    • I tried this on Windows but couldn't figure it out. I even tried the ctrl+shift+p option that normally works in Visual Studio to paste out of the clipboard ring.

      – jpierson
      Jul 14 '17 at 1:21








    2




    2





    Is this a standard Mac feature? The author of the question didn't specify what platform they are on. I'm not sure whether the standard clipboard in all versions of Windows holds more than one item, but free utilities are readily available to provide that functionality (and the keyboard shortcuts may vary). Could you expand your answer to make it more comprehensive for this approach?

    – fixer1234
    Dec 5 '14 at 18:14







    Is this a standard Mac feature? The author of the question didn't specify what platform they are on. I'm not sure whether the standard clipboard in all versions of Windows holds more than one item, but free utilities are readily available to provide that functionality (and the keyboard shortcuts may vary). Could you expand your answer to make it more comprehensive for this approach?

    – fixer1234
    Dec 5 '14 at 18:14















    I tried this on Windows but couldn't figure it out. I even tried the ctrl+shift+p option that normally works in Visual Studio to paste out of the clipboard ring.

    – jpierson
    Jul 14 '17 at 1:21





    I tried this on Windows but couldn't figure it out. I even tried the ctrl+shift+p option that normally works in Visual Studio to paste out of the clipboard ring.

    – jpierson
    Jul 14 '17 at 1:21











    0














    I read this post but actually needed a macro to swap full ranges. In addition, I needed to swap the colors. Modded the originally posted macro slightly, this might be useful for someone.



    Sub Swap()

    If Selection.Areas.Count <> 2 Then
    MsgBox "Select 2 cell ranges (only) to swap."
    Exit Sub
    End If


    If Selection.Areas(1).Count <> Selection.Areas(2).Count Then
    MsgBox "The two areas must be of equal size"
    Exit Sub
    End If

    'With this for loop we run through each cell 1 by 1
    For i = 1 To Selection.Areas(1).Count
    'Swapping values
    temp = Selection.Areas(1)(i)
    Selection.Areas(1)(i) = Selection.Areas(2)(i)
    Selection.Areas(2)(i) = temp

    'Swapping color
    tempColor = Selection.Areas(1)(i).DisplayFormat.Interior.Color
    Selection.Areas(1)(i).Interior.Color = Selection.Areas(2)(i).DisplayFormat.Interior.Color
    Selection.Areas(2)(i).Interior.Color = tempColor
    Next i

    End Sub





    share|improve this answer




























      0














      I read this post but actually needed a macro to swap full ranges. In addition, I needed to swap the colors. Modded the originally posted macro slightly, this might be useful for someone.



      Sub Swap()

      If Selection.Areas.Count <> 2 Then
      MsgBox "Select 2 cell ranges (only) to swap."
      Exit Sub
      End If


      If Selection.Areas(1).Count <> Selection.Areas(2).Count Then
      MsgBox "The two areas must be of equal size"
      Exit Sub
      End If

      'With this for loop we run through each cell 1 by 1
      For i = 1 To Selection.Areas(1).Count
      'Swapping values
      temp = Selection.Areas(1)(i)
      Selection.Areas(1)(i) = Selection.Areas(2)(i)
      Selection.Areas(2)(i) = temp

      'Swapping color
      tempColor = Selection.Areas(1)(i).DisplayFormat.Interior.Color
      Selection.Areas(1)(i).Interior.Color = Selection.Areas(2)(i).DisplayFormat.Interior.Color
      Selection.Areas(2)(i).Interior.Color = tempColor
      Next i

      End Sub





      share|improve this answer


























        0












        0








        0







        I read this post but actually needed a macro to swap full ranges. In addition, I needed to swap the colors. Modded the originally posted macro slightly, this might be useful for someone.



        Sub Swap()

        If Selection.Areas.Count <> 2 Then
        MsgBox "Select 2 cell ranges (only) to swap."
        Exit Sub
        End If


        If Selection.Areas(1).Count <> Selection.Areas(2).Count Then
        MsgBox "The two areas must be of equal size"
        Exit Sub
        End If

        'With this for loop we run through each cell 1 by 1
        For i = 1 To Selection.Areas(1).Count
        'Swapping values
        temp = Selection.Areas(1)(i)
        Selection.Areas(1)(i) = Selection.Areas(2)(i)
        Selection.Areas(2)(i) = temp

        'Swapping color
        tempColor = Selection.Areas(1)(i).DisplayFormat.Interior.Color
        Selection.Areas(1)(i).Interior.Color = Selection.Areas(2)(i).DisplayFormat.Interior.Color
        Selection.Areas(2)(i).Interior.Color = tempColor
        Next i

        End Sub





        share|improve this answer













        I read this post but actually needed a macro to swap full ranges. In addition, I needed to swap the colors. Modded the originally posted macro slightly, this might be useful for someone.



        Sub Swap()

        If Selection.Areas.Count <> 2 Then
        MsgBox "Select 2 cell ranges (only) to swap."
        Exit Sub
        End If


        If Selection.Areas(1).Count <> Selection.Areas(2).Count Then
        MsgBox "The two areas must be of equal size"
        Exit Sub
        End If

        'With this for loop we run through each cell 1 by 1
        For i = 1 To Selection.Areas(1).Count
        'Swapping values
        temp = Selection.Areas(1)(i)
        Selection.Areas(1)(i) = Selection.Areas(2)(i)
        Selection.Areas(2)(i) = temp

        'Swapping color
        tempColor = Selection.Areas(1)(i).DisplayFormat.Interior.Color
        Selection.Areas(1)(i).Interior.Color = Selection.Areas(2)(i).DisplayFormat.Interior.Color
        Selection.Areas(2)(i).Interior.Color = tempColor
        Next i

        End Sub






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 8 '18 at 3:00









        Ivo van der MarelIvo van der Marel

        1




        1























            0














            Select the bottom cell you want to swap
            Press Ctrl + x
            and go to cell you want to swap with
            Press Ctrl + Shift + =
            the swap will be executed






            share|improve this answer
























            • This is exactly the same as Jonas Heidelberg's answer, from (exactly!) six years ago, and effectively the same as user287020's answer.

              – Scott
              Nov 22 '18 at 6:25
















            0














            Select the bottom cell you want to swap
            Press Ctrl + x
            and go to cell you want to swap with
            Press Ctrl + Shift + =
            the swap will be executed






            share|improve this answer
























            • This is exactly the same as Jonas Heidelberg's answer, from (exactly!) six years ago, and effectively the same as user287020's answer.

              – Scott
              Nov 22 '18 at 6:25














            0












            0








            0







            Select the bottom cell you want to swap
            Press Ctrl + x
            and go to cell you want to swap with
            Press Ctrl + Shift + =
            the swap will be executed






            share|improve this answer













            Select the bottom cell you want to swap
            Press Ctrl + x
            and go to cell you want to swap with
            Press Ctrl + Shift + =
            the swap will be executed







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 22 '18 at 4:53









            mehndiratta comehndiratta co

            1




            1













            • This is exactly the same as Jonas Heidelberg's answer, from (exactly!) six years ago, and effectively the same as user287020's answer.

              – Scott
              Nov 22 '18 at 6:25



















            • This is exactly the same as Jonas Heidelberg's answer, from (exactly!) six years ago, and effectively the same as user287020's answer.

              – Scott
              Nov 22 '18 at 6:25

















            This is exactly the same as Jonas Heidelberg's answer, from (exactly!) six years ago, and effectively the same as user287020's answer.

            – Scott
            Nov 22 '18 at 6:25





            This is exactly the same as Jonas Heidelberg's answer, from (exactly!) six years ago, and effectively the same as user287020's answer.

            – Scott
            Nov 22 '18 at 6:25











            0














            In Office 365 (2016) this little trick works on ranges in the same row that are not adjacent. Works really well swapping the contents of 3 cells with 3 other cells somewhere to the left.






            share|improve this answer








            New contributor




            Steve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















            • Welcome to Super User. "this little trick"? You haven't posted any solution. If you were referring to another answer, please be aware that answer posts are reserved for solutions to the question. Please don't confirm that another answer works, or provide minor clarification or commentary as an answer. With a little more rep, you will be able to post comments.

              – fixer1234
              15 mins ago
















            0














            In Office 365 (2016) this little trick works on ranges in the same row that are not adjacent. Works really well swapping the contents of 3 cells with 3 other cells somewhere to the left.






            share|improve this answer








            New contributor




            Steve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















            • Welcome to Super User. "this little trick"? You haven't posted any solution. If you were referring to another answer, please be aware that answer posts are reserved for solutions to the question. Please don't confirm that another answer works, or provide minor clarification or commentary as an answer. With a little more rep, you will be able to post comments.

              – fixer1234
              15 mins ago














            0












            0








            0







            In Office 365 (2016) this little trick works on ranges in the same row that are not adjacent. Works really well swapping the contents of 3 cells with 3 other cells somewhere to the left.






            share|improve this answer








            New contributor




            Steve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.










            In Office 365 (2016) this little trick works on ranges in the same row that are not adjacent. Works really well swapping the contents of 3 cells with 3 other cells somewhere to the left.







            share|improve this answer








            New contributor




            Steve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            share|improve this answer



            share|improve this answer






            New contributor




            Steve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            answered 23 mins ago









            SteveSteve

            1




            1




            New contributor




            Steve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





            New contributor





            Steve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.






            Steve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.













            • Welcome to Super User. "this little trick"? You haven't posted any solution. If you were referring to another answer, please be aware that answer posts are reserved for solutions to the question. Please don't confirm that another answer works, or provide minor clarification or commentary as an answer. With a little more rep, you will be able to post comments.

              – fixer1234
              15 mins ago



















            • Welcome to Super User. "this little trick"? You haven't posted any solution. If you were referring to another answer, please be aware that answer posts are reserved for solutions to the question. Please don't confirm that another answer works, or provide minor clarification or commentary as an answer. With a little more rep, you will be able to post comments.

              – fixer1234
              15 mins ago

















            Welcome to Super User. "this little trick"? You haven't posted any solution. If you were referring to another answer, please be aware that answer posts are reserved for solutions to the question. Please don't confirm that another answer works, or provide minor clarification or commentary as an answer. With a little more rep, you will be able to post comments.

            – fixer1234
            15 mins ago





            Welcome to Super User. "this little trick"? You haven't posted any solution. If you were referring to another answer, please be aware that answer posts are reserved for solutions to the question. Please don't confirm that another answer works, or provide minor clarification or commentary as an answer. With a little more rep, you will be able to post comments.

            – fixer1234
            15 mins ago


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f257516%2fswap-cell-contents-in-excel%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

            Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...