Lookup Based On A Date

Feb 20, 2009

I have a table with dates and currency-rates. There is only one currency rate per month, but the day can be different since the date is the last working day of the month. I want to lookup these rates based on a date where the day can be any day in the month. Any proposals?

Table example:

Date Rate
30.06.2003 7,09320
31.05.2003 6,70466

Lookup date: 20.05.2003

View 4 Replies


ADVERTISEMENT

Date Fields Increase Date By Numbers Of Years Based On Lookup Table?

Aug 11, 2013

In column A, I have dates; In column b i have security levels. I have made a table called "Security" it contains to columns, a list of security levels and no of years when each security level is required to be reviewed. the table is setup -

d1 e1
Restricted 5
etc

Example of data
ie.
a1 b1 c1
Restricted 1/06/2012 1/06/2017

What I am looking for is a formula to look up a1 "restricted". then lookup the security table and find "restricted" its value is 5 (years) then add the 5 years to date in b1, but place it in c1.

View 1 Replies View Related

Lookup Based On Date

Jun 19, 2007

I have created a workbook that contains a summary worksheet as well as a lookup page. On the summary worksheet, I have a cell that states the current balance for a series of investments that are listed by date in the lookup worksheet.

I need to create a formula that references the balance that is listed under the most recent period. For example, I have investment balances from January to May, and I need to have the May balance appear as the current balance, until next period, when the June balance should appear, etc.

View 9 Replies View Related

Lookup Date Value Based On 3 Values

Mar 12, 2009

I have data that contains all the days in a year G7:I372. I want to lookup a value based on month, date and return the result. The sheet I am using contains a list in A3. As I change the value of A3, i want the dates to update. See attached sheet.

View 5 Replies View Related

Lookup Based On Repeated Headings & Corresponding Date

Mar 10, 2008

I have a worksheet with stock names across row 1, then repeated columns of <Stock Price>, <Price to Book>, etc.

< Date> <Stock 1> <Stock 1> <Stock 1> <Stock 2> <Stock 2> <Stock 2> etc.
<Date> < Price > <P to B> <Assets> < Price > <P to B> <Assets> etc.
<Jan1>
<Jan2>

What I want to be able to do is match the column data (for example, Stock 1 and Price column) using the index function, then match it to the specific date, so I know the price of the X stock on Y date.

If I were doing this for a single stock (where C1 holds the date, B1 holds the Column Title), the formula would be like this:
=INDEX(Data!$A$1:$IR$1067, MATCH(C1,Data!$A$1:$A$1066,), MATCH(B1,Data!$A$2:$IR$2,))

However, how do I add this additional matching variable of Stock Name?

Alternatively, if there is a more efficient layout, I'd appreciate hearing about it. Also, I know I could create stock-specific column titles (e.g. Stock1Price), but I'm going to be inputting this data into STATA, so this format is more conducive.

View 9 Replies View Related

Lookup Next Game Based On Current Date

Apr 3, 2008

I'm trying to link three cells lets call them C7, E7, and G7 to an NBA schedule. I'd like to have C7 Display the visiting team, E7 to display the date, and G7 to display the time of the game. Ideally I'd like these cells to change after the date of the previous game has passed to the next game. Is this possible? Would I need to create a separate sheet with the Visiting team, date of game, and tiem of game?

View 3 Replies View Related

Selecting Entire Date Range To Be Lookup Based On Start And End Dates

Mar 6, 2013

I have an excel sheet where I would like a user to enter a start date and end date(say Feb 1, 2013 to Feb 28,2013). And these dates will be able to change to whatever month the user wishes to look up in a specific date range(column A has 365+ dates). This post is closely related to [URL]... but I cannot figure out how to get it to work from my case.

So working off the same worksheet, I have the beginning date in AC35 and the end date in AC36 in which the user enters. I would like the dates that fall in this entire month, including the beginning and ending dates to be referenced when looking for the specific day that contains a value I have in S35.

