Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Business Applications Business Applications
Search Search
Search for:
Tech Support Guy > > >

Solved: Excel Question - Autopopulate Cells


(!)

Logit's Avatar
Logit Logit is offline
Member with 41 posts.
THREAD STARTER
 
Join Date: Nov 2005
Experience: Intermediate
27-Jun-2012, 09:19 PM #1
Smile Solved: Excel Question - Autopopulate Cells
I have a .csv file that can be dropped into Excel (see attached - "January Example for Email"). Look at column "F - Study Date Time". I need to auto populate that column of information, separated by total number of entries for a particular hour, into a second spreadsheet (see attached - "CT Exam Hourly Matrix").

Looking at "January Example for Email", column "F", the first entry is "1/1/2012 1:24". On that date, from the 1:00 - 2:00 hour (using 24 hr military time), there is one (1) entry to autopopulate into "CT Exam Hourly Matrix" B:3. The second entry in "January Example for Email", column "F" is "1/1/2012 10:43". So there is one (1) entry to autopopulate into "CT Exam Hourly Matrix" B:12.

Column/Row F:19 & 20 in "January Example for Email" has two (2) entries for that hour to be autopopulated into "CT Exam Hourly Matrix" C:18.

Therefore, the total number of entries for a specific hour will be tallied (sum) and transferred to the second spreadsheet in the appropriate column & row.

Is there a means to automate this process using only Excel or VBA or ??? I apologize for being completely Excel "challenged" and would be most grateful for your assistance. I have no idea what I am doing or how to do it. This is strictly a job related / personal need project to make my daily life sane again.

Thank you !
Attached Files
File Type: xlsx CT Exam Hourly Matrix.xlsx (19.1 KB, 31 views)
File Type: xlsx January Example for Email.xlsx (68.6 KB, 30 views)
Garf13LD's Avatar
Garf13LD Garf13LD is offline
Member with 455 posts.
 
Join Date: Apr 2012
Experience: Intermediate
28-Jun-2012, 05:48 AM #2
I have formatted row one for you.
Will do the macro when I have time over the weekend.
Attached Files
File Type: xlsm CT Exam Hourly Matrix.xlsm (24.4 KB, 39 views)
Logit's Avatar
Logit Logit is offline
Member with 41 posts.
THREAD STARTER
 
Join Date: Nov 2005
Experience: Intermediate
28-Jun-2012, 06:49 AM #3
Thank you SO MUCH for your assistance.
Garf13LD's Avatar
Garf13LD Garf13LD is offline
Member with 455 posts.
 
Join Date: Apr 2012
Experience: Intermediate
30-Jun-2012, 07:01 AM #4
Done
Attached Files
File Type: xlsm CT Exam Hourly Matrix.xlsm (35.7 KB, 33 views)
Logit's Avatar
Logit Logit is offline
Member with 41 posts.
THREAD STARTER
 
Join Date: Nov 2005
Experience: Intermediate
30-Jun-2012, 08:18 AM #5
The file generates a security warning indicating the macro is corrupt and has been deleted. What do you advise ?
Keebellah's Avatar
Keebellah   (Hans) Keebellah is offline Keebellah is a Trusted Advisor with special permissions. Keebellah has a Profile Picture
Computer Specs
Trusted Advisor with 5,246 posts.
 
Join Date: Mar 2008
Location: Oegstgeest, The Netherlands
Experience: Advanced
30-Jun-2012, 04:34 PM #6
download the file again, I had the same issue with the first download
Logit's Avatar
Logit Logit is offline
Member with 41 posts.
THREAD STARTER
 
Join Date: Nov 2005
Experience: Intermediate
30-Jun-2012, 06:47 PM #7
The error persists. Is there something I should be doing or should not be doing when opening the file?

This is the recovery log comments:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<logFileName>error093840_01.xml</logFileName>
<summary>Errors were detected in file 'C:\Documents and Settings\My.MY-D4B893EDCA37\Desktop\CT Exam Hourly Matrix.xlsm'</summary>
- <removedParts summary="Following is a list of removed parts:">
<removedPart>Removed Part: /xl/vbaProject.bin part. (Visual Basic for Applications (VBA))</removedPart>
</removedParts>
</recoveryLog>
Keebellah's Avatar
Keebellah   (Hans) Keebellah is offline Keebellah is a Trusted Advisor with special permissions. Keebellah has a Profile Picture
Computer Specs
Trusted Advisor with 5,246 posts.
 
Join Date: Mar 2008
Location: Oegstgeest, The Netherlands
Experience: Advanced
01-Jul-2012, 04:06 AM #8
I have no idea, probably a system restriction on your system.
It works perfect here (opening the file an so) using Excel 2010
Have you saved the file to disk before nopening it?
Logit's Avatar
Logit Logit is offline
Member with 41 posts.
THREAD STARTER
 
Join Date: Nov 2005
Experience: Intermediate
01-Jul-2012, 08:17 AM #9
The file is saved on my desktop. I've tried moving the file to the folder where the source excel file is located also (the file from which the data is obtained to be sorted). No go.

I wonder if it would make a difference to have the source code typed in on my system ? That would require step by step instructions for me to complete.
Zack Barresse's Avatar
Computer Specs
Member with 5,434 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
16-Jul-2012, 02:02 PM #10
Hi there,

About your original question, we need some information. How are you wanting to start the process of moving ("autopopulating") the information? The term "autopopulate" would incur some action is needed to start this process. We can make this any way you want. Should this happen automatically? If so, what should start it? You hitting a button? When the file is closed?

Some additional questions:
  • Will this file always be the same, or will it be a different source file?
  • Will the data lawyas be in column F? If not, will the header always be the same?
  • Will the data format always be the same, date & time?
  • Are there any other restrictions, i.e. Status, etc?
  • Will it always be the first worksheet in the source file? If not, what name or position will it be?
  • Will the destination file always be the same? What about different months/years?
  • Will 2007 be the lowest version this will be used on?

As for the security, make sure the file is in a trusted location (Office button [top-left round button], Options, Trust Center, Trust Center Settings..., Trusted Locations), and on your Macro Settings (in Options), you have the checkbox checked of Trust access to the VBA project object model.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