Sep 08 2023 09:08 AM - edited Sep 08 2023 10:43 PM
Hi everyone,
I have product name in columns: A, C, E, D, G, I, K, M, O, Q, S, U, W, Y, AA, AC, AE, AG, AI, AK, AM, AO, AQ, AS, AU, AW, AY, BA, BC, BE, BG, and in columns B, D, F, H, J, L, N, P, R, T, V, X, Z, AB, AD, AF, AH, AJ, AL, AN, AP, AR, AT, AV, AX, AZ, BB, BD, BF, BH I have quantities sold. In the column "BI" I listed all product names.
In the column BJ(next to BI) I want to see total quantity sold of each product. I tried to use SUMIF but failed to get the result I wanted. I believe I need this formula to solve my issue: SUMIF(range, criteria, [sum_range])
small example:
The formula should lookup values and sum up matching ones.
Thank you in advance.
Sep 08 2023 09:39 AM
Sep 08 2023 10:52 AM
I want to second the observation made by @Detlef_Lewin : That is a bad setup.
WHY do you have your data arrayed in that fashion?
If you're getting it from somebody else that way, then that would be an understandable answer to the question of "Why?" But if you created it, what did you have in mind? And if you're planning to continue to track products and sales, please take the time to reorganize it.
If, for example, each pair of columns represents a time period (be it week, month, or quarter), just add a column that contains date, and then the two columns of product and quantity, going on and on, with new rows for each day or week (depending on the level of granularity needed in the analysis). BUT do not continue with it as is. All that would do--as you have discovered--is make it harder to actually analyze the data. It's possible, but there's no reason to get in Excel's way.
Organized as I'm suggesting, in fact, would make it possible for the Pivot Table tool to do all the work for you. Not a single formula would be required. Here's a link that explains the Pivot Table.
Sep 08 2023 08:36 PM
Sep 08 2023 10:41 PM
Sep 08 2023 10:44 PM
Sep 09 2023 08:55 AM