Easier Way for IF statement and payroll formula

mauirlesette

New Member
Joined
Jan 14, 2016
Messages
3
My control value is D46. My data is A7 to A141 for the min number and B7 to B141 for max, and C7 to c141 for the amount. I used the following formula and it works perfectly. I need to include all the data down to row 141. Is there an easy way to include all the values from rows 7-141? (other than typing each statement manually?)

=IF(AND(D46>Sheet3!A7,Jan!D46<=Sheet3!B7),Sheet3!C7)+IF(AND(D46>Sheet3!A8,Jan!D46<=Sheet3!B8),Sheet3!C8)

at leastbut less thanequals
01150
1151202
1201253

<tbody>
</tbody>
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I would use a SUMPRODUCT function...

Code:
=INDEX(Sheet3!$C:$C,SUMPRODUCT(--(D46>Sheet3!$A$7:$A$141),--(D46<=Sheet3!$B$7:$B$141),ROW(Sheet3!$A$7:$A$141)))
 
Last edited:
Upvote 0
If that pattern continues you can do without the lookup table:


Excel 2010
DE
21140
Sheet3 (2)
Cell Formulas
RangeFormula
E2=IF(D2<115,0,(1+(FLOOR(D2,5)-110)/5))


or:


Excel 2010
DE
21264
Sheet3
Cell Formulas
RangeFormula
E2=MEDIAN(0,D2-114,1)*(1+(FLOOR(D2,5)-110)/5)
 
Upvote 0

Forum statistics

Threads
1,215,622
Messages
6,125,889
Members
449,270
Latest member
bergy32204

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