Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default duplicate data, if command in VBA


Looking for some help with duplicate data. I have data in a table wher
the values in column (B) may repeat. Column (B) is a job number.
Column (C) is the number of hours charged to that Job. If the Jo
takes more than 8 hours there will be two records. In some cases
there are several records (job takes 100 hours). I can sort the tabl
by column (B) so all like job numbers are next to one another. How t
I get excel to recognize the duplicates in column B and sum th
corresponding data in column (C). I want to see the total hours fo
each job number.

Thanks

--
VB12
-----------------------------------------------------------------------
VB123's Profile: http://www.excelforum.com/member.php...fo&userid=2816
View this thread: http://www.excelforum.com/showthread.php?threadid=47689

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default duplicate data, if command in VBA

Hi VB123

I suggest you use sheet1 for all the registrations.
On sheet2 in column A list all the used numbers from column B of sheet1
only ones.
In column B of sheet2 you insert the formula
=SUMIF(Sheet1!B:B, A1, Sheet1:C:C)

Change the format for Column B of Sheet2 into "[h]:mm" to keep all
the hours shown.
Otherwise you will get the results in full days of 24 hours.

Hoop That Helps,

Wouter Magré.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default duplicate data, if command in VBA


Excel isn't recognizing that formula. It says there is an error in m
formula and highlights 3dsumif. Is there something special I need t
do

--
VB12
-----------------------------------------------------------------------
VB123's Profile: http://www.excelforum.com/member.php...fo&userid=2816
View this thread: http://www.excelforum.com/showthread.php?threadid=47689

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default duplicate data, if command in VBA

In your reply I see 3dsumif.

It should be

=SUMIF

so beginning with the equals sign.

Look up the SUMIF function in your helpfile.

Wouter Magré

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default duplicate data, if command in VBA

Do you use commas as a list separator or semi colon. If semi colon, change
the formula to

=SUMIF(Sheet1!B:B; A1; Sheet1:C:C)

in either case, make sure the formula is not located in column B or C.

--
Regards,
Tom Ogilvy


"VB123" wrote in
message ...

Excel isn't recognizing that formula. It says there is an error in my
formula and highlights 3dsumif. Is there something special I need to
do?


--
VB123
------------------------------------------------------------------------
VB123's Profile:

http://www.excelforum.com/member.php...o&userid=28166
View this thread: http://www.excelforum.com/showthread...hreadid=476893





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Button to make multiple duplicate worksheets Roxy Excel Worksheet Functions 0 February 13th 08 06:58 PM
identify duplicate data upon entry of that data Jan Buckley Excel Discussion (Misc queries) 5 December 21st 06 10:11 PM
comparing lists of data to remove duplicate data Tom Excel Discussion (Misc queries) 2 October 13th 05 06:16 PM
how can i locate duplicate data in an excel data table? neil Excel Worksheet Functions 6 February 14th 05 12:01 AM
Scanning for Duplicate Data in a Column, Merging Data and Finally Removing All Duplicates...? : VB : Excel Programming 2 August 24th 03 02:22 PM


All times are GMT +1. The time now is 05:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"