SUF IF Array with three criteria

thesproing

Board Regular
Joined
Jul 16, 2007
Messages
76
Hi All,

Ok this is beginning to get on my nerves....

Basically i need to sum the values in a column if criteria are met in three other columns.

Two of the criteria are TEXT and one is numeric. At the moment, my best attempt is something like this:


{=SUM(IF(!$B$4:$B$2160<>"A",0)*IF($B$4:$B$2160<>"B",0)*IF(F$4:F$2160<2000,0)*J$4:J$2160)}

The last column is the one i wish to sum, the first two are text and the thried is also numeric. It is just returning a 0 at the moment, and should be much higher.

I also tried SUMPRODUCT, but it was returning a very high number, which i think was a mulpile of the two numeric arrays above....

Any ideas?

Thanks,

Olly
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try

=SUMPRODUCT(--($B$4:$B$2160<>"A"),--($B$4:$B$2160<>"B"),--(F$4:F$2160<2000),J$4:J$2160)
 
Upvote 0
-- coerces an array of False/True to an array of 0/1 that SUMPRODUCT can operate on.
 
Upvote 0
Hi All,

Ok this is beginning to get on my nerves....

Basically i need to sum the values in a column if criteria are met in three other columns.

Two of the criteria are TEXT and one is numeric. At the moment, my best attempt is something like this:


{=SUM(IF(!$B$4:$B$2160<>"A",0)*IF($B$4:$B$2160<>"B",0)*IF(F$4:F$2160<2000,0)*J$4:J$2160)}

The last column is the one i wish to sum, the first two are text and the thried is also numeric. It is just returning a 0 at the moment, and should be much higher.

I also tried SUMPRODUCT, but it was returning a very high number, which i think was a mulpile of the two numeric arrays above....

Any ideas?

Thanks,

Olly

Control+shift+enter, not just enter:
Code:
SUM(
  IF(1-ISNUMBER(MATCH($B$4:$B$2160,{"A","B"}0)),
  IF(ISNUMBER(F$4:F$2160),
  IF(F$4:F$2160 < 2000,
    J$4:J$2160))))
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,277
Members
452,902
Latest member
Knuddeluff

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