In other words, I have data in columns A through N. The dates are in column A and S35 is a value obtained from using Max(L185:L526) where L185:L185 is manually selected each time I want a different month. I don't want this to be a manual process of scrolling down the spreadsheet to get the next month.

View 12 Replies View Related

Lookup With Multiple Criteria: Return The Amount Paid And Full Cost Based On The Person's Name And The Date

Apr 21, 2006

I would like a lookup that takes multiple criteria and that is not an array formula! Unfortunately I decided to use array formulae and my spreadsheet went to over 45mb!! Not good. I've searched the forum for an answer to my questions but couldn't find any! I've attached a spreadsheet as an example. The examples I am using have {Sum(IF)} formulae in it (array) and I would like to change those to others that will not increase the file size so much and will not take too long to calculate.

Basically, I would like a lookup that will return me the Amount Paid and Full Cost based on the person's name and the date. the data and the results table are both on separate sheets. It would be nice to bring that file's size back down to less than 4mb!!

View 7 Replies View Related

Lookup Sunset Time Based Onrecord Date - Incorrect Time Calculated

Mar 22, 2012

Consider this code:

'light eligibility
Dim facb As String
Dim sunset As Variant
[color=green]' check if facility has lights[color]
facb = WorksheetFunction.VLookup(RID, ds, 10, False) 'find facility code
If WorksheetFunction.VLookup(facb, fac, 6, False) = "Y" Then 'facility has lights
sunset = WorksheetFunction.VLookup(tempws.Range("A9"), sun, 2, False) 'lookup the sunset time based on the record's date

[Code] ......

This code checks the need for lights at a facility.

It first checks to see if the facility even has lights by cross-referencing a value in the record with a facilities database.

If it has lights, it then checks to see if they are needed. If the rental goes past the sunset time, then it needs lights. Sunset is determined by cross-referencing the date value in sheet1! A9, with the sunset database.

If it needs lights, variable lghtson is calculated equal to "sunset"-30 minutes.

As I step through this code:

WorksheetFunction.VLookup(facb, fac, 6, False) = "Y" Facility has lights.
Check to see if lights are needed.
sunset = WorksheetFunction.VLookup(tempws.Range("A9"), sun, 2, False)
sunset=0.879166666666667 which is 9:06PM. This is a proper value from the lookup.
If rental_end.value > sunset Then
rental_end (value from textbox) = "9:30 pm" , sunset=0.879166666666667. This is true, and Excel accepts it as true ...
lghtson = sunset - 0.5
0.379166666666667 = 0.879166666666667 - 0.5 (9:06 AM)

This is not the value I was looking for. I was looking for 8:34PM (0.856944444444444)

View 2 Replies View Related

Using VLookup To Lookup Date Within Multiple Date Ranges

Jan 5, 2012

I have a table with three columns. I'm building a calendar on a separate worksheet and am looking up the "value" based on a calendar date. So if a date falls within any of the ranges, I'd like to return the value in column C. For example, if the date is 02/07/12, I'd like for the result to be value 1, or if the date is 04/17/12, then I would like the result to be value 3. I've used a nested vlookup, but all that give me is the value when either the start or end dates match, but I can't get a value when the date falls within the range. If the dates were consecutive, I would simply use vlookup/TRUE, but the dates are not consecutive.

ABC102/06/1202/09/12value 1203/12/1203/15/12value 2304/16/1204/19/12value 3405/21/1205/24/12value 4506/25/1206/28/12value 5606/25/1206/28/12value 6

View 4 Replies View Related

Lookup If Date Within Date Range

Jan 23, 2012

I have a list of venues and a start date, end date and number of items per day to be installed, which looks like

A - B - C - D
Venue 1 - 01/01/12 - 31/01/12 - 15
Venue 1 - 03/01/12 - 30/04/12 - 10
Venue 2 - 05/01/12 - 28/02/12 - 9

And I want to summarise this in a table with one row for each day of the year which looks like

A - B - C
1/1/12 - Venue 1 - 15
2/1/12 - Venue 1 - 15
3/1/12 - Venue 1 - 25
4/1/12 - Venue 1 - 25
5/1/12 - Venue 1 - 25
etc etc

