in excelworkbook contain 3 sheet, in sheet 1 i have record (20000) with 77 column. i need sum(O:AI,AK:AT,AY) if columnC:C in sheet1 = A1 in sheet2, How?
(sumifs not work in multiple columns)
Assistant
To sum multiple non-contiguous columns in Excel based on a condition from another column, you cannot use SUMIFS directly. However, you can use a combination of SUM and FILTER (or SUMPRODUCT if you're working with older versions of Excel where FILTER is not available).
Using SUMPRODUCT
If you're using a version of Excel that does not support FILTER, you can use SUMPRODUCT with array manipulation. Here’s how you can do it:
Assuming:
Your target value in Sheet2 is in A1.
You want to sum columns O:AI, AK:AT, and AY from Sheet1 where Column C in Sheet1 matches the value in A1.
You can use the following formula in a cell in Sheet2: