Using SUMIFS to multply a cell

SM mechanic

New Member
Joined
Sep 12, 2017
Messages
36
Office Version
  1. 2007
Platform
  1. Windows
I am trying to write a formula that will multiply the value in cell I15 by 5 if that cell is at 20 or more, and if cell I16 is equal to or higher than 105.95 and display the result in cell K15

In other words, I input 19 or less into cell I15, K15 shows 0

I input 20 into cell I15 and if cell I16 is 105.94 or less, K15 shows 0

If I input 20 into cell I15 and I input 105.95 or more into cell I16, K15 shows 100

Hope this makes sense.

It is for a commission based payroll, they need to sell 20 or more of this item at 105.95 dollars or more, and they get 5 dollars for each one they sell. If they don't sell at least 20 and if the average sale price is not at least 105.95, they don't get anything.

This is what I tried and its being rejected

=SUMIFS(I15*5,I15,">19",I16,">105.94")

Thank you for any help you can offer on this.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Close, but put the *5 on the result of the sumifs, not I15 itself

=SUMIFS(I15,I15,">19",I16,">105.94")*5
 
Upvote 0
Solution
Works for me.

Maybe I misunderstood what you're trying to do.
This will do I15*5 only if I15 is > 19 AND I16 is > 105.94


Book1
I
1525
16108
17
18125
Sheet1
Cell Formulas
RangeFormula
I18=SUMIFS(I15,I15,">19",I16,">105.94")*5
 
Upvote 0
I was trying to post a screen shot to show you what I have but that's not working very well. What you are showing is exactly what I want it to do, other than I want ( in this example) 125 to show up in cell K15. But I assume if I cut and paste your formula in the formula bar when I am clicked onto cell K15, that's what should be happening. But it just shows $0
 
Upvote 0
Sorry, I figured out the problem, one of the cells had a number stored as text fault. reformatted the cell to be a number rather than a cell, and now it works.

thank you very much for the assistance.
 
Upvote 0
Then the one (or both) of the 2 cells are not meeting the criteria.
Best guess is that they are Numbers Stored As Text

What do these return
=ISNUMBER(I15)
=ISNUMBER(I16)
 
Upvote 0
SUMIF really isn't even appropriate for this task (unless you've posted simplified examples of something more complicated)

This should be sufficient, and will handle the "numbers store as text" issue

=IF(AND(I15>19,I16>105.94),I15*5,0)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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