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


ADVERTISEMENT

Lookup Headings Based On Data

Nov 29, 2006

Assuming I have a table such as:

APPLE BEANS CELERY DOUGH
Will 5 10 15 2

Joe 1 3 7 11

Ben 9 6 4 8


What formula can I use to return a result like Celery by looking up Ben and 4 for example.

In other words, how do I lookup the heading of the column based on the the first column and a data point on the same row.

View 4 Replies View Related

Lookup Each Instance Of Repeated Data

Nov 10, 2006

In the sample file attached, I want to do a lookup with the employee id in the master sheet and find the multiple results in the "open_text" sheet. From there, I want to display the open text results in one row per employee on the master sheet. If there are multiple comments, then the results will be displayed in separate cells to the right of each other (filling comment1 through comment5 if needed).

My main goal at the end of this is to be able to do a mail merge out of the master file. This is why I want the results in one row per employee.

View 9 Replies View Related

Lookup Intersection Of 2 Headings

Nov 14, 2006

I am trying to find out if i can reference to a table on Excel. For example; if i enter in one cell the word 'january' (a header on the left of the table) and 'week 1' (a header on the top of the table) in another cell, can i set it to produce the value in the table that coresponds to the two headers.

View 2 Replies View Related

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 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 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

Returned, Which Numbers (if Any) Are Repeated And How Often Each Repeated Number Occured

Jan 4, 2010

In colmn A:A i need returned, which numbers (if any) are repeated and how often each repeated number occured.
Admitedly... I'm lost on this one.

View 2 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 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

Need To Match Information Based On Repeated Identifier

Oct 15, 2007

I have been attempting to solve a problem for quite some time and would love any help anyone can provide. I'm on Win XP, Excel 2003.

I have a series of assets each with a unique number to identify it in it's own row. In a separate worksheet I have a column with just these numbers next to a column with a word assigned to each number. Some are only listed once but many are listed multiple times. I was looking for a function that will retrieve the information in the second worksheet and place it in the row that it corresponds to the number in the first sheet. I've listed an idea of what it looks like below. I'm looking for it to search for every instance of that number and provide what's next to it. The first set of information is what I have, the last is what I'd like it to look like.

1 hamster..............1 hamster
2 cat......................2 cat, feline, kitten
2 feline..................3 dog, puppy
2 kitten..................4. etc.....
3 dog
3 puppy

View 9 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

Insert Rows & Headings Based On Cell Value

Jan 1, 2007

Inserting Rows and Headings. Is it possible to automatically insert Rows and Headings based on the Cell value of a particular column ? For example column B consists of a field called, 'Assigned Group'. Column A consists of a field called, 'Fault description'. Column A needs to have a heading depending on the value of Column B. One row also needs to be inserted above the heading.

View 6 Replies View Related

Macro That Will Copy Data Based On The Column Headings

Apr 8, 2009

i need a macro that will copy data based on the column headings, i have two worksheets, the first worksheet is the raw data and second worksheet will be the results sheet, the issue is the headings i have in raw data is different to the headings i have in the results sheet and the heading will not always be in same column in the results sheet, so for example in Raw data i have heading Quantity and in destination sheet i have heading Units, so the macro should copy the data for quantity in sheet raw data and paste to sheet "Results' under heading "Units". The header row on both sheets is row 3. I do have more headers but if I know how to do one then i can apply the same method for the others.

Sheer raw data

Quantity 820,655.00 177,015.00 6,652,041.00 1,517,267.00

Sheet results

Units 820,655.00 177,015.00 6,652,041.00 1,517,267.00

View 9 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

VBA Macro To Multiple Text Files Based On Headings On Worksheet

Apr 2, 2009

I have created an Profit&Loss excel sheet with all the accounts in column A and then the values for each month, January to December in column B to column K like this:

Column A...............Col B............Col C........Col D........Col E.....and so on
Account 1..............2222............58452........5255.........5844....
Account2................5.................45...............25...........458 ....

I've made a macro that creates a textfile and saves it on my desktop, but I get a text file with all the info in the same file, what I want is to get one text file for every month, that is text file number one(january) is: The heading info+column A+columnB

text file number two(February) is: The heading info+column A+columnC
text file number three(March) is: The heading info+column A+columnD and so on

In the heading info I have to state the period and then I need the macro to change this for every text file, that is for the january file it has to be "1 to 1", for february "2 to 2" and so on. As it is now it will always say "1 to 1" because that is the values I have entered.

Sub btnSkapaFil_Klicka()
Dim strAnv As String
Dim strBeloppJan As String
Dim strBeloppFeb As String
Dim strBeloppMars As String
Dim strBeloppApr As String
Dim strBeloppMaj As String
Dim strBeloppJun As String
Dim strBeloppJul As String
Dim strBeloppAug As String
Dim strBeloppSept As String
Dim strBeloppOkt As String
Dim strBeloppNov As String
Dim strBeloppDec As String
Dim strSavepath As String
Dim intRad As Integer
Dim intStartrad As Integer
Dim intSlutrad As Integer
Dim fs, a
strOrder = Range("I2")...............

View 2 Replies View Related

Copy And Paste Selected Range Into Another Workbook Based On Headings And Next Empty Blank Row

May 14, 2014

I have a worksheet with some info that is filled in from other employees. I have Customer Name, Date of Oldest Invoice, Avg. Days Beyond terms in column N42:N44, with the data in column M42:44. I want to copy and paste that into another workbook, I need to transpose the data and then paste it into the next blank row. IF POSSIBLE, I would like to have some of the column headings the same as the above fields, and I would like to paste the data into the correct column heading.

Currently I have the code listed below. It copies the data, opens the spreadsheet, (this is where it fails) find the next blank row and transpose and paste the data. It does transpose and paste the data but it does not look for the next blank row, instead it just transposes and pastes the data in the last cell that was active when the work book was closed.

Code:

Private Sub CommandButton1_Click()' Paste Macro
' Macro recorded 5/14/14
'
'
Range("O42:O47").Select
Selection.Copy

Workbooks.Open Filename:="L:Financial Services! FRA !! Preston !3rd Party Collections Accounts 2014.xls"

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

View 8 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

Find Most Recent Date In Column Headings In A Range - Insert New Column And Heading

Apr 4, 2014

I have a 2 groups of column headings with a different month and year in each heading so

1st Group of columns range
Columns AJ through AX
Column Heading example "Expense Ratio February 2013......next Column over is "Expense Ratio March 2013"

2nd Group of columns range AY though CE
Column Heading example "Capital Balance February 2013......next Column over is "Capital Balance March 2013"

Each new month I need to add a new Expense Ratio column after the most recent expense ratio Column. (i.e. Find "Expense Ratio March 2013" and I need to add a column after that with heading "Expense Ratio April 2013"

Same thing for Capital Balance - add a new Capital Balance column after the most recent Capital Balance Column. (i.e. Find "Capital Balance March 2013" and I need to add a column after that for "Expense Ratio April 2013"

Because the ranges keep changing month over month, how do i do this.

View 4 Replies View Related

Macro To Pull Data From Multiple Sheet To Main Sheet Based On Column Headings

Sep 13, 2012

I need a Macro which pulls the data from different sheets of excel (which is not formatted properly) to Main Sheet. Also some of the columns will not have the same names, so macro should handle this exception as well.

View 8 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







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