Ugh! I can't seem to crack this no matter how hard I try and how much I search. If anyone has a good idea or solution, could you please help?
I'm trying to find a way to summarize a work breakdown structure. I have a single column of data and as many formula columns as I need. Possible entries into the data column include word Top, the abbreviation DCM, or a blank. The page might lay out like this with a bunch of blank cells smattered throughout the column...
Data: WBS1: WBS2:
Top 1
DCM 1
DCM 2
Top 2
DCM 1
DCM 2
DCM 3
Top 3
DCM 1
DCM 2
etc.....
I can keep track of the Tops no problem (=COUNTIFS(AA8:$AA$574,"Top"). In the next column I'm trying to write a formula that will count the DCMs. I need to assign a unique sequential number to each DCM that falls under that particular Top. Once the next Top starts, the DCM count needs to reset to zero.
I've been trying to use something like this...
=COUNTIF(INDIRECT("Aa1:A"&MATCH("TOP",AA4:AA571,0)-1),"DCM")
Also tried this...
=COUNTIF(AA4:INDIRECT("A"&MATCH("TOP",AA4:AA571,0)-1),"DCM")
Any ideas?
____________________
Mike
I'm trying to find a way to summarize a work breakdown structure. I have a single column of data and as many formula columns as I need. Possible entries into the data column include word Top, the abbreviation DCM, or a blank. The page might lay out like this with a bunch of blank cells smattered throughout the column...
Data: WBS1: WBS2:
Top 1
DCM 1
DCM 2
Top 2
DCM 1
DCM 2
DCM 3
Top 3
DCM 1
DCM 2
etc.....
I can keep track of the Tops no problem (=COUNTIFS(AA8:$AA$574,"Top"). In the next column I'm trying to write a formula that will count the DCMs. I need to assign a unique sequential number to each DCM that falls under that particular Top. Once the next Top starts, the DCM count needs to reset to zero.
I've been trying to use something like this...
=COUNTIF(INDIRECT("Aa1:A"&MATCH("TOP",AA4:AA571,0)-1),"DCM")
Also tried this...
=COUNTIF(AA4:INDIRECT("A"&MATCH("TOP",AA4:AA571,0)-1),"DCM")
Any ideas?
____________________
Mike