Return Lookup Results Of All Occurences

Jan 30, 2008

I am using vlookup to return data from a range that could have the same name in column A.

There are 8 columns
Column 1 is Name
Column 2 is Sun
Column 3 is Mon
and so on.

The problem I have is that a name can appear in two places in column1 with relevant information in different columns:
Fred appears twice, on Wed he is on a course the rest of the week he is on leave. I need a C to be returned for Wed & A/l for the rest of the week.

View 9 Replies


ADVERTISEMENT

Lookup All Occurences & Merge Results

Oct 21, 2008

1st sheet is giving me partial results with a vlookup - only gives me the first match to my ref number.
2nd sheet is the source data and contains refs and one or more matches.
NB: This is just a sample of the data, however in my original excel file with 25000 records there can be one or even up to 10 matches.

What I'd like to achieve;
Sheet One; Column B should give all matches for the ref number found in Column A.
It should merge all these matches to fit one cell so that all matches are sorted one under each other with line breaks.
As there is 25000 records to treat I would rather not have to do anything manually!

Am I asking too much?
I've read on the forum that it's best not to merge but I don't know how to get around the fact that I need all the matches per ref no in one cell to reimport into my database.

View 8 Replies View Related

Lookup And Return Multiple Results

Mar 31, 2014

I want to look up a particular value and return according results horizontally and vertically. Attached is the excel.

View 10 Replies View Related

Lookup Value And Return Multiple Results

May 4, 2014

I have been using this formula to do lookup and return values

"=INDEX(ResultsColumn,SMALL(INDEX((CriteriaColumn=Criteria)*(ROW(CriteriaColumn)-ROW(FirstCellOfCriteriaColumn)+1),),COUNTIF(CriteriaColumn,"<>"&Criteria)+ROWS(A$1:A1)))"

I'm using this formula in a roster scene to pick up people that call in sick and display their restored job in a different cell. The problem that I am having say for example employee one calls in sick at 2 pm and i assign that job in a corresponding cell to another, then employee 2 calls in sick for the 1pm shift (the call was made after i have already restored employee one a replacement), the formula automatically places the 1 pm in the cell above the 2pm.

Is there a way to stop it from changing the value once a value is entered in a corresponding cell?

Link to the original formula thread. [URL] ........

View 10 Replies View Related

Lookup Formula To Return Multiple Results?

Dec 8, 2013

I am trying to create a workbook where I can log what work I have done in one spreadsheet and allocate an invoice number to it. In a separate spreadsheet within the same workbook I have created an invoice template. When I enter in the invoice number into the invoice template it's not collecting the correct information.

For example, if I want the details for invoice 10 to show in the invoice template, details for invoice 19 appear.

I have used this formula:
=IFERROR(INDEX(ServiceRecord[[Invoice number]:[Date invoice issued]],
SMALL(IF(ServiceRecord[[Invoice number]:[Date invoice issued]]
='Invoice TEMPLATE'!$F$8,ROW(ServiceRecord[Invoice number])),ROW(1:1)),2),"")

I am wanting to add new information as time goes on and also to be able to put in any invoice number into the invoice template to recall information as needed.

View 3 Replies View Related

How To Return The Maximum Value In A Multiple Results LOOKUP

Dec 11, 2008

What I am try to do is look up the highest (maximum) date in a lookup up that has multiple results.

Please see attachment.

Column in question is 'U' (FinishDate)
Maximum date that I want to recover is in column 'P' (DATE_COM)
LOOKUP VALUE is found in column 'A' (QUOTE_NUM)

View 6 Replies View Related

Lookup All Occurrences & Return Results To 1 Cell

Jul 13, 2007

My task is that I have several documents exported in excel. The requirements in them were mapped to another document. The IDs were populated in a certain column but are now no longer needed. I have to convert those old Ids to the current ones. In my example I have populated Sheet one with the lookup table. In column A are the old IDs. In Column B are the new ones they map to. The old ones can map to several which is why there are more than one ID in some of the cells. In column D of Sheet 2 I have populated it with the old Ids. In Column A I'd like to have the lookup return the appropriate maps to the new Ids. For example for the first map in cell A2 it should return:

abc_18
abc_43
abc_6
abc_4
all in one cell.

