Calculate variance outside band of two rates of pay

Deadchef

New Member
Joined
Aug 3, 2017
Messages
1
Hi

Slightly weird question and I'm hoping Excel is not going to let me down.

I've prepared an IF statement to show if a hourly rate of pay falls with a band of two pay rates and to return "YES" if it does and "NO" if it doesn't -

=IF(AND(R3>=T3,R3<=U3),"No","Yes")

If I get back "NO" I then want cell W3 to tell me how far outside the band the number is

e.g.

Current rate £10.00

Pay Banding £10.20 - £11.00 (In cells T3 & U3)

I want W3 to return the answer of "-0.20" but also if the current rate was "11.50" I'd need the answer to show as 0.50

Please help

Much appreciated
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try:
Code:
IF(R3< T3,R3-T3,IF(U3< R3,R3-U3,""))
<r3,r3-u3,""))[ code]
<t3,r3-t3,if(u3<r3,r3-u3,""))[ code]
<t3,r3-t3,if(u3<r3,r3-u3,""))<t3,r3-t3,if(u3<r3,r3-u3,""))< td=""></t3,r3-t3,if(u3<r3,r3-u3,""))<t3,r3-t3,if(u3<r3,r3-u3,""))<>

<tbody>
</tbody>

<tbody>
</tbody>


</t3,r3-t3,if(u3<r3,r3-u3,""))[></r3,r3-u3,""))[>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

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