• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Count numbers where the heading partially matches

prasaddn

Active Member
Hi All,

I used to write formulas for such requirements and it is being quite some time and l lost touch. I remember using array formulas - sumproduct, mmult etc but not able to get the right combination now. :(

I need formula for the below scenario.
count no of columns where we have numbers and heading has "Marketing New Change". Sample attached.

first Marketing New Change​
First Internal Change​
Second Marketing New Changes​
random Column/s​
forth Marketing New Changes​
forth Internal Changes​
fifth Marketing New Changes​
Need Formula
Actual Required Answer​
Scenario 1
2​
2​
2​
1​
3​
Scenario 2
2​
2​
05-08-2021​
4​
3​
2​
3​
Scenario 3
2​
2​
05-08-2021​
3​
2​
2​
Scenario 4
2​
05-08-2021​
3​
1​
Scenario 5
4​
2​
05-08-2021​
4​
5​
2​

Kindly help.
Regards,
Prasad DN
 

Attachments

  • Scenarios.xlsx
    10.3 KB · Views: 1
LOL :D yes, I just realized it as well.

thank you.

Regards,
Prasad DN
 

Attachments

  • Scenarios.xlsx
    10.7 KB · Views: 2
If you want to use array formulae,
Code:
= LET(
  filter, --TRANSPOSE(ISNUMBER(FIND("Marketing New Change", Heading))),
  array,  --ISNUMBER(data),
  MMULT(array, filter) )
would give the same result as a dynamic array. Finding the string in the header is not especially elegant though.
 

Attachments

  • Scenarios.xlsx
    11.9 KB · Views: 2
Back
Top