473,466 Members | 1,381 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Time spreading for tasks using macros

1 New Member
Hi,

I'm trying to create macros for an excel sheet, where i have different actions required for different tasks, each action has its own individual time, I place a "X" in the cell underneath each action and sum up all cells containing an "X" at the end.
So that when I place an X in say 4 cells and each cell will be related to a time in seconds or minutes, how can I add these 4 values and display the total time these actions would require?
The tasks are going down in column and the actions are going across the rows.

As I have not had a lot of experience with VB can anyone suggest a possible method for this,
I tried using simple IF statements eg, =if(B4=="X",AA4,) where i was placing the time in cell AA4, but as I have well over 100 tasks this could get v. messy!
and I dont know how to link a cell to a time value where the X is placed.


Any help would be appreciated.
Derek
Jun 22 '07 #1
1 914
Killer42
8,435 Recognized Expert Expert
My Excel VBA syntax is a bit rusty. But in concept, you should be able to use a loop to go down the column with the Xs, and for each one you hit, use the Offset() function to pick up the corresponding time value.
Jun 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

77
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
5
by: Erich Schreiber | last post by:
In the Python Library Reference the explanation of the time.sleep() function reads amongst others: > The actual suspension time may be less than that requested because > any caught signal will...
2
by: G | last post by:
I am trying to duplicate the printing of a shortcut-print of an access report in my NT Scheduled Tasks. I can now print the report manually very easily by right-clicking on a shortcut to the access...
1
by: poohnie08 | last post by:
i have a excel spreadsheet showing staff name, date,work hour, ot hour, slot1, slot2, slot3, slot4 and others). The "()" will keep repeating from day 1 until end of month. eg in excel spreadsheet,...
13
by: Steve Jorgensen | last post by:
Does this sound familliar to anyone? Regardless of the fact that you have been programming in Access for umpteen years, you still are overly optimistic when it comes to estimating time. The...
3
by: Shawn Yates | last post by:
I have a database that I am using as a Time clock where employees can clock in and out. Is there a way to make it so that when they clock out a form would open displaying their work day hour by...
11
by: Joseph S. | last post by:
Hi all, how do I avoid typing the keyword "$this->" every time I need to reference a member of a class inside the class? (coming from a world of cozy auto-complete enabled Java / .Net IDEs I...
3
by: ross182 | last post by:
I need to be able to figure out how many minutes it takes an employee to perform a set of tasks. My employees always start thier job at 5AM and complete, say 20 tasks by 7AM, then move to another...
11
by: xenoix | last post by:
hey there, im reasonably new to C# and im currently writing a backup application which im using as a learning resource. My PC :- Visual Studio 2005 .NET Framework 2 Component Factory Krypton...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.