Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Excel - Fill empty cells

I have an EXCEL file which consists of two worksheets (1 & 2).
Data input into WS1 is transferred (by means of macro) and transposed in WS 2.
e.g. Sheet 1 entries
D E
11 Name Smith
12 First name Michael
13 Country UK
14 Age 26
and a new record
D E
11 Name Brown
12 First name Susan
13 Country
14 Age 21

become

Sheet 2
A B C
D
1 Smith Michael UK 26
2 Brown Susan 21

However, if a cell is left empty on Sheet 1 (E13 above), the info from the
next cell in that column automatically moves into the empty cell (C2 on sheet
2).

Assing
D E
11 Name Jones
12 First name Richard
13 Country Germany
14 Age 28

gives

Sheet 2
A B C
D
1 Smith Michael UK 26
2 Brown Susan Germany 21
3 Jones Richard 28

I either need to put a 'space' as a place holder in the empty cell (Sheet 1
E13) thus making it think there is something in that cell or format Sheet 2
so that any 'empty' cells are filled with a 'blank' placeholder.
Hope this is clear and that someone can help.
Thanks for a brilliant forum
RG
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 146
Default Excel - Fill empty cells

I used the TRANSPOSE function and got the following results
A B C D
1 Smith Michael UK 26
2 Brown Susan 21
3 Jones Richard Germany 28


I have no idea what you're doing in your macro.


"Yendorian" wrote in message
...
I have an EXCEL file which consists of two worksheets (1 & 2).
Data input into WS1 is transferred (by means of macro) and transposed in
WS 2.
e.g. Sheet 1 entries
D E
11 Name Smith
12 First name Michael
13 Country UK
14 Age 26
and a new record
D E
11 Name Brown
12 First name Susan
13 Country
14 Age 21

become

Sheet 2
A B C
D
1 Smith Michael UK 26
2 Brown Susan 21

However, if a cell is left empty on Sheet 1 (E13 above), the info from the
next cell in that column automatically moves into the empty cell (C2 on
sheet
2).

Assing
D E
11 Name Jones
12 First name Richard
13 Country Germany
14 Age 28

gives

Sheet 2
A B C
D
1 Smith Michael UK 26
2 Brown Susan Germany 21
3 Jones Richard
28

I either need to put a 'space' as a place holder in the empty cell (Sheet
1
E13) thus making it think there is something in that cell or format Sheet
2
so that any 'empty' cells are filled with a 'blank' placeholder.
Hope this is clear and that someone can help.
Thanks for a brilliant forum
RG



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 146
Default Excel - Fill empty cells

Nothing like having the software remove my spaces
I used the TRANSPOSE function and got the following results


A1 = Smith, B1 = Michael, C1 =UK, D1 =26
A2 = Brown, B2 = Susan, C2 = Empty cell, D2 =21
A3 = Jones, B3 =Richard, C3 = Germany, D3 = 28

I have no idea what you're doing in your macro.

"Yendorian" wrote in message
...
I have an EXCEL file which consists of two worksheets (1 & 2).
Data input into WS1 is transferred (by means of macro) and transposed in
WS 2.
e.g. Sheet 1 entries
D E
11 Name Smith
12 First name Michael
13 Country UK
14 Age 26
and a new record
D E
11 Name Brown
12 First name Susan
13 Country
14 Age 21

become

Sheet 2
A B C
D
1 Smith Michael UK 26
2 Brown Susan 21

However, if a cell is left empty on Sheet 1 (E13 above), the info from the
next cell in that column automatically moves into the empty cell (C2 on
sheet
2).

Assing
D E
11 Name Jones
12 First name Richard
13 Country Germany
14 Age 28

gives

Sheet 2
A B C
D
1 Smith Michael UK 26
2 Brown Susan Germany 21
3 Jones Richard
28

I either need to put a 'space' as a place holder in the empty cell (Sheet
1
E13) thus making it think there is something in that cell or format Sheet
2
so that any 'empty' cells are filled with a 'blank' placeholder.
Hope this is clear and that someone can help.
Thanks for a brilliant forum
RG



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Excel - Fill empty cells

Hi Dave,
Thanks for the reply.
I can do the transfer manually using the TRANSPOSE option - no problem. what
I want id for one person to enter the data on sheet 1 and have nothing to do
with sheet 2 where I do the calcualtions etc.

This is the code i am using to transfer the records from sheet 1 to sheet 2
Sub test()
Application.ScreenUpdating = False


Sheets(1).Range("e6").Copy
Sheets(2).Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial

This is asiple code offered by another contributor to the forum.
Rodney

"Dave Thomas" wrote:

Nothing like having the software remove my spaces
I used the TRANSPOSE function and got the following results


A1 = Smith, B1 = Michael, C1 =UK, D1 =26
A2 = Brown, B2 = Susan, C2 = Empty cell, D2 =21
A3 = Jones, B3 =Richard, C3 = Germany, D3 = 28

I have no idea what you're doing in your macro.

"Yendorian" wrote in message
...
I have an EXCEL file which consists of two worksheets (1 & 2).
Data input into WS1 is transferred (by means of macro) and transposed in
WS 2.
e.g. Sheet 1 entries
D E
11 Name Smith
12 First name Michael
13 Country UK
14 Age 26
and a new record
D E
11 Name Brown
12 First name Susan
13 Country
14 Age 21

become

Sheet 2
A B C
D
1 Smith Michael UK 26
2 Brown Susan 21

However, if a cell is left empty on Sheet 1 (E13 above), the info from the
next cell in that column automatically moves into the empty cell (C2 on
sheet
2).

Assing
D E
11 Name Jones
12 First name Richard
13 Country Germany
14 Age 28

gives

Sheet 2
A B C
D
1 Smith Michael UK 26
2 Brown Susan Germany 21
3 Jones Richard
28

I either need to put a 'space' as a place holder in the empty cell (Sheet
1
E13) thus making it think there is something in that cell or format Sheet
2
so that any 'empty' cells are filled with a 'blank' placeholder.
Hope this is clear and that someone can help.
Thanks for a brilliant forum
RG




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
Macro Request: Fill in empty cells with previous Filled cell in column Artis Excel Worksheet Functions 2 June 25th 07 08:30 PM
I need to fill only empty cells in a database with a symbol. SMC Excel Discussion (Misc queries) 2 April 24th 07 04:28 PM
fill cell value to the next empty row adey v. Excel Discussion (Misc queries) 2 November 15th 05 01:47 AM
Fill-in empty cells from SAP report Ilieski Excel Worksheet Functions 3 September 14th 05 12:55 PM
Excel - Autom. Filter "Empty / Non Empty cells" should come first Rom Excel Discussion (Misc queries) 0 August 10th 05 04:32 PM


All times are GMT +1. The time now is 05:49 PM.

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

About Us

"It's about Microsoft Excel"