Hi Kevin:
Your data structures were too ambiguous to be understood. How about providing a bit more substance.
Kevin (too)
Hi,
What you've got here is a great example of pivot table friendly data (especially if you do the concatenation step mentioned below) since it sounds like what you are really after is the subtotals for your different categories. If you want to keep it in the spreadsheet however, see below.
Here's what I thought of, but only worthwhile if your 1000+ entries don't have 1000+ combinations of letters in the first 3 columns!
first concatenate your first 3 columns (=a1&b1&c1)into 1 (D column).
Second, and this is where the solution is no good if you have a LOT of categories,
assuming the actual data is in column (E), type =sumif(D1:D1000+,abc,E1:E1000+) to get the ABC total, etc.
Columns A, B, C are strings, D is an integer I want to add together if the concatenated string A+B+C is an exact match in another row.
E.g.,
ROW 1
A - Philadelphia; B - cream; C - cheese; D - 3
ROW 2
A - Philadelphia; B - cream; C - cheese; D - 5
ROW 3
A - KFC; B - finger; C - lickin good; D - 3
In the case I want the program to return 2 rows, one reading "Philadelphia cream cheese 8" and "KFC finger lickin good 3".
Thanks for your help,
Hungry Kevin
Hungry Kevin, how about inserting a column that concatenates your three strings and then sub-totalling on that column? Insert a column at column A, put the formula =B1&C1&D1 in cell A1, copy that formula down. Then select the entire data table, select Data|SubTotals from the main menu, and choose "Sum" function for column E for each change in column A.
Does this work for you?
Barrie