PC Review


Reply
Thread Tools Rate Thread

advanced paste special transpose

 
 
Matt
Guest
Posts: n/a
 
      10th Dec 2007
I have some data in the following format:
TTL VAL
A 1
A 2
A 3
B 1
B 2
B 3
C 1
C 2
C 3
and i want it into this format...
A 123
B 123
C 123

any suggestions. the only reason this is so difficult is becasue i need to
do it a formula as i have over 300 000 records over 4 different excel
worksheets.

Thnx

-Matt
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      10th Dec 2007

Sub combine_rows()

RowCount = 1
Do While Range("A" & RowCount) <> ""
If Range("A" & RowCount) = Range("A" & (RowCount + 1)) Then
Range("B" & RowCount) = Trim(Range("B" & RowCount)) & _
Trim(Range("B" & (RowCount + 1)))
Rows(RowCount + 1).Delete
Else
RowCount = RowCount + 1
End If
Loop


End Sub

"Matt" wrote:

> I have some data in the following format:
> TTL VAL
> A 1
> A 2
> A 3
> B 1
> B 2
> B 3
> C 1
> C 2
> C 3
> and i want it into this format...
> A 123
> B 123
> C 123
>
> any suggestions. the only reason this is so difficult is becasue i need to
> do it a formula as i have over 300 000 records over 4 different excel
> worksheets.
>
> Thnx
>
> -Matt

 
Reply With Quote
 
Teethless mama
Guest
Posts: n/a
 
      10th Dec 2007
In D2:
=IF(ISERR(SMALL(IF(MATCH(TTL,TTL,0)=ROW(INDIRECT("1:"&ROWS(TTL))),MATCH(TTL,TTL,0)),ROWS($1:1))),"",INDEX(TTL,SMALL(IF(MATCH(TTL,TTL,0)=ROW(INDIRECT("1:"&ROWS(TTL))),MATCH(TTL,TTL,0)),ROWS($1:1))))

ctrl+shift+enter, not just enter
copy down as far as needed

In E2:
=IF(ISERR(SMALL(IF(TTL=$D2,ROW(INDIRECT("1:"&ROWS(VAL)))),COLUMNS($E:E))),"",INDEX(VAL,SMALL(IF(TTL=$D2,ROW(INDIRECT("1:"&ROWS(VAL)))),COLUMNS($E:E))))

ctrl+shift+enter, not just enter
copy across and down as far as needed



"Matt" wrote:

> I have some data in the following format:
> TTL VAL
> A 1
> A 2
> A 3
> B 1
> B 2
> B 3
> C 1
> C 2
> C 3
> and i want it into this format...
> A 123
> B 123
> C 123
>
> any suggestions. the only reason this is so difficult is becasue i need to
> do it a formula as i have over 300 000 records over 4 different excel
> worksheets.
>
> Thnx
>
> -Matt

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When I special paste and transpose.... =?Utf-8?B?c21s?= Microsoft Excel New Users 4 12th Jan 2006 12:49 AM
Need help with Transpose paste special Paul Microsoft Excel Programming 4 5th Dec 2004 10:00 PM
transpose paste special not available rabz Microsoft Excel Worksheet Functions 1 10th Oct 2004 07:24 PM
Paste Special - Transpose Bonnie Microsoft Excel Worksheet Functions 6 23rd Apr 2004 05:20 PM
Paste Special - Transpose Bonnie Microsoft Excel Worksheet Functions 10 5th Apr 2004 07:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:44 AM.