You are here:

Excel/Transposing Non-contiguous Cells

Advertisement


Question
Hi Nathan!
I was wondering if there was any way (via formula or VBA) to transpose the contents of non-contiguous cells.  For example, suppose I want to transpose the contents of cells A1, C1, E1, G1, I1 from worksheet 1 to A1:A5 on worksheet 2.  Any ideas?
Thanks in advance.
Jeff


Answer
Jeff:

Follow these steps and this should work for you - if not, please let me know because it means I misinterpreted your question :).

1) Holding down the CTRL key on your keyboard select cell A1, C1, E1, G1, and I1 on worksheet 1.  This allows you to select non-contiguous cells.
2) Select copy.
3) Go to worksheet 2 and select cell A1:
4) Click edit->paste special->choose "values" and "transpose" (if you have Excel 2007 this option is on the Home Ribbon under paste).
5) Cell A1 through A5 should now be filled with the values copied earlier...all together, no spaces.

Enjoy!
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

All Answers


Answers by Expert:


Ask Experts

Volunteer


Nathan Head

Expertise

Microsoft Excel questions related to advanced formulas, Pivot Tables, filters, forms, graphs, and just about anything else (EXCEPT Visual Basic Coding/Programming and Macros, I don't answer questions in those categories).


This expert requests a donation of $3 for questions answered to your satisfaction. Isn't $3 a value for this experts time?

Experience

I have been using spreadsheets since Lotus 1-2-3 was released. As a CPA, I use spreadsheets every day at work.

Education/Credentials
CPA, Texas

©2012 About.com, a part of The New York Times Company. All rights reserved.