LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Can I use a Reference inside a SUMIF or COUNTIF Function?

Hello,

A slightly different query for you..

I'm trying to use a countif on a particular "calendar", which shows days
across the sheet and named individuals down the sheet. The main content
shows what piece of work day by day each person is planned to be working on.
All "task" values entered are selected from drop-down lists the data for
which are sourced from a separate range in a second sheet (call it Jobs for
argument's sake).. so for example:

10/05 11/05 12/05 13/05
name1 defects defects defects P2 Build
name2 P1 Build CCR123 CCR123 P1 Build
name3 CCR49 CCR49 P2 Build P2 Build

We currently use some summary COUNTIF functions at the bottom of the first
worksheet to sum up:
- the number of people in a given day working on Project 1 build;
- the number of people working on Project 2 build;
- the number of people working on defects etc.

But some of the work (e.g. change control requests (CCRs)) may relate to P1
build or P2 build. So what I want to do (rather than amending the formula
throughout the year as new CCRs come in) is for each daily column, count up
all entries that show "P1 Build" AND in the same formula count any CCRs which
are categorised as "P1 Build" in the lookup table on the "Jobs" tab.

The range on the second tab looks like this:

Deliverable Workstream
CCR123 P1 Build
CCR456 P2 Build
CCR789 P1 Build
CCR889 etc. P2 Build
defects defects

etc.

The formula I'm currently trying (which is failing to do the lookup) is as
follows:

=COUNTIF(CW7:CW76,"P2 Build") +
COUNTIF(CW7:CW76,VLOOKUP(CW7:CW76,Jobs!A59:A122,2, FALSE)&"=P2 Build")

So count all instances of "P2 Build" in the main sheet, range CW7:CW76.
Add to this any entries from the main sheet for which the second column on
the Jobs sheet is set to "P2 Build".

Any suggestions appreciated...

Thank you

Glyn
 
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
How do I use the TODAY function with the SUMIF function? Lisa B. Excel Worksheet Functions 2 September 30th 05 08:51 PM
Could the "Criteria" in COUNTIF function be a cell reference? JohnSheenWSN Excel Worksheet Functions 2 June 16th 05 08:07 PM
MIN Function w/ variable address reference WLMPilot Excel Worksheet Functions 7 June 10th 05 07:56 PM
Lookup function returning reference, not value Caligula Excel Worksheet Functions 1 May 28th 05 06:35 PM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:12 PM


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