Possible If/Then formula? Calculate between 2 numbers

kittymongo

New Member
Joined
Feb 6, 2018
Messages
16
Does anyone know how to calculate between 2 numbers. Example -

one report has to pay accurately which is between 95%-102% (we count these as accurate). another report has to pay the same way (these 2 never match since they pull from different sources). I need a formula to show if these 2 calculate within the same data range. i have a formula in there but it is just stating if the 2 reports match per line but i am getting false matches since it is matching everything out of range as well.

report 1
cell a1 = 30% accurate
cell a2 = 98% accurate
cell a3 = 100% accurate
cell a4 = 94% accurate
cell a5 = 99% accurate

report 2
cell a1 = 30% accurate
cell a2 = 100% accurate
cell a3 = 100% accurate
cell a4 = 22% accurate
cell a5 = 91% accurate

what sort of formula can be used to show both reports are within the accurate threshold range by line?

i hope this makes sense. if not, let me know and i will try to clarify more.

Thank you so much!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Based on your sample, what should the results be line by line?
 
Upvote 0
report 1
cell a1 = 30% accurate
cell a2 = 98% accurate
cell a3 = 100% accurate
cell a4 = 94% accurate
cell a5 = 99% accurate

report 2
cell b1 = 30% accurate
cell b2 = 100% accurate
cell b3 = 100% accurate
cell b4 = 22% accurate
cell b5 = 91% accurate

What formula can i use in cell c1, c2, c3, etc (it is a line by line calculation) to show if both reports are displaying between 95%-102% range?
 
Upvote 0
Is this what you expect to see?


30%30%Out of Range
98%100%In Range
100%100%In Range
94%22%Out of Range
99%91%Out of Range

<tbody>
</tbody>
 
Upvote 0
Building from petertenthije's formula, try this:

=IF(and($a1>=0.95;$a1<=1.02,$b1>=0.95,$b1<=1.02),"In Range","Out of Range")
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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