Find not exact amount

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,841
Office Version
  1. 365
Platform
  1. Windows
I am trying to find an amount closed to $1,174 + - $50, or any amount close to this amount.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If you have a column of numbers, starting in A2, try this starting in B2:

=abs(a2-1174)<50

...then you can filter on column B to get all the cells fitting the criteria.
 
Upvote 0
Hi
If you are searching for a match in col A
B2= Vlookup(1174,A2:A78,1,true) will return the number closest to 1174 (lowerside)
Ravi
 
Upvote 0
The Vlookup formula will not find the nearest value to 1174 unless your data is in ascending order. It actually gives the value nearest to 1174 minus 50.

The formula:

{=MIN(ABS(1174-$H$2:$H$13))}

Entered by Ctrl-Shift-Enter

will give you the smallest difference between actual value and wanted value.

Kelbo
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,060
Latest member
mtsheetz

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