Sum(if

jkktx81

Board Regular
Joined
Jan 25, 2008
Messages
154
I have having trouble getting a new spreadsheet to work, with what i think I'm using same type of formula on.

{=SUM(IF(JAN!E8:E37=C5,IF(JAN!G8:G37=A5,JAN!O8)))}

In this, one sheet is totaling from another depending on criteria.

Only think I know is the JAN!O8 cell has formula in it to sum numbers; could this cause my problem and or what coould I do to make it work for me?

I'm getting a #NA
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
I have having trouble getting a new spreadsheet to work, with what i think I'm using same type of formula on.

{=SUM(IF(JAN!E8:E37=C5,IF(JAN!G8:G37=A5,JAN!O8)))}

In this, one sheet is totaling from another depending on criteria.

Only think I know is the JAN!O8 cell has formula in it to sum numbers; could this cause my problem and or what coould I do to make it work for me?

I'm getting a #NA

The formula looks right to me at first glance. Is the worksheet tab JAN? or JAN!? It should be JAN by your formula. Also, tab names are case sensitive so I'd make sure you typed it correctly. I've made this mistake in the past.
 
Upvote 0
I have having trouble getting a new spreadsheet to work, with what i think I'm using same type of formula on.

{=SUM(IF(JAN!E8:E37=C5,IF(JAN!G8:G37=A5,JAN!O8)))}

In this, one sheet is totaling from another depending on criteria.

Only think I know is the JAN!O8 cell has formula in it to sum numbers; could this cause my problem and or what coould I do to make it work for me?

I'm getting a #NA
The problem is that you're testing arrays in:

JAN!E8:E37=C5
JAN!G8:G37=A5

But the sum range is a single cell:

JAN!O8

Maybe this is what you had in mind...

Array entered**:

=SUM(IF(Jan!E8:E37=C5,IF(Jan!G8:G37=A5,Jan!O8:O37)))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
Thank you both. It worked for me this morning. Maybe it was the O8:O37 part. I thought I had tried that yesterday, but I probably didn't.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top