Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > PC based Database Applications > Microsoft Excel > closing gaps on columns?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-04, 19:13
pachamama pachamama is offline
Registered User
 
Join Date: Feb 2004
Posts: 99
closing gaps on columns?

I have an Excel spreadsheet for a mailshot with coname, address, city etc and then several columns with exec1, exec2 etc up to exec30.

Assuming I only have exec1, exec2, exec3 and exec9 filled is there any way I can close the gap between exec3 and exec9.

Can't think of the techie term but basically I want to bring the gaps together to make table neater.

Any ideas how to do this much appreciated!!

Thanks,

David
__________________
pachamama
www.researchbank.co.uk
Fortune Global 500 Databank
Reply With Quote
  #2 (permalink)  
Old 09-26-04, 22:36
savbill savbill is offline
Registered User
 
Join Date: Feb 2004
Posts: 525
Quote:
Originally Posted by pachamama
Assuming I only have exec1, exec2, exec3 and exec9 filled is there any way I can close the gap between exec3 and exec9.

Can't think of the techie term but basically I want to bring the gaps together to make table neater.
Here's a few things you can do.
1. Rightclick the column header and select "Hide Column" to hide the columns you do not wish to see.

2. Use Excel's "Pivot Table" Feature to create a pivot table of your data that will show a list of companies and non-blank Exec fields for each company.

3. make a companyID field for each company then make a new sheet and list all your execs (in a list format, all in a single column vs across several columns) with the companyID to associate to a company. Then use the "Excel Filter" feature to filter just the execs for a company. You can create a macro to take the companyID as filter criteria, when you double click or click a button from your company worksheet, which then activates the Exec list worksheet with that company's execs showing.
An advantage of having a separate Execs worksheet in a list format is you can have columns for contact info, birthday, dogs name, kids name etc...
__________________
~

Bill
Reply With Quote
  #3 (permalink)  
Old 09-27-04, 11:06
pachamama pachamama is offline
Registered User
 
Join Date: Feb 2004
Posts: 99
thanks for the answer, woosh it has gone way over my head

Thanks Bill, see that solution you gave me.... woosh it has gone way over my head!!!

Have had a tinker with it but little success, the Pivot Table answer looks great but I can't get my head around it!

Will fiddle about later with it.

Thanks again,

David
__________________
pachamama
www.researchbank.co.uk
Fortune Global 500 Databank
Reply With Quote
  #4 (permalink)  
Old 09-27-04, 22:38
savbill savbill is offline
Registered User
 
Join Date: Feb 2004
Posts: 525
The pivot tables are great. But I thought about how you say the data is, and see where the pivot table will not do what I said without changing your data.

You have data like this:

Company1, Exec1, Exec2, Exec3, Exec4...
Company2, Exec1, Exec2, (blank), Exec4...

For better data handling, and effective use in pivot tables you would need data like this:

Company1, Exec1
Company1, Exec2
Company1, Exec3
Company2, Exec1
Company2, Exec2

You see how this way can eliminate the blank exec fields in this form and have room to add more than 9 execs per company? This is known as Data Normalization, one of the necessary things to know if you are going to do much database or list work. It may be worth the effort to reformat your list to work like this.

Once in a more 'Normalized' format you can use the pivot table to summerize the data. the Pivot table wizard will help you. It shows a data grid where you can drop the headers to construct the pivot table. You will put the Company and Exec Name fileds as Row Headers, and can put Exec name in the Data area of the grid to give a count of Execs per company.
__________________
~

Bill
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On