I have this table:

How to sum all amount in column B for the first two chars in column A?
For example: SUM all amounts for LUxx
|
I have this table:
How to sum all amount in column B for the first two chars in column A? For example: SUM all amounts for LUxx |
|||
|
|
|
You can look into the SUMIF function in conjunction with LEFT() which will enable you to get the first two characters. |
|||||||
|
|
SUMIF can do this. You can try the below function (I already tested):
Don't forget to change the number in the range according to your Excel content! |
||||
|
|
|
To use the SUMIF approach, add an intermediate column (say column C) with formula:
and copy down for each row used. Then use:
|
||||
|
|
|
I couldn't make diagonalbatman's solution work (I don't think that Here is a
May have to validate with CtrlShiftEnter (should work without but sometimes, it isn't well interpreted by |
|||
|