close

ok, this is way over my head...maybe even impossible, but here's what
i'm trying to accomplish. I want 4 different columns as shown below.
In the quot;Timequot; and quot;Ticketquot; colums i'll track the total amount of time i
spend on any given ticket. There may be repeat entries for a ticket. In
the totals column I'd *like* it to automatically add an instance for
each unique ticket dynamically. So, even though i have ticket #123
entered 3 times, it only shows it once. To make it more difficult, i
then want to sum the time for all instances of #123 and place it in the
column to the right...does that make any sense? Hope this helps...

TIME TICKET TOTALS
------ -------- --------- -------
0:30 #123 #123 4:45
1:15 #123 #456 1:00
3:00 #123
1:00 #456
0:15 #456--
bcamp1973
------------------------------------------------------------------------
bcamp1973's Profile: www.excelforum.com/member.php...oamp;userid=32268
View this thread: www.excelforum.com/showthread...hreadid=539972Have you tried using the 'subtotals' command?
you can go 'data'....'subtotals' then subtotal at each change in ticket, and
subtotal the 'time'
It won't end up looking exactly as you have shown in your example but it
should do what you want it to do.quot;bcamp1973quot; wrote:

gt;
gt; ok, this is way over my head...maybe even impossible, but here's what
gt; i'm trying to accomplish. I want 4 different columns as shown below.
gt; In the quot;Timequot; and quot;Ticketquot; colums i'll track the total amount of time i
gt; spend on any given ticket. There may be repeat entries for a ticket. In
gt; the totals column I'd *like* it to automatically add an instance for
gt; each unique ticket dynamically. So, even though i have ticket #123
gt; entered 3 times, it only shows it once. To make it more difficult, i
gt; then want to sum the time for all instances of #123 and place it in the
gt; column to the right...does that make any sense? Hope this helps...
gt;
gt; TIME TICKET TOTALS
gt; ------ -------- --------- -------
gt; 0:30 #123 #123 4:45
gt; 1:15 #123 #456 1:00
gt; 3:00 #123
gt; 1:00 #456
gt; 0:15 #456
gt;
gt;
gt; --
gt; bcamp1973
gt; ------------------------------------------------------------------------
gt; bcamp1973's Profile: www.excelforum.com/member.php...oamp;userid=32268
gt; View this thread: www.excelforum.com/showthread...hreadid=539972
gt;
gt;


bcamp1973:

Here are a couple ideas:

1)Use a Pivot Table to summarize total time per ticket.
Set the function in the DATA area to Sum of Time
Custom Number Format the Sum of Time column in the Pivot Table as:
[h]:mm:ss

OR

With your sample data in A1:B7

C2: #123
D2: =SUMIF($B$1:$B$10,$C2,$A$1:$A$10)
Custom Number Format that cell as: [h]:mm:ss

Do either of those give you something to work with?

Regards,
Ron--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: www.excelforum.com/member.php...oamp;userid=21419
View this thread: www.excelforum.com/showthread...hreadid=539972
Hi Ron, thanks for the feedback. I don't know much about pivot tables so
i'm using your second suggestion. That's definitely a good start.
Ideally i'd like to show the total just once instead of next to each
instance, but this will hold me over...unless you have a suggestion of
that of course

Cheers,
Brian--
bcamp1973
------------------------------------------------------------------------
bcamp1973's Profile: www.excelforum.com/member.php...oamp;userid=32268
View this thread: www.excelforum.com/showthread...hreadid=539972
I think a Pivot Table would be the easiest approach, but since you
prefer the formulas...See if this works for you:

In the example I previously posted, the formula in D2 calculates the
total time in Col_A where the Col_B value matches C2. For that
approach to work for all unique Col_B values, you'd need a list of
those values. I'd use an Advanced Filter to build that list:

C1: TICKET (the same value as B1)
Select your data in columns A and B, including the column titles in
Row_1.

lt;datagt;lt;filtergt;lt;advanced filtergt;
Check: Copy to another location
Check: Unique records only
List Range: (your already selected data)
Criteria Range: (leave this blank)
Copy To: $C$1
Click [OK]

That will create a list of unique Col_B values under C1

Now, copy the previously posted D2 formula down as far as you need it.

Does that help?

Regards,
Ron--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: www.excelforum.com/member.php...oamp;userid=21419
View this thread: www.excelforum.com/showthread...hreadid=539972

全站熱搜
創作者介紹
創作者 software 的頭像
software

software

software 發表在 痞客邦 留言(0) 人氣()