A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

(Again) Converting rows to columns



 
 
Thread Tools Display Modes
  #1  
Old January 27th, 2006, 10:12 PM posted to microsoft.public.excel.misc
external usenet poster
 
Posts: n/a
Default (Again) Converting rows to columns


Would appreciate some advice: I am currently downloading some data into
an Excel spreadsheet that gives me the following format:

Dept.# Account# Month Actuals
Dept.# Account# Month Budget

Dept.# Account# Month Actuals
Dept.# Account# Month Budget

Dept.# Account# Month Actuals
Dept.# Account# Month Budget

I would like to get the actuals in one column and the budget in the
next column, but everything else would have to match up (ie make sure i
am matching the same dept and account #). I am not quite sure how to go
about this and am not an Excel expert. Would appreciate any advice you
may have. Thanks


--
nickr1954
------------------------------------------------------------------------
nickr1954's Profile: http://www.excelforum.com/member.php...o&userid=30907
View this thread: http://www.excelforum.com/showthread...hreadid=505906

  #2  
Old January 27th, 2006, 10:40 PM posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: n/a
Default (Again) Converting rows to columns

If you are doing this frequently, you may want to write a macro to do it.
Posting to programming forum for assistance.

"nickr1954" wrote in
message ...

Would appreciate some advice: I am currently downloading some data into
an Excel spreadsheet that gives me the following format:

Dept.# Account# Month Actuals
Dept.# Account# Month Budget

Dept.# Account# Month Actuals
Dept.# Account# Month Budget

Dept.# Account# Month Actuals
Dept.# Account# Month Budget

I would like to get the actuals in one column and the budget in the
next column, but everything else would have to match up (ie make sure i
am matching the same dept and account #). I am not quite sure how to go
about this and am not an Excel expert. Would appreciate any advice you
may have. Thanks


--
nickr1954
------------------------------------------------------------------------
nickr1954's Profile:
http://www.excelforum.com/member.php...o&userid=30907
View this thread: http://www.excelforum.com/showthread...hreadid=505906



  #3  
Old January 27th, 2006, 10:48 PM posted to microsoft.public.excel.misc
external usenet poster
 
Posts: n/a
Default (Again) Converting rows to columns

If your format is consistent, that is, one blank row between every two
rows, assuming that A18 contains your data, try the following...

F1, copied down and across:

=OFFSET($A$1,COLUMN()-COLUMN($F1),ROW()-ROW(F$1))

Then, convert the formulas into values by doing the following...

1) Select the range of cells in your new columns

2) Edit Copy Edit Paste Special Values Ok

3) Select columns containing zero values

4) Edit Clear Contents

Hope this helps!

In article ,
nickr1954
wrote:

Would appreciate some advice: I am currently downloading some data into
an Excel spreadsheet that gives me the following format:

Dept.# Account# Month Actuals
Dept.# Account# Month Budget

Dept.# Account# Month Actuals
Dept.# Account# Month Budget

Dept.# Account# Month Actuals
Dept.# Account# Month Budget

I would like to get the actuals in one column and the budget in the
next column, but everything else would have to match up (ie make sure i
am matching the same dept and account #). I am not quite sure how to go
about this and am not an Excel expert. Would appreciate any advice you
may have. Thanks

  #4  
Old January 28th, 2006, 04:52 AM posted to microsoft.public.excel.misc
external usenet poster
 
Posts: n/a
Default (Again) Converting rows to columns


Actually, there are no blank rows between the rows of data. It is one
continuous string. Would that change anything in the formula you
provided? Thanks a lot for your advice!


--
nickr1954
------------------------------------------------------------------------
nickr1954's Profile: http://www.excelforum.com/member.php...o&userid=30907
View this thread: http://www.excelforum.com/showthread...hreadid=505906

  #5  
Old January 28th, 2006, 01:22 PM posted to microsoft.public.excel.misc
external usenet poster
 
Posts: n/a
Default (Again) Converting rows to columns

In article ,
nickr1954
wrote:

Actually, there are no blank rows between the rows of data.


In that case, you can skip steps 3 and 4.

It is one continuous string.


If you mean that each row is one continuous string and are not in
separate columns, as I assumed, put them in different columns first and
then use the formula I offered. To separate your text string in
separate columns...

1) Select your range of cells

2) Data Text to Columns

....and follow the prompts.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reverse order of rows and columns Johnny General Discussion 3 September 11th, 2005 03:42 PM
Converting Columns to Rows Chris D'Onofrio Worksheet Functions 1 March 30th, 2005 08:08 PM
Here's a shocker Mike Labosh General Discussion 2 October 26th, 2004 05:04 PM
Repeat Records - Please Help? Repeat records Running & Setting Up Queries 9 September 29th, 2004 05:29 PM
Need to switch columns with rows Carol Ebbinghouse Worksheet Functions 5 September 14th, 2004 04:32 PM


All times are GMT +1. The time now is 07:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.