Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Use cell in calculation only if offset cell contains data

Jonnie,

SUMPRODUCT should do it

This gives the column F numbers

=SUMPRODUCT(($C$1:$C$7=2032)*($F$1:$F$7))/COUNTIF($C$1:$C$7,2032)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Jonnie" wrote in message
om...
I have an Excel spreadsheet that tracks performance numbers for
different departments. Each department is assigned a number in column
C, while columns D and E contain first name and last name
respectively. Column F contains certain perfomrance numbers. What I am
trying to do is have a cell that calculates the average performance
for each department. I want to have a sell for each departments
averages and have it only use the data in cells F through K that has
the proper department code in column C. I was looking at a nested IF
statement, but I am not sure which way to go. Below is a copy of
basically what I am dealing with. Any help would be appreciated.

John

C D E F G H I J
K
2032 Smith Don 1331 2:46 0:23 3:09 194:31:30 29:14:06
2157 Doe Matt 1665 3:22 0:38 4:00 174:19:45 26:44:11
2069 Cul Don 446 2:58 0:19 3:17 57:07:41 7:30:14
2032 Dan Larry 504 2:04 0:47 2:51 53:15:10 4:25:02
2069 Ups Michele 1470 3:16 1:02 4:18 175:03:14 33:57:50
2114 Tray Love 1710 2:05 0:33 2:38 158:09:00 21:26:35
2114 Uncle Ryan 1085 3:05 0:30 3:35 184:24:02 35:12:20
Average 1173 2:48 0:36 3:24 142:24:20 22:38:37



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
Cell naming using cell references (VBA? Offset?) StephenT Excel Discussion (Misc queries) 2 June 24th 09 07:06 PM
YTD Calculation using SUM and OFFSET dallen917 Excel Worksheet Functions 4 April 29th 09 04:52 AM
Compare Cell Values, Offset(-1,0), Offset(-1,-1), and xlFillDefaul RyGuy Excel Worksheet Functions 2 September 28th 07 10:54 PM
automatic offset cell location when there is a value in a selected cell. kuansheng Excel Worksheet Functions 0 February 23rd 06 01:40 AM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 12:05 AM


All times are GMT +1. The time now is 09:43 AM.

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

About Us

"It's about Microsoft Excel"