PC Review


Reply
Thread Tools Rate Thread

Blacnk Cells in Excel

 
 
KW
Guest
Posts: n/a
 
      13th Apr 2007
I have a document that looks like this?


Table of students who have chosen physics as a primary choice 1.

ID Primary Choice Secondary Choice Programs
515 1 2 math
3 english
6 spanish


I am trying to create a pivot table that breaks out the primary choice
(first column), them the primary choice(second column) and then progrm
name - the count will be on student ID.

As it is, I first have to fill down the records so that I end up with
this:
ID Primary Choice Secondary Choice Programs
515 1 2 math
515 1 3 english
515 1 6 spanish

Then create the pivot table.

The file has about 10000 student IDs and this is very time consuming,
is there a better way to do this?

Thanks

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmF5?=
Guest
Posts: n/a
 
      13th Apr 2007
Hi KW -

Here is a "gap-filling" procedure that has been posted in this Discussion
Group before. Copy it to a standard module, select your Primary Choice
column, and run the procedure.

Sub fill_in_the_blanks()
Dim r As Range
For Each r In Selection
If IsEmpty(r.Value) Then
r.Value = r.Offset(-1, 0).Value
End If
Next
End Sub

--
Jay


"KW" wrote:

> I have a document that looks like this?
>
>
> Table of students who have chosen physics as a primary choice 1.
>
> ID Primary Choice Secondary Choice Programs
> 515 1 2 math
> 3 english
> 6 spanish
>
>
> I am trying to create a pivot table that breaks out the primary choice
> (first column), them the primary choice(second column) and then progrm
> name - the count will be on student ID.
>
> As it is, I first have to fill down the records so that I end up with
> this:
> ID Primary Choice Secondary Choice Programs
> 515 1 2 math
> 515 1 3 english
> 515 1 6 spanish
>
> Then create the pivot table.
>
> The file has about 10000 student IDs and this is very time consuming,
> is there a better way to do this?
>
> Thanks
>
>

 
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
Number Cells skip blank cells, Excel 2000 & 2003 jfcby Microsoft Excel Programming 4 31st Jul 2007 03:02 PM
How can I have formatting options like merge cells ,Bold,active for the unlocked cells of the protected worksheet.Is it possible in excel? divya Microsoft Excel Programming 2 20th Jul 2006 02:04 PM
Urgent .... How to split cells in Excel... Working with Tables and Cells at a time Vanga Sasidhar Microsoft Excel Discussion 1 11th Feb 2006 04:54 PM
Excel: match two cells in one sheet to two cells in another and return a third cells value Spence Microsoft Excel Worksheet Functions 2 19th Jul 2005 04:19 AM
looking at a blacnk cell and need to do and if statement mkrieger Microsoft Excel Misc 2 13th Sep 2004 01:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:11 AM.