Page 1
Page 1
Started By
Message

Any excel gurus?

Posted on 7/9/20 at 7:58 pm
Posted by Furbs311
South Carolina
Member since Oct 2005
516 posts
Posted on 7/9/20 at 7:58 pm
Any excel gurus? Trying to figure out the best way to tally how many projects an employee has in progress. For example, I only want it to tally for a specific employee if the project start date has passed but the project end date has not. The goal is to have a quick dashboard of how many active projects an employee has so we can assign new projects based on workload. I played around with COUNTIFS but can’t seem to figure it out.




This post was edited on 7/9/20 at 8:02 pm
Posted by gizmoflak
Member since May 2007
11660 posts
Posted on 7/9/20 at 8:42 pm to
Use DATEDIF to compare the current date to starting & ending dates

Increment employee's project count when the current date falls in between the starting & ending dates
Posted by castorinho
13623 posts
Member since Nov 2010
82031 posts
Posted on 7/9/20 at 9:06 pm to
lot of ways to skin this cat, but if you're set on countifs, this should work. this will be placed next to the unique list of employees (& # of active projects), so another table. in the example below, the unique list of names is on column G

=COUNTIFS($A$2:$A$12,G1,$B$2:$B$12,"<="&$J$8,$D$2:$D$12,">"&$J$8)

A-A is employees range
G1 is first empolyee on unique list of names
B-B is start date range
D-D is end date range

J8 is a random cell in which you enter =TODAY
Posted by ELLSSUU
Member since Jan 2005
7323 posts
Posted on 7/9/20 at 9:13 pm to
Pivot with Slicers?
Posted by Furbs311
South Carolina
Member since Oct 2005
516 posts
Posted on 7/9/20 at 9:18 pm to
Not set on COUNTIF if there’s a better way. That’s just the first thing my simpleton brain gravitated towards!
Posted by LSUtigerME
Walker, LA
Member since Oct 2012
3796 posts
Posted on 7/9/20 at 10:03 pm to
Use CountIfs

= CountIfs(NameRange, “=Joe”, StartRange, “<”&Today(), EndRange, “>”&Today())

The “Today()” part is a function so it must be combined with the string using “&” inside the criteria.

ETA: You can also edit the “=Joe” part to fill out a table. Replace with “=“&TableNameCell where TableNameCell is the cell of your table with the desired name that you want to count.
This post was edited on 7/9/20 at 10:08 pm
Posted by Furbs311
South Carolina
Member since Oct 2005
516 posts
Posted on 7/10/20 at 7:59 pm to
This worked great, thanks.

New question - is there a way to do a “simple” tally between workbooks? For example, what I’m trying to do is:

Column A=contract quarter
Column B=Employee name

=countifs(‘book1’!$A:$A+’book2’!$A:$A,”contract quarter”,’book1’!$B:$B+’book2’!$B:B,”employee name”)

I built this using the function arguments box, but get an error

This post was edited on 7/10/20 at 8:01 pm
Posted by LSUtigerME
Walker, LA
Member since Oct 2012
3796 posts
Posted on 7/10/20 at 9:34 pm to
quote:

=countifs(‘book1’!$A:$A+’book2’!$A:$A,”contract quarter”,’book1’!$B:$B+’book2’!$B:B,”employee name”)

Not sure exactly what you’re trying to do, but you can’t combine ranges like that. Separate each page into its own CountIfs and add them.

=CountIfs(Book1Range, “Contract Quarter”, Book1Range, “Employee Name”) + Countifs(Book2Range, “Contract Quarter”, Book2Range, “Employee Name”)

Is that what you’re trying to do?
Posted by Furbs311
South Carolina
Member since Oct 2005
516 posts
Posted on 7/10/20 at 9:46 pm to
Yeah exactly. When I tried that earlier, it would only work if there was at least one value in each book.

For example, if “Joe” didn’t have a 3Q project in book 1, but had one in book2, the formula would return “0”. But if I assign a 3Q project to Joe in book1, the formula would then count both and return “2”. If that makes sense..
Posted by LSUtigerME
Walker, LA
Member since Oct 2012
3796 posts
Posted on 7/10/20 at 10:08 pm to
quote:

For example, if “Joe” didn’t have a 3Q project in book 1, but had one in book2, the formula would return “0”. But if I assign a 3Q project to Joe in book1, the formula would then count both and return “2”. If that makes sense..


That doesn’t make sense unless you combined them under one “CountIfs” like the formula you posted. With separate CountIfs it will evaluate each page independently. It’s like having a CountIfs in a cell on each page, and then just adding the numbers.

Use the Formula tab and the Evaluate/“Step Into” function. It should result in 1+0 in that scenario.
Posted by Furbs311
South Carolina
Member since Oct 2005
516 posts
Posted on 7/13/20 at 1:11 pm to
Not sure how to google this - can two cells be the “same”?

For example, if I put “Joe” in A1, it changes B1 to “Joe”. But if I put “Tim” in B1, it changes A1 to “Tim”.
Posted by Korkstand
Member since Nov 2003
28708 posts
Posted on 7/13/20 at 1:35 pm to
quote:

Not sure how to google this - can two cells be the “same”?

For example, if I put “Joe” in A1, it changes B1 to “Joe”. But if I put “Tim” in B1, it changes A1 to “Tim”.

Mirror cells so that a change in either cell updates the other
Posted by Furbs311
South Carolina
Member since Oct 2005
516 posts
Posted on 7/13/20 at 1:38 pm to
Mirror! That’s the word I was looking for
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram