I am working on revamping my organization’s expense report. I’ve been trying to figure a total based on two conditions. Here’s an example of what I’m trying to accomplish: if a cell in the range of B6:B30=A and a cell in the range of F6:F30=520 then I want to add their totals, but only if they’re in the same row. For instance if B8 has an A and F8 has 520, then I want whatever is in the row 8 total column added to all the other “A520″s. I searched Microsoft’s website, figured out I needed to use an array formula, and found some samples. It seemed like the SUMIF function was what I should use. I tried these formulas and neither worked: {=SUM(IF((B6:B30=”A”)*(F6:F30=”520″),G6:G30))}and {=SUM(IF((B6:B30=”A”)+(F6:F30=”520″),G6:G30))}. Then I posted this question on a local helpnet, and someone suggested I try this: {=SUM(IF(B6:B30=”A”,IF(F6:F30=”520″,G6:G30)))}. That didn’t work either. Does anyone have any suggestions as to what may be going wrong here? Any help would be greatly appreciated!
Thank you,
Amy