Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Transpose and remove blanks

I have a survey results workbook. Each time we receive a response, the
values from the response are pasted into a new column on the "Results"
worksheet.

I need to transpose one row of values on a "Results" sheet into a column of
entries on a "Summary" sheet. The range of values in the source row will
change regularly but when another value is entered, I want a new Row the
"Summary" sheet.

The challenge is that there are blank cells in the "Results" sheet source
row, which I do NOT want in the Summary sheet.

Example: On the Results sheet, I have 40 columns, 32 of which have values
in them. I have a "Summary" sheet, where I need each of the 32 values,
listed in a column.

Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Transpose and remove blanks

Sub copyLastRow()
Dim rng as Range, rng1 as Range
With worksheets("Results")
set rng = .cells(rows.count,1).End(xlup)
set rng1 = .cells(rng.row,"IV").end(xltoLeft
set rng = Range(rng,rng1)
End with
with worksheets("Summary")
set rng1 = .Cells(1,"IV").End(xltoLeft).offset(0,1)
End with
rng.copy
rng1.pastespecial Paste:=xlPasteAll, Transpose:=True
end sub

--
Regards,
Tom Ogilvy


"KarenB" wrote:

I have a survey results workbook. Each time we receive a response, the
values from the response are pasted into a new column on the "Results"
worksheet.

I need to transpose one row of values on a "Results" sheet into a column of
entries on a "Summary" sheet. The range of values in the source row will
change regularly but when another value is entered, I want a new Row the
"Summary" sheet.

The challenge is that there are blank cells in the "Results" sheet source
row, which I do NOT want in the Summary sheet.

Example: On the Results sheet, I have 40 columns, 32 of which have values
in them. I have a "Summary" sheet, where I need each of the 32 values,
listed in a column.

Any help would be appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
remove duplicates except blanks jat Excel Worksheet Functions 2 December 11th 09 12:25 PM
remove blanks using formula Gotroots Excel Worksheet Functions 5 December 9th 09 10:52 AM
transpose without 0's and blanks ali Excel Discussion (Misc queries) 2 July 19th 07 02:20 AM
Remove blanks freddie mac Excel Programming 1 July 6th 06 10:40 AM
Remove blanks from list via VBA TheRobsterUK[_8_] Excel Programming 3 November 17th 05 06:10 AM


All times are GMT +1. The time now is 09:34 AM.

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

About Us

"It's about Microsoft Excel"