Vlookup can return the first hit (abc_18 and abc_43 for cell D2), but ignores the other two IDs in cell D2. I was able to work around this combining the find, mid, and vlookup to return all values. The problem with that is that the formula gets monstrously big after just having it return 4. In the actual files it can be up to 30 IDs which would make that formula literally pages long since. I have pretty much no experience with macros, but it seems like the only solution since I have to send this off to various people so they can use it.

View 3 Replies View Related

Lookup-several Occurences

Jul 22, 2009

In sheet 10 there is a list of hunderd of names with information. The information is download several times a week and is not sorted in any way

Column A - Name of sales agent
Column B - Property Name

Tabs 1-9 represent all the different sales reps

Here is what I want to do (I realize I can sort the data and copy paste but it is pain):

Tab 1
Cell A1 - "John Smith"

Cells A2-A50 I want to list the names of the properties in column B of sheet 10.

Cell A2 would find the first occurence of "John Smith" in column A of Sheet 10 and put in the data from column B.

Cell A3 would find the second occurence of John Smith in column A of Sheet 10 and put in the data from column B

Cell A4-A50 would find occurences 3-50

View 4 Replies View Related

Lookup Single Value In One Sheet, Return Multiple Results From The Other Sheet

Apr 6, 2008

i have two sheets, one to display results (Reults tab) & the other tab containing the data (Data tab)

what i am trying to do is some how create a search function and have a forumula which contains a LIKE function that looks up the data table
RANGE = Data!A2:K255

the search needs to lookup the primary column Data!B2:B255 ... if any results are found .. show them on the results tab.. and if multiple results are found, display those as well.. (in either instance, the whole row of information in respect to the results need to be dislayed and hopefully no duplicates are found .. eg, Data!A:K of a hit)

is there a formula that can achieve this? oh, the search is TEXT based and there should be no empty cells within the dataset

after some MASSIVE googling, i have stumbled accross this

B1 = Search box (txt field)


A6 (which will be a hidden column) contains =MATCH($B$1,Data!A2:A255,0). this formula provides the first instance of the result and provides the row number


A7 contains =MATCH($B$1,OFFSET(Data!$A$1,A6+1,0,8-(A6+1),1),0)+A6.
this is supposed to look for the next row number which contains a match and provide that row number

and througout my other columns, i have
B6=OFFSET(Data!$A$1,A6,1)
B7=OFFSET(Data!$A$1,A6,2)
B8=OFFSET(Data!$A$1,A6,3)
and so on


2 things i cannot recitify..


1, the match has to be EXACT ... unfortunately i cannot use exact .. needs to be LIKE .. eg, i cant use the search word "boat" as the range of data has "boats"
2, it comes up with multile .. irrelevent results.

View 10 Replies View Related

Return All Matching Occurences

Apr 15, 2008

I'd like to evaluate a series of columns where a value greater than 1 would return all matches in another worksheet. I can't seem to use LOOKUP or Pivot Tables effectively to do this.

For example
Task Week1 Week2 Week3
task1 5 8
task2 6 10
task3 5

I'd like to create a view that would show Week1 having one task (task1) that will take 5 (hours). Week2 should show task1 and task2, Week3 should show task2 and task3

View 4 Replies View Related

Return 1 Occurences Of Each Duplicated Text If Corresponding Value Exits

Apr 1, 2008

is there a formula or a way to return a unique entry in a column if a value is present in another cell? refer attachment; if their is a value in column C (site A) return the entry in column B but only if it is unique, ie. return supplier 'DEF' only once irrespective of the amount of times the value appears under the site heading.

View 8 Replies View Related

Sum All Results Of Lookup

Aug 30, 2007

I have a sheet with Product IDs and amounts. A Product ID may occur more than once. I want to sum all amounts for all occurrences of each Product ID.
(see attached file)

I have written the following code, but as you can see, it is returning an error, so I've done something wrong. I'm also getting a Compile error: "For Each control variable must be Variant or Object"

Function GetTotal(PO_ProdID As Range, LURng As Range)
'
' Function to Lookup Concatenated PO # & ProdID
' & Return the Total of all dollar amount listed
'
Dim ce As String, tot As Long
tot = 0
For Each ce In LURng
tot = tot + ce.Offset(0, 1).Value + ce.Offset(0, 2).Value
Next ce
End Function