I can't work out the formula to put in Column C on my second table which will lookup the venue name and then put in the sum of the daily values.

View 7 Replies View Related

Calculate Next Due Date Based On Start Date Frequency And Current Date?

Mar 9, 2014

I'm trying to workout how to take a known initial date a repeating frequency and work out the next due date from today.

Example

Initial Date :- 1st of January 2014

Frequency :- every 5 weeks

Current Date :- 9th of March 2014

Next Due date should be :-12th of March 2014 (if I worked it out correctly from my paper calendar)

I want to use a cell formula to do this for different initial dates and varying frequency periods (the frequency will always be whole weeks i.e. 1,2,3,4,5,6,7,8,8,10)

View 4 Replies View Related

Lookup Up Of Max Date And Corresponding Value

Dec 15, 2013

I need to lookup the newest date that is populated and take the corresponding value for that date for each row. For example member ID m1, needs to go to the newest date and show the value for the newest date that it is populated, so it would show the number 5 in column E for 8/4/13, as that is the newest date that is populated. For member ID m2, I need to show the number 7 that corresponds with the date 8/2/13. Attached is a picture for reference.

Attached image : Capture.PNG‎

View 5 Replies View Related

Lookup Date From A1 - Nth Value?

Aug 31, 2013

From cell I1 i want to lookup the date from A1. Then you can drag across automatically insert each date (D1 and G1) into DATE B (J1) and C cells (K1). ie. insert value copied from each date which is located every 4th cell.

View 8 Replies View Related

2 Way Lookup With Date?

Apr 25, 2014

I want to lookup a value with a date in between 2 dates. Only outcome I need is a true or a false (0 or 1 is also ok).

Value
Date from
Date to

[Code]....

Lookup value is a "B" and lookup date (12 March 2014) should be in range. ==> outcome 1
Lookup value is a "B" and lookup date (30 april 2014) should be in range. ==> outcome 0

Know this should be done with index and match function.

View 2 Replies View Related

Lookup Date In VBA

Jan 8, 2008

I have have been trying to use either vlookup or Match Excel functions in VBA code where the lookup key field is a date. I don't have any problems doing either in the spreadsheet, but both fail in my VBA code. I get an error that the program can't find the "Vlookup [or Match] property of the the worksheetfunction object."

I have a thought that I could try to convert the date to an integer, and do lookup on the integer, but even if it works it seems like an escape from doing things the right way. I can get worksheetfunction.vlookup to work when I am not using a date as the lookup field. Sorry I am not enclosing the code. I have changed it so much trying to find a workable solution that it is not much use now.

there is some thought that worksheetfunction.vlookup and worksheetfunction.match don't work in VBA when the lookup field is a date. Possibly this is just an Excel glitch, but if there is a way to fix, that would really make things easier.

View 2 Replies View Related

Lookup 2 Values: Get The Lookup Answer Based On Two Values

May 18, 2007

im trying to get the lookup answer based on two values the current formula i have is

=VLOOKUP(AND(A1,B1),Sheet2!$A$1:$C$31,3,FALSE)

which naturally returns N/A... i might even be using the wrong formula?

View 2 Replies View Related

Lookup Birth Date

Jul 25, 2009

I have got a database wherein it contains the details like Employee Name, Birth Date, Date of Joining, etc in Sheet1. Suppose, Employee AAA birth date is 30/Jul/1980. When on 30th July 2009, it should display the Employee Id in Cell C3.
How should I lookup for the current date & month from the Employee Birth Date?

View 3 Replies View Related

Complicated Lookup By Date

Feb 4, 2009

I'm trying to create a macro that allows a date to be entered into a Dialog box that is activated by a short cut key.

The macro would use this date to look through all the information on tab Output, and if(as) it finds dates that match the information will then be filled out on tab Schedule.

For clarification Work Center would be the abbreviation (letter code) about the dates.

View 7 Replies View Related

Lookup For Most Recent Date

Aug 20, 2008

