Sumproduct help

SteveH1961

New Member
Joined
Jan 18, 2016
Messages
12
Hello

I am trying to accomplish a sumproduct sort of thing and almost have it but not quite yet.

I have cobbled together this formula...

=SUMPRODUCT(IFERROR((G10:G8841>I4)*(H10:H8841="Auto")*(I10:I8841>0),)) array entered.

At issue is the fact that cells in column G may contain numbers (a good thing) or text (a bad thing), How do I ignore the cells that have text or only count the numerics. As it stands now, the text cells are being counted (a bad thing).

Thanks!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Will the following formula work for you?

=COUNTIFS(G10:G8841,">"&I4,H10:H8841,"Auto",I10:I8841,">0")
 
Upvote 0
Try:

=SUMPRODUCT(IFERROR((G10:G8841+0>I4)*(H10:H8841="Auto")*(I10:I8841>0),))

When you perform an arithmetic function on a number saved as a string, or a regular number, you get a number. If you try to add 0 to a text value, you get an error. In this case, your IFERROR will catch that error and turn it to a 0.
 
Upvote 0
Continuing with your formula

=SUMPRODUCT((ISNUMBER(G10:G8841))*(G10:G8841>I4)*(H10:H8841="Auto")*(I10:I8841>0))
 
Last edited:
Upvote 0
Perfect! Thank you

Try:

=SUMPRODUCT(IFERROR((G10:G8841+0>I4)*(H10:H8841="Auto")*(I10:I8841>0),))

When you perform an arithmetic function on a number saved as a string, or a regular number, you get a number. If you try to add 0 to a text value, you get an error. In this case, your IFERROR will catch that error and turn it to a 0.
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,539
Latest member
alex78

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