Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bassmanfranc
 
Posts: n/a
Default How do I sum scattered entries on an Excel worksheet?

I would like to be able to locate all of one type of entry on a spreadsheet
and sum the accompanying entered values. Example: Users enter mutliple
entries for SMITH job in the NAME column(A) and a value of 1.5 in the HOURS
column(B) associated with it. They do this various times on this worksheet,
but not in sequence. How can I LOCATE all of the scattered SMITH entries in
the NAME column and SUM the associated VALUES in the HOURS column, giving me
all of the hours entered for the SMITH job?
EXCEL 2002 SP3
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rawxl1
 
Posts: n/a
Default How do I sum scattered entries on an Excel worksheet?


Hi

In column C you could have a formula like :
=if(a3="SMITH",+b3," "), copy the formula
down the column to the bottom, then at the bottom
of col C you could just sum the values of the
column. You could then use the next
column to add the values for another person
so you have a total in each column giving
you the total hours for each person.

Good luck.


--
Rawxl1
------------------------------------------------------------------------
Rawxl1's Profile: http://www.excelforum.com/member.php...o&userid=30673
View this thread: http://www.excelforum.com/showthread...hreadid=503306

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default How do I sum scattered entries on an Excel worksheet?

Hi

Try something like this:
=SUMPRODUCT((A1:A1000="Smith")*--(B1:B1000))
With this function, you can't use full columns and the ranges must be the
same size.

Hope this helps.
Andy.



"bassmanfranc" wrote in message
...
I would like to be able to locate all of one type of entry on a spreadsheet
and sum the accompanying entered values. Example: Users enter mutliple
entries for SMITH job in the NAME column(A) and a value of 1.5 in the
HOURS
column(B) associated with it. They do this various times on this
worksheet,
but not in sequence. How can I LOCATE all of the scattered SMITH entries
in
the NAME column and SUM the associated VALUES in the HOURS column, giving
me
all of the hours entered for the SMITH job?
EXCEL 2002 SP3



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMCE IRELAND
 
Posts: n/a
Default How do I sum scattered entries on an Excel worksheet?

=SUMPRODUCT(('Dublin Level 3'!D3:D420=C6)*--('Dublin Level 3'!G3:G420))


The SUMPRODUCT Function also works if relates to multiple sheet ranges, see
attached.

This is just an excellent way of getting Pivot Totals instead on doing a
pivot table. You should also look at generating a Pivot Table from the Info
as this allows a drill down but the Pivot has to be refreshed all the time
but the SUMPRODUCT does not.



"Andy" wrote:

Hi

Try something like this:
=SUMPRODUCT((A1:A1000="Smith")*--(B1:B1000))
With this function, you can't use full columns and the ranges must be the
same size.

Hope this helps.
Andy.



"bassmanfranc" wrote in message
...
I would like to be able to locate all of one type of entry on a spreadsheet
and sum the accompanying entered values. Example: Users enter mutliple
entries for SMITH job in the NAME column(A) and a value of 1.5 in the
HOURS
column(B) associated with it. They do this various times on this
worksheet,
but not in sequence. How can I LOCATE all of the scattered SMITH entries
in
the NAME column and SUM the associated VALUES in the HOURS column, giving
me
all of the hours entered for the SMITH job?
EXCEL 2002 SP3




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default How do I sum scattered entries on an Excel worksheet?

=SUMIF(A:A,"SMITH",B:B)

Please don't multi-post: cross-post if you must, but just post once....

HTH,
Bernie
MS Excel MVP


"bassmanfranc" wrote in message
...
I would like to be able to locate all of one type of entry on a spreadsheet
and sum the accompanying entered values. Example: Users enter mutliple
entries for SMITH job in the NAME column(A) and a value of 1.5 in the HOURS
column(B) associated with it. They do this various times on this worksheet,
but not in sequence. How can I LOCATE all of the scattered SMITH entries in
the NAME column and SUM the associated VALUES in the HOURS column, giving me
all of the hours entered for the SMITH job?
EXCEL 2002 SP3





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Revenger
 
Posts: n/a
Default How do I sum scattered entries on an Excel worksheet?

On Fri, 20 Jan 2006 04:58:03 -0800, bassmanfranc wrote:

I would like to be able to locate all of one type of entry on a spreadsheet
and sum the accompanying entered values. Example: Users enter mutliple
entries for SMITH job in the NAME column(A) and a value of 1.5 in the HOURS
column(B) associated with it. They do this various times on this worksheet,
but not in sequence. How can I LOCATE all of the scattered SMITH entries in
the NAME column and SUM the associated VALUES in the HOURS column, giving me
all of the hours entered for the SMITH job?
EXCEL 2002 SP3


Sub FindSMITH

row = Application.WorksheetFunction.Match("SMITH","A1:A2 00", 0)
total = total + Cells(row,2).Value
Cells(1,3).Value = total

End sub

Function Match is looking for "SMITH" in the range "A1:A200" (you can
change the range to your needs) and returns the row number ...
Next you add the value of the cell in that row and column B (column index
2) to the "total" variable
Third line adds the value of total to cell C1 ( Cells(1,3) ). You can
change this also and put the "total" value where you want ...
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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel worksheet linking Shiren Excel Worksheet Functions 0 July 6th 05 05:33 PM
Rename Excel Worksheet Dragon Excel Discussion (Misc queries) 6 June 20th 05 03:19 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM


All times are GMT +1. The time now is 11:37 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"