SumIf Function Help

seenfresh

Well-known Member
Joined
Jul 12, 2006
Messages
1,141
I would like to sum a range if the cell contents are number values, hence I have #N/A in the range and would like to be able to sum this range.

for example my range is M3:M105 and I want to just sum the number values not text

Any help would be great!

Thanks in advance,
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
I would like to sum a range if the cell contents are number values, hence I have #N/A in the range and would like to be able to sum this range.

for example my range is M3:M105 and I want to just sum the number values not text

Any help would be great!

Thanks in advance,

=SUM(SUMIF(M3:M105,{"<0",">0"}))
 

seenfresh

Well-known Member
Joined
Jul 12, 2006
Messages
1,141
Thanks Aladin,

You never fail!

As soon as I saw this I thought **** I should have thought of this!

base my sum on the sumif, which would disregard the false values of #N/A or text values!

How does {} fall into proper formatting does this help identify the comma into just one argument instead of excell seeing it as the False argument criteria!

Very nice

Thanks again!

Sean
 

Forum statistics

Threads
1,136,990
Messages
5,678,983
Members
419,797
Latest member
ikethegenius

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
Top