Jehoshaphat Domfeh
asked on
If Cell B2 and B4 equals 6 then sum C2 and C4 into D2
I need an excel formula that looks across a row and evaluates if (B:B) contains N6 then sums all values in row into D2. e.g. if | B2 = 6 and C2 = 2 | , B4 = 6 and C4 = 20 | then D2 = C2+C4 or 2+20 = 20. If you need further information please ask. Thanks in advance :)
I think you need this...
=SUMIF(B:B,N6,C:C)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks everyone for the support :) the formula i needed was the =SUMIF(B:B,6,C:C)
Based on asker's feedback.
Your question is quite confusing.
You want a formula to check each cell in the whole of Column B (B:B which would be just over a million cells if working on an xlsx format), and sum up column C from the corresponding cells if the cell in B equals whatever is in N6?
However, in your example, you use a fixed value of '6'.
Do you mean cell N6 or a fixed value of 6?
Also, your example includes a final result of 2 + 20 = 20. Is that a typo, or do you mean you want to return the largest value from any corresponding cell in Column C (which in your example is 20).
Please clarify and / or correct any typos.
Thanks,
Alan.