Between Values

LEVICC01

New Member
Joined
Aug 27, 2010
Messages
42
Hi all,

I think i'm going mad.

I have a forecasted Volume, and an actual volume.

I need a formula that look sat the forecast, and compares to the volume.

If the forecast is within 5% either side of the volume, i want to return the value of 3,
If the forecast is within 7.5% either side of the volume, i want to return the value of 2,
If the forecast is over 7.5% either side of the volume, i want to return the value of 1.

Please can someone help?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Maybe, forecast in A1, actual in B1

=LOOKUP(ABS((B1-A1)/B1),{0,0.051,0.075},{1,2,3})
 
Upvote 0
Hi,

Try:

=IF(AND(B2>=(A2-A2*0.05),B2<=(A2+A2*0.05)),3,IF(AND(B2>=(A2-A2*0.075),B2<=(A2+A2*0.075)),2,IF(B2>(A2+A2*0.075),1,"NA")))
 
Upvote 0
Thanks Both,

Couldnt get the lookup to work, but the second, long one did.
I had to remove IF(B2>(A2+A2*0.075),1,"NA"))) and just put 1 instead so anything not in the first 2 would return a 1 and this worked perfect.

This is more or less what i had, but i didnt trust my logic. Thanks both.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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