View 4 Replies View Related

Lookup Results Using Name Manager?

Mar 14, 2014

I have a workbook that I use to calculate sales by agents. In the workbook I have the following sheets:

Monthly_Report - Where the results are return to the from end user
team_ref_sheet - Where team / manager details are added / updated
data_sheet - Where my raw data is added

On my team_ref_sheet I have created 4 columns that have been renamed using name manager as follows:

team_manager
agent_names
dealer_code
employee_number

On my "Monthly_Report" sheet I have created a table where I want m data to be displayed to the front end user. The table starts in column C8.

In column D10 through to all the other rows I would like my sheet to reference to my "team_ref_sheet" and return all agent names in the range, up until it reaches a blank row.

View 9 Replies View Related

Lookup With Multiple Results

Oct 29, 2009

After a lot of searching and trying I still didn't get to something that works.

My situation:
sheet1
column A column B
true "abc"
true "bcd"
false "cde"
true "def"
false "efg"
false "fgh"

on sheet2, in cell A1, I would like to get all results from column B that correspond 'TRUE' in that row.

So, in cell A1 on sheet2, i would like to see "abc", "bcd", "def".

VLOOKUP returns only one result, of course. How do I solve this?

I'm not good at VB, so preferably only with formulas!

View 9 Replies View Related

Lookup Results For 1st & Last Day Of Month

Dec 30, 2006

I have a series of daily data in columns sorted by date (see attached .xls).

I am trying to create a table that extracts the value on the last day of a given month, and of the first day of that month, for each of the months in the data series.

I have been trying to get lookups and match functions to work but to no avail.

View 4 Replies View Related

Concatenated All Results Of Lookup

Aug 29, 2007

I'm trying to use this function which was posted as an answer (looking up a single value and returning multiple results, concatenating those results in one cell):

Function getfiles(DRng As Range, LURng As Range)
For Each ce In LURng
If ce.Value = DRng Then
holder = holder & ce.Offset(0, 1).Value & ", "
End If
Next ce
getfiles = Left(holder, Len(holder) - 2)
End Function

What is "ce" here? Auto Merged Post;additional info:

the original question was posted by jwhite68, Feb 27th 2007, "Return Multiple Values From Lookup To Single Cell"

View 9 Replies View Related

Lookup Number Results In #N/A

Sep 8, 2007

i have this file that has about 12000 rows of numbers (a individual number can appear more than one). i'm trying to use a lookup to find if that number appears and if it does then bring back the amount next to the number.. however because the vlookup sees that the number more than one in the list it will bring back #N/A every time. Is there a way to get around this??

View 4 Replies View Related

Two Item Lookup Multiple Results

Jan 15, 2009

I am trying to do a two way lookup with multlple results. In the example attached I want to know the names of the people who were in Boston on 01/02/09. I have tried a number of index, match formulas to no avail.....

View 3 Replies View Related

Returning Multiple Results For One Lookup Value

Jan 28, 2009

I have been searching all day about this topic and while there are many "solutions" none of them fits my criteria and I can't figure out how to tailor it.

I am using a very basic data sheet to populate a purchase order. I want to be able to search a style and have all the data (color, units and price) automatically fill in upon entering the style number, I have been using vlookup but this only works if there is one color per style.

I have found different lookup functions that give the value +1 when the data is sorted but it returns the value even if it doens't fit the search criteria, I only want to return the second value if it correlates to the initial lookup

View 5 Replies View Related

Finding Results Not In A Table Lookup

Jul 31, 2007

It highlights (with an x) all data that appears in both sheets a and sheet b. However I want it to highlight all the ones that are no on sheetA.

View 10 Replies View Related

Average Multiple Results For The Lookup

Dec 11, 2008

I have a lookup that needs to average multiple results for the lookup... columns
Q to W

Looks like it is only returning the first found value.

View 3 Replies View Related

Lookup And Pull Results Into New Sheet

Mar 27, 2009

I am trying to find a function that will scan down a column to find a particular criteria. I would like all the cells that meet this criteria to have their entire row pulled through to a new sheet.

For Example, In the attached spreadsheet, I would like everyone in sheet 1 to have their details pulled through to sheet 2 if they are in class 1, sheet 3 if they are in class 2, and sheet 4 if they are in class 3.

