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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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,223,886
Messages
6,175,193
Members
452,616
Latest member
intern444

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