# Vlookup Value That Falls Into Specified Range?

Jun 12, 2014
I have a list (a) with distances and another list (b) that gives numbers to certain distance ranges. For instance:

[Code] ...........

Now, if I have a value of 4.5 in list (a), I want to look up the respective zone. For 4 classes, this can be done with an if formula (=if(4.5>50;Zone 4;if(4.5>25;Zone 3;if(..and so on))).

What can I do if I have lets say more than 100 ranges with respective zones (ranges not of equal size) because an if formula will not be feasible anymore?

View 3 Replies
ADVERTISEMENT
Jul 11, 2014

Data set

Column A Column B

PriceCode1 5.36

Sheet 2 Data Set

Column A Column B Column C Column E

PriceCode1 5.02 10.01 313

PriceCode1 10.02 50.01 314

PriceCode1 50.02 100.01 315

Formula on Sheet 1:

{=INDEX('Price calculation'!$E$1:$E$70,MATCH(C3&D3,'Price calculation'!$A$1:$A$70&'Price calculation'!$B$1:$B$70,1))}

The issue I am having is that the value isn't an exact match so it is returning line 3 with a value of 315 rather than line 1 and a value of 313. What am I doing wrong?

View 1 Replies
View Related
Jan 14, 2009

make this formula more concise and shorter, it was design to check a numbers in a range to see if any of them falls into a particular range.

=IF(SUM((COUNTIF(Fund,">11999")-(COUNTIF(Fund,">12999"))),(COUNTIF(Fund,">21099")-(COUNTIF(Fund,">28729"))),(COUNTIF(Fund,">28730")-(COUNTIF(Fund,">33999"))),(COUNTIF(Fund,">58999")-(COUNTIF(Fund,">59999"))),(COUNTIF(Fund,">82000")-(COUNTIF(Fund,">84999"))),(COUNTIF(FUND1,">11999")-(COUNTIF(FUND1,">12999"))),(COUNTIF(FUND1,">21099")-(COUNTIF(FUND1,">28729"))),(COUNTIF(FUND1,">28730")-(COUNTIF(FUND1,">33999"))),(COUNTIF(FUND1,">58999")-(COUNTIF(FUND1,">59999"))),(COUNTIF(FUND1,">82000")-(COUNTIF(FUND1,">84999"))))>0,"ATTACHMENT E IS REQUIRED","")

and if the any of the number fall into the range it will print the message, "Attachment is Required"

View 4 Replies
View Related
Nov 29, 2002

I'm trying to count, in a range of cells, how many fall between certain values, such as between 75,000 and 99,000. The array formulas seems the way to go, but it looks like it only accepts one condition not a range.

View 9 Replies
View Related
Apr 25, 2007

I want my code to verify that the Active Cell on a worksheet falls within a specified range of cells before the sub fires off.

View 9 Replies
View Related
Oct 13, 2009

Example:

0000-0999 Cell a1

1001-1999 Cell a2

2000-2999 Cell a3

3000-3999 Cell a4

These are a ranges of values in a spreadsheet. I would like to be able to do a search or lookup for a number that I designate that falls within one of these ranges and it will direct me to the cell that my value falls within.

For example if I do a search for 1550 it would take me to cell a2 with a range of 1001-1999.

Not sure if this is too complicated for a formula and might need to use VBA.

View 9 Replies
View Related
Mar 12, 2009

Dates

1/2/2006

11/29/2007

7/3/2008

Table:

Year Start Date End Date

2005 01/30/2005 01/28/2006

2006 01/29/2006 02/3/2007

2007 02/04/2007 02/2/2008

2008 02/03/2008 01/31/2009

For each "Date", I need to scan the table and find which "Start Date" and "End Date" range does it fall into and return the applicable "Year". For example:

1/2/2006 will return 2005

11/29/2007 will return 2007

7/3/2008 will return 2008

View 2 Replies
View Related
May 20, 2012

I need a formula that will tell me which 'BPS' a person should receive based off of the count of loans closed (between 'Criteria 2' & 'Criteria 2.1' and/or the volume (total of 'Loan Amount')(between 'Criteria 1' & 'Critera 1.1'), whichever gives the person a the higher tier.

I have provided an example below. In the example John Doe should receive .01750 'BPS' because he closed over 1 million in volume. If, for example, John Doe closed 5 loans for 400,000, then he would receive .01600, since he met the criteria for the 2nd tier based off of # of loans closed.

The formula needs to take into consideration which 'Comp Plan' the person has, as well as the other criteria mentioned above.

Bitmap BRANCHBitmap COMP PLANCOMP PLAN IDCOMP PLAN TIERCRITERIA 1CRITERIA 1.1CRITERIA 2CRITERIA 2.1BPSSACRAMENTOSAC-COMP-A11$ - $ 599,999.99 020.01250SACRAMENTOSAC-COMP-A12$ 600,000.00 $ 999,999.99 350.01500SACRAMENTOSAC-COMP-A13$ 1,000,000.00 $ 100,000,000.00 61000.01600SACRAMENTOSAC-COMP-B21$ - $ 599,999.99 020.01500SACRAMENTOSAC-COMP-B22$ 600,000.00 $ 999,999.99 350.01600

[Code] .......

View 1 Replies
View Related
Jan 12, 2009

If I have A1 ( and the rest of row 1) that equals a standard Date Period such as shown below, What would the formula to be to sum all of the numbers if today falls within the range, as well as sum previous ranges.

For instance, If today were 02/15/09, it would only sum A2

If today were 03/15/09 it would sum B2 as well as previous time periods (B2 + A2)

If today were 4/15/09, it would sum C2 as well as previous time periods (C2 plus B2 and A2)

A1........................................B1......................................C1

"02/05/09 - 03/02/09".............."03/03/09 - 04/01/09"............"04/02/09 - 05/05/09"

15........................................21......................................36

View 9 Replies
View Related
Oct 28, 2009

I am half way through a Worksheet where I am using VBA to perform more than the measly 3 Conditional formats that excel offer. This is working fine but I am now looking into a way of reversing the formats if a mistake is made and the condition is removed.

To make this sound more straightforward it is a rota sheet. If I enter Holiday the cells interior turns pink, Half turns light blue, On Call turns green etc. If this is changed I need to change it back to the original formatting.

I have partly done this with a Case "" but the Rota changes colour with different teams so I need to have an IF statement in there that say if the Target Cell falls within this Range say A5:AF10 change to tan IF the target falls within A6:Af20 change to sky blue etc. Below is the code I have so far.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)

Dim WatchRange As Range

Dim CellVal As String

On Error Resume Next

CellVal = Target

Set WatchRange = Range("A1:AF100")

If Not Intersect(Target, WatchRange) Is Nothing Then

Select Case CellVal

Case "Holiday"

Target.FormatConditions.Delete

Target.Interior.ColorIndex = 38

Target.Font.ColorIndex = 1......................

View 9 Replies
View Related
Jun 12, 2014

I am trying to learn more about functions like IF(), AND() MATCH() and LOOKUP()... but so far I cant seem to get it right. I am actually trying to get a simple working formula that can take a value from the first tab and cross reference it with a table in the second tab to return another value in the first tab.

For example....

On the first tab/sheet named "Details", i have a list of people, an area of work they fall in and then a column named region that categorizes their areas of work into groups

A

B

C

1

Name

Area of Work

Region

2

Mr A

J

?

3

Mr B

6

?

4

Mr D

Z

?

5

Mr E

18

?

Then on the next tab/sheet named "Category", I have a table which lists the areas that belong to a region;

A

B

1

Region

Area

2

1

A-J. 1-6

3

2

K-P, 7-15

4

3

Q-U,W,Z,16-20

I have tried formulas like IF(AND(B2=Category.B2),"1","ERROR") but it keeps returning me "ERROR" when it should return "1"

View 7 Replies
View Related
Jul 16, 2009

The number in cell M21 falls into one of the ranges from C4 to C15. A matrix number needs to be printed in each cell from N21 to N30. The selection of the number to be printed in column N (under Matrix Assignment) depends on the range it is next to in array A4:C15. For example (as shown), the correct number for cell N21 is 122 because 0.2626 falls between 0.24 - 0.2699, and Matrix 122 corresponds to that range.

View 3 Replies
View Related
Jan 30, 2013

Secondly, I'm using Excel 2007.

In column B3:B367, I have dates for every day of the year. In column D3:D367, I have body weight for every day of the year. This gets filled in on a daily basis.

What I'm looking to do:

1. Find the first daily weight for the month.

2. Find today's weight.

3. See if today's weight falls within the specified month.

4. Compare the first daily weight of the month with today's weight.

I am able to accomplish #1 with LOOKUP, #2 with LOOKUP, and #4 with IF/THEN. For the life of me, I cannot comprehend how to do #3.

View 6 Replies
View Related
Apr 6, 2012

I am looking for a formula that will enable me to determine which one out of five thresholds a percentage falls within and the retuns a specific value for the corresponding threshold. Here is an example of the data (only showing three thresholds):

_____A________B_________C____

1 ___0.0%_____50%_____$5.00

2 ___51%______75%_____$15.00

3 ___76%_____100% ____$25.00

Where the values in A1 and B1 are the low and high ends of one range. I would like the formula to determine which range the value falls within and return the value in collumn C (C1 for the A1:B1 range).

I can do this using multiple 'if' statements, but am looking for a much more streamlined way to determine the proper value in column C.

View 2 Replies
View Related
Jul 30, 2012

I have a custom range -55% to 55% as part of a grading system for sales growth. I want to return a 0-100% grade depending on where within that -55% to 55% range a sales reps growth for a month falls. For exaple, if a sales rep scores 0% growth for a month, they will receive a 50% grade by where 0% falls within the -55% to 55% range.

View 1 Replies
View Related
May 19, 2014

File A has patients with discharge dates over two years. Each patient may have multiple dates. Example:

Patient Discharge Date

John Smith 7/1/2012

John Smith 10/1/2012

Judge Judy 7/1/2013

Judge Judy 12/1/2013

File B has office visit dates for the patients. Again, each patient has multiple office visits. I need to be able to see which office visits were within 15 days of a discharge date. Example:

Patient Office Visit

John Smith 6/1/2012

John Smith 6/15/2012

John Smith 7/10/2012

Judge Judy 7/20/2013

Judge Judy 12/12/2013

Is there any way to note next to the discharge date that for John Smith the 7/10/2012 office visit was within 15 days of the 7/1/2012 discharge? And the same for Judy with the 12/12/2013 visit?

View 8 Replies
View Related
Jun 6, 2006

i need to make a formula for excel which will verify if my actual value falls within a specific range. for instance if my value is 0.15 and the allowed range is 0.145 to 0.155 then i want to display the number zero in the cell however if the actual number is above or below the range i want to calculate the amount of deviation from the range

View 2 Replies
View Related
Jul 3, 2009

I am performing a lookup using the populare user defined function nlookup, which does not take a lookuparray argument to find lookup values. But I only want to return lookup values that fall into a certain array. To accomplish this, I figured out that I need a way to specify a condition of the type "if cell address of lookup value falls within range"

It should be possible if I find a way to return the cell address of the nlookup value, but as nlookup is not limited by a lookuparray argument, so I was not able to use the address/index/match that come up in similar questions.

View 3 Replies
View Related
May 1, 2014

I have a employee travel spreadsheet with air travel dates in two columns. I want to be able to create a rule that will highlight all the cells in a row if the date range on that row fall includes today's date. if someone is traveling in the event there is an emergency and I need to know if they are traveling that particular day. I have attached a sample spreadsheet.

View 3 Replies
View Related
May 2, 2014

Refer to the attachment. I am trying to average the data in the Y column, if the times fall into the range between column R and S. I am having trouble with the averageif function. Is there a better way to parse through column W, check if the values fall between the ranges of S and R, and if they do, average the associated values in column Y?

Attached image: Capture.JPG

View 5 Replies
View Related
Dec 27, 2013

Formula for the attached worksheet.

In the table of cells A3:G12 there is a list of staff I have working that day and the hours that they are working, which I enter manually.

The table A14:G89 is a list of matches that my staff will be monitoring which I paste in from a downloaded list. Column G is blank when I paste is filled in by the table on the right which is what I want to achieve at then end.

Once I have entered the times that people are working that day then scroll over to the right and look to fill in the column headed 'Monitoring'.

What I want is the 'Schedule Table' at the top of the worksheet. What I want to do here is place a formual in these cells to display how many matches a member of staff is monitoring concurrently at any given 15 minute interval. I've filled in down to the 11.05 kick-off to show what I want it to display but obviously I want to find a formula to replace this manual intervention.

Monitoring Scheduler.xls

View 11 Replies
View Related
Dec 12, 2008

I have a list of dates in col "A". In col "B" i would like it to display the week it falls on. Example 12/12/08 would fall under week 12/7/08 to 12/13/08.

View 6 Replies
View Related
Nov 7, 2009

I'm the Held desk manager . I'll have my folks logging in every time interval and work for 9hrs. Now I wanted to see at any given point a day the number of folks I have on my desk .

I have created table " A " and I'm looking for a formulae so that I get my data like table " B " .

To give more insight about table '" B " - During 00:00 - 00:30 , I'll have 41 people slowly goes down as people log off..

View 13 Replies
View Related
Nov 15, 2013

I have week numbers from 1 to 52, now i want to get which week number will falls in which month, is there any formula in excel

for eg. Week 01 - 05 will fall in January month (2014), likewise..

View 1 Replies
View Related
Aug 22, 2007

Let's say that i have a list of dates on column A. Then I enter a "Start date" in "B1" and an "End date" in "B2" What I want is to find all dates that falls between "start date" and "end date".

View 9 Replies
View Related
Aug 8, 2014

I have attached a sample workbook which shows my desired output.

In E3 I need a formula to index B3:B60 and bring back the value where D3 falls between the dates in A3:A60

I have manually typed 46 into E3 as 15/05/2013 is equal to or greater than 13/05/2013 but less than 20/05/2013

Attached File : index match between dates FF.xlsx

View 4 Replies
View Related
Feb 5, 2009

Is there a way I can get Excel to sum/count in an IF equation if the condition falls between 2 points?

For instance:

I want to count the amount of days between two dates.. I am currently looking at something like:

=If(cell>[date1]&cell<[date2],sum(cell yada yada....)

Using <> wont work in this instance.

View 5 Replies
View Related
Nov 9, 2009

I have Column A to show the Project I am working on and Columns B-M show the months of the year with the figures under certain months. In Column N I just want to show where a figure falls under a certain month, I want Column N to show the month (header) that particular figure is under e.g. N2 should return a value of "March", N3 ro return a value "June" and N4 to return a value "April/September".

View 5 Replies
View Related
Sep 21, 2009

I am trying to make a function which will take a date as input and display the season for that date. i.e. the input 1-Jan-1992 will return "Summer" (southern hemisphere seasons)

View 10 Replies
View Related
Feb 6, 2013

I'm running a macro that pulls rows from a different spreadsheet based on certain criteria. I need to add an if statement that will determine if the dates in a column fall in between 2 dates specified in cells.

View 3 Replies
View Related