View 2 Replies View Related

VLOOKUP Using Results Of Formula As LOOKUP VALUE?

Oct 25, 2013

I have a cell that I must remove the first 2 characters "RO" for each value in a column on a sheet called RAW DATA and put into a cell on a sheet called ROSS DATA. Some of the values in that cell have 3 digits after the RO and some have 5 digits. To do that I used

=REPLACE('RAW DATA'!A3,1,2,"")

Then I need to use this new resultant string as the lookup value in a VLOOKUP. The VLOOKUP will be looking at a named range called DAP on a sheet called DAP, in column 5 for an exact match and I need it to return that value to the cell.

I have tried using the indirect to no avail in different ways, and not sure that I fully understand the usage.

View 9 Replies View Related

Presentation Of Multiple Results Of A Lookup

Aug 17, 2005

I have some data arranged in columns/rows as follows:

Location Name
--------- ------
United States Sarah Buchannan
United States Walter Smith
France Phil Barney
Italy Anna Wilson
Germany Philip Watson
France Neil Anderson

I want to have some function in my spreadsheet that will neatly present the names of the people at a given location in a separate part of the worksheet

e.g. a display of all people in France would have something like:

France
-------
Phil Barney
Neil Anderson

Ideally I would like to populate cells rows in a different column with the multiple results of the lookup ("persons at a given location") and that change in location for any individual would result in the list of persons at a given location being automatically updated.

Did alot of digging around and managed to construct a UDF that would display the results of the lookup in a single cell - it is however not very readable. But, I found out that a cell based UDF is not allowed to populate other cells other that the one where the function is entered!

View 9 Replies View Related

Lookup Multiple Results Sort

May 23, 2007

I would like a formula to do a lookup multiple results but in a sorted matter.

Example: ....

View 9 Replies View Related

List Multiple Results From Lookup On A Different Sheet?

Aug 28, 2013

I need to start a list in cell a8 on sheet1. I need it to find and list multiple results vertically. It will lookup what is in cell a1 on sheet1. The table of info is on sheet2 from a1 to b44. Column a on sheet2 has the values of what is in column a on sheet1 and column b is what I need returned to the cell with the formula.

View 3 Replies View Related

Survey Results Table Lookup Errors?

Jun 26, 2014

An offset sumproduct series of functions provides me the total score percentage for the top level categories. There are 5-6 in total and can easily be charted in a radar.

The second step is to maintain the 'dynamic aspect' (being able to delete rows) and lookup the high-level category, and the subsection and return the score for the individual question. This way I can create a chart for each of the 5 top level categories and show the survey score for each answer in the category. Note each question has a maximum score of 5 and are scored 1-5.

I have a few errors looking up values and percentages coming back as 500% with the addition of new columns (in red in attached). The first sheet is error free, the second sheet is the 'build'.

Note: Charts will be housed on a separate sheet.

View 1 Replies View Related

Lookup Multiple Results Of Same Value In Vertical Dataset

Jan 29, 2014

I am looking for a formula that would lookup multiple values/result, corresponding to one given value. I have attached a spreadsheet.

Column A and Column B consists of data set.

Column J has the "LOOKUP VALUE"

Column K is where we want the lookup results. We would require the result to be in ascending order which would determine the distribution.

Example1.xlsx

View 7 Replies View Related

Lookup Data In Array, Results In Column 1

Feb 23, 2009

I have a table of data with years in row 1, week # in column C. The data array is from C2:O34.

I want to find the max value in each year column, then look up that result and return which week that value occured.

Is there a vlookup that allows you to specify which column of the array has the lookup value and which has the lookup result?

View 3 Replies View Related

Lookup Formula Finding Incorrect Results

Nov 3, 2009

If I type in an age in A1, in A2 I want an age group to appear

the groups are
20-24
25-29
30-34
35-39
40-44
45-49
50-54
55-59
60-65

so far, if I type in an age then it normally enters the group ABOVE what I want

i.e. if I enter “24” then it put the group “25-29”. if I enter “42” it puts “45-49” and so on.

=LOOKUP($A1,{0,16,20,25,30,35,40,45,50,55,60},{"<16","20-24","25-29","30-34","35-39","40-44","45-49","50-54","55-59","60+"})

View 3 Replies View Related







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