Clint88
New Member
I want to first say that this forum is a life saver! The solutions found at these two links have gotten me 95% to where I want to be.
http://chandoo.org/wp/2011/11/18/formula-forensics-003/
http://chandoo.org/wp/2014/11/10/formula-forensics-no-003b-lukes-reward-part-ii/
My general question is how do I add a criteria where there is multiple criteria in that column?
I have a sheet with info in columns A-J and varies between 800 and 900 rows. What I would like is to list the values from column I (Job Title) and column J (Total Hours) when the value in the correspoding cell in column C is 110, column D is 400020, and column H is ANY of the following (4863,4007,301065,CP0041,4764,2239,1791,301015,500103,CP0021,4533,4537,4538,4539,4541,SC0009,301145,301288).
I can get as far as the first two criteria using this formula derived from the above links (for column I):
=IF(COUNTIFS($C:$C,110,$D:$D,400020)<ROWS($N$6:$N6),"",(INDEX($I:$I,SMALL(IF(($C:$C=110)+($D:$D=400020)=2,ROW($C:$C)),ROW($A1)))))
The problem I run into is when I try to add in the third column criteria that has multiple choices within the column. I tried
=IF(COUNTIFS($C:$C,110,$D:$D,400020,$H:$H,{4863,4007,301065,"CP0041",4764,2239,1791,301015,500103,"CP0021",4533,4537,4538,4539,4541,"SC0009",301145,301288})<ROWS($N$6:$N6),"",(INDEX($I:$I,SMALL(IF(($C:$C=110)+($D:$D=400020)+($H:$H={4863,4007,301065,"CP0041",4764,2239,1791,301015,500103,"CP0021",4533,4537,4538,4539,4541,"SC0009",301145,301288})=3,ROW($C:$C)),ROW($A1)))))
But that doesn't return any value when plugged into a single cell and if I try to copy the formula to multiple cells at once I get "Excel ran out of resources while attempting to calculate one or more formulas. As a result, these formulas cannot be evaluated."
If anyone can please show me where I'm going wrong I would greatly appreciate it.
Help me Obi Wan Kenobi. You're my only hope!
http://chandoo.org/wp/2011/11/18/formula-forensics-003/
http://chandoo.org/wp/2014/11/10/formula-forensics-no-003b-lukes-reward-part-ii/
My general question is how do I add a criteria where there is multiple criteria in that column?
I have a sheet with info in columns A-J and varies between 800 and 900 rows. What I would like is to list the values from column I (Job Title) and column J (Total Hours) when the value in the correspoding cell in column C is 110, column D is 400020, and column H is ANY of the following (4863,4007,301065,CP0041,4764,2239,1791,301015,500103,CP0021,4533,4537,4538,4539,4541,SC0009,301145,301288).
I can get as far as the first two criteria using this formula derived from the above links (for column I):
=IF(COUNTIFS($C:$C,110,$D:$D,400020)<ROWS($N$6:$N6),"",(INDEX($I:$I,SMALL(IF(($C:$C=110)+($D:$D=400020)=2,ROW($C:$C)),ROW($A1)))))
The problem I run into is when I try to add in the third column criteria that has multiple choices within the column. I tried
=IF(COUNTIFS($C:$C,110,$D:$D,400020,$H:$H,{4863,4007,301065,"CP0041",4764,2239,1791,301015,500103,"CP0021",4533,4537,4538,4539,4541,"SC0009",301145,301288})<ROWS($N$6:$N6),"",(INDEX($I:$I,SMALL(IF(($C:$C=110)+($D:$D=400020)+($H:$H={4863,4007,301065,"CP0041",4764,2239,1791,301015,500103,"CP0021",4533,4537,4538,4539,4541,"SC0009",301145,301288})=3,ROW($C:$C)),ROW($A1)))))
But that doesn't return any value when plugged into a single cell and if I try to copy the formula to multiple cells at once I get "Excel ran out of resources while attempting to calculate one or more formulas. As a result, these formulas cannot be evaluated."
If anyone can please show me where I'm going wrong I would greatly appreciate it.
Help me Obi Wan Kenobi. You're my only hope!
Attachments
Last edited: