I need a function to search my spreadsheet for which there will be multiple arrays. I need the search to include all the cells in between two specific headers throughout the spreadsheet but only sum certain cells between these headers from respective data.
{'A':['dog','cat','dog','dog'],
'B':[4,2,1,2],
'C':['dog'],
'D':[3],
}
Per this example, I need the function to search the 1st column for any cells located in between header "A" and "B". Then I need the function to pick out the cells named "dog" and sum the totals (7).