Sum values based on certain letters in another column
Hello
1. I'd like some help with devising a formula that sums certain values depending on the presence of 'coding' letters in another cell.
Essentially I have a row of information that contains several different values in individual columns. I then want to have a 'coding' cell that pertains to that particular row, where I type a certain letter or more likely letters. These letters tell provide additional information about the values in the row. I want to sum certain columns based on the presence of certain letters in the 'coding' cell, however my current use of the SUMIF formula (e.g. SUMIF(g4:g6,"=m",a4:a6" only sums values in a4:a6 if ONLY the letter 'm' is found in g4:g6 - whereas I need the formula to hunt out the letter 'm' even if there are other letters in the same cell with it - e.g. cell g6 which contains 'mr'
2. Also, I'd like to have the spreadsheet summarise locations occurrences (frequency) and sales from each location. I may have up to 40 locations to handle - so how can I write a SUMIF type formula that takes in all the locations? Does it have to be a hug long formula that lists all 40 locations??
Hopefully someone can help!
Thanks in advance
Matthew
PS - this is just a sample spreadsheet - the real one is normally 100 rows long for each month, so I need to get the summarisation functions as automated as possible!
MacBook Air (13-inch, Early 2014), OS X El Capitan (10.11.3)