I want to lookup an ID which there may be three of, but I would want the most recent date out of the three ID. I can get this to work by putting the column in ascending order but this is not very practical.

Is there any way I can do a lookup and add a date parameter to lookup the most recent?

View 9 Replies View Related

DATE Formula LOOKUP

Dec 3, 2008

I have the following:

"ClosQtr" = 8034 (Closqtr is a named range cell)

As a named range cell "Curr_Mth" changes (which can take end of month values from 30Jun08-31Dec09 only),

I would like A2 to be:

ClosQtr+1 "Curr_Mth"=30Jun08
ClosQtr+1 for 30Jun08

View 9 Replies View Related

Find Or Lookup Date

Dec 21, 2006

I have a row of dates, with variable start date, each being one week apart, starting in cell T5 (say T5 = 4/12/06, U5 = 11/12/06, V5 = 18/12/06 etc). The last date is in cell AE5. I wish to loop along the range and find the date that today’s date (say 21/12/06) falls in (answer = 18/12/06). And enter that date in cell Q2.

View 4 Replies View Related

Lookup A Date Dependent On Value

Jun 21, 2007

I have a row of values with empty cells in between and I need to detect the first value(negative) and return the date of this numerical value, which is placed three cells above. It is basically a way to automatically find the date of the first transaction for an IRR calculation. I was thinking of using an HLOOKUP or some kind of a MATCH, INDEX structure but I think you need to match to a particular value there, or am I mistaken.

View 2 Replies View Related

Lookup And Reference For Category And Date?

Jul 21, 2014

I'm having serious difficulties with getting together a formula for a little bit complicated lookup.

I have 2 tables. In the first table I have categories in the first column (e.g. red, blue, green), in the second column I have dates (DD.MM.YYYY). And in the third column I would like to get the values from the second table.

In the second table I also have categories in the first column, dates in the second column und values in the third.

I would now like to get the values from the second table that coincide with the categories. And in addition the dates should also be equal to the date in the first table OR the date from the second table should be as close as possible but BEFORE the date in the first table.

Example
Table1
Red 07.08.2005 ???

Table 2
Red 18.04.2005 three
Blue 11.06.2005 one
Red 06.08.2005 four

In this example the value that should be looked up is "four".

View 12 Replies View Related

Formula To Lookup Most Recent Date?

Jul 23, 2014

I have a list of numbers column A and a list of dates in column b, i need a formula which looks up the most recent for each of the numbers. can this be done?

View 3 Replies View Related

Date Lookup To Get Week Back

Nov 25, 2009

My vlookup fonction fell in a black hole after the november 23rd 2009.

What would you reckon?

View 14 Replies View Related

Lookup Within Date Range And Return Value

Jan 14, 2013

I have a four columns, one with created date, one with proposed date, one with a name and one with a dollar amount, I want a formula that will look at the two columns with dates and report back based on the name, the total dollars of each line where the dates are prior to today.

View 1 Replies View Related

Lookup Specific Text From Same Date

May 19, 2014

Basically i have date in col A, Name in col B and Status in col C.

Let say A2 & A3 are both 1 Jan 2014, B2 & B3 are both "exam 1", C2 is "success", c3 is "failed"

Is there any where to add helper column so in row A2 : C2 mark with "blank" and A3:C3 mark with "yes"

So then when i pivot it ..i can add the helper column as criteria and choose "yes".

I attached sample file here [URL] ..

Just click download on that site and you can save or open the data.

View 2 Replies View Related

AND Function Date Range Lookup

May 20, 2008

I am trying to an If statement but the first part of the IF statement needs to be between a specific date range. Here is the formula I have:

=IF(AND(Sheet1!A4>=1/1/2008,Sheet1!A4

View 9 Replies View Related

Lookup Dates With Certain Date Ranges

May 1, 2009

attached worksheet.

The worksheet has two sections, Extra payments and Loan Schedule.

If a date in the Extra Payments section is within a range in Loan Schedule, the enter its corresponding value, or sum of values in the Loan schedule under its respective date.

the attached sheet explains in detail.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved