Lookup Maximum Value & Return Corresponding Row
i have a matrix
index| a| b| c|
0001 |1| 2| 2.22| ( probably it will be much clear to see the attachment)
I need to lookup for the largest number in B2:D2 (in this case 2.22) and return the corresponding header ("C"). I though it would be simple with hlookup() and max() but i can't make it work.
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Lookup Maximum & Minimum. Return Corresponding Row
I have searched your forums and thought I had found a sufficient answer but could not get the vba to work. So any help is greatly appreciated. I am trying to determine a max value from a list then put that value in a cell. Next I want to determine how many times and on what day that max value occured. From there take the value and concatenate them adding a "," between them I have attached an example. I would like the values placed in cells F1 and H1 (the other is a min value and when it occurred)
View Replies!
View Related
Lookup Value In Header Row And Return
I have a worksheet with the following values: header row 15 17 19 25 etc. each column underneath the row will have a value of 0 or -1 A B C D E etc 1 15 17 19 25 2 0 -1 -1 0 3 -1 0 0 0 4 0 0 0 0 etc I want a formula that I would put in each row that would return the value of Row 1 if there is a -1 below that value. So, in this example: Row 2 formula would return 17,19 Row 3 formula would return 15 Row 4 formula would return nothing
View Replies!
View Related
Lookup Value Then Return Value In Row 1 Of That Column
I have a list of values in column A (part numbers) In columns B to E I have lists of similar values (part numbers, with row 1 representing their location e.g warehouse, office, etc). In column F2 I would like to search for the value in A2 in the range B2:E100 and return the value in B1:E1 if the value appears... if it doesnt appear in any of the columns I would like 'not located' to appear in F2. I've been trying to do this for a while but am making no progress at all.
View Replies!
View Related
Row Lookup: Return Zero If No Match
I have exported an income statement report from the ERP system to Excel. Only items that are not equal to zero are populated. So if there has been no expense in the Central division for Consulting fees, it does not show up on the report. Here is the formula:use control shift and enter small(if(row(A1:A100)-ROW(A1)+1>MATCH("Central Division",A1:A100,0),if(A1:A100)="Consulting Fees",ROW(A1:A100)-ROW(A1)+1)),1)( Excel Jeanie HTMLSheet2 A 2 East Division 3 Sales 4 Cost of Sales 5 Payroll 6 Lights 7 Consulting Fees 8 Net Profit 9 10 Central Division 11 Sales 12 Cost of Sales 13 Payroll 14 Lights 15 Net Profit 16 17 West Division 18 Sales 19 Cost of Sales 20 Payroll 21 Lights 22 Consulting Fees 23 Net Profit Excel tables to the web >> Excel Jeanie HTML 4 So this formula picks up the first Consulting Fees after the Central Division. The problem is it is going to pick it up under the West Division. So, how would I modify the formula so that if the row number is also less than Central Division Net Profit (A15), it is zero. (no offset or indirect)
View Replies!
View Related
Lookup Until Conditional Match Then Return Last Value In Row
I am trying to modify this formula to do one more thing, but I can't quite figure out how to do it. I have part 1 and 2, but part 3 is giving me a very hard time. The formula is not working correctly. It is supposed to do several things. Do an HLookup for a row and return the last value in the row.If there is no value (blank), the value should be "Incomplete."If HLookup finds a value of "Fail," it should look to see if there is a value of "Pass" BEFORE (to the left of) "Fail." If this exists, then it should return a value of "OK." Here is what I have so far....
View Replies!
View Related
Lookup Multiple Columns And Return Top Row
I've been working this for ever and can't seem to figure out the best way to go about it. I have attached an example sheet. All I need to do is figure out the Dept #... which is listed in Row 1, Column F:H. I want to match the project numbers and then return the AA, BB, or CC in Column B.
View Replies!
View Related
Lookup Value In Row & Return Result X Rows Down
I am working on a spreadsheet for some packages we are sending to multiple recipients. I have figured out how to get all the weights calculated, now my Mailing Manager has asked me to come up with a calculation for the actual postage amount for all the 1400+ packages...Unfortunately it is not as easy as that would seem. There are 9 different mailing zones and each zone has 19 weight categories and each category has a corresponding postage amount for the package. So I need to come up with a formula to calculate the package postage amount based on those multiple categories. For example: Zone 1: 0-1lb = $2.12 1.1-1.5lb = $2.12 1.6-2lb = $2.21 etc How do I go about entering in that information from which a formula can determine the proper package postage cost and what formula do I need to use in conjunction. This is all done within a address list so each package is a row and all weights and zones will be in a separate column. Package is in zone X and weighs Y pounds therefore the postage is Z. Something like that.
View Replies!
View Related
Lookup Row & Column Heading To Return Corresponding Header
I have a list of names and the chores they need to do on a certain day. I need a formula that returns the chore the person needs to do when the date is filled in. Ex: Sheet2 Col:A has names filled in A2:11 , row B1:J1 has dates that you would input. formula goes in B2:J11 Sheet1 is the master with all the data the formula would be pulling from. column A2:A11 has the names , row B1:S1 has the chore that needs to be done. B2:S11 has the dates already filled in.
View Replies!
View Related
Lookup Maximum Value
I have a column of merged cells which contains a number e.g. 396322669097172 and a time e.g. 00:00:00. I can format this combined cell as a 'general', but think it can be formatted as any type of cell retaining this layout (after combination, prior I had to format both cells as textual), however when it is then not possible to get a maximum value from this column using a pivot table. The max comes back as zero. I have tried using some freeware to combine the cells and I don't know what it did differently but I was able to order the values using a pivot table afterwards.
View Replies!
View Related
Lookup With Maximum Value
There a a total of 13 sheets. Sheets 1-12 are named by months i.e. Jan, Feb, Mar, etc.. Each of these sheets contains a max temp for the day. There are cells at the bottom of each of these sheets that return the max, min, and average. The last sheet is an annual summary sheet. It collects info from the other 12 sheets and places them on it. There is a cell on the annual summary sheet that attemps (this is my problem) to determine the max and min temp for the year (easy enough). The problem is that once the sheet determines the max and min temp for the year to determine what day of what month it occurred on.
View Replies!
View Related
Lookup Value Above Maximum Value Of Another Range
How to lookup for greater than a given particular value in a list of data? Suppose the value to find is in cell C17 & the column to be looked for is F, in the attached sheet. Now the data range is from F8:L27. If the value in C17 is not present in Column L, then the value greater than the specifed value should be searched in Column L. I have tried using VLOOKUP, but cannot find for a range of values.
View Replies!
View Related
Lookup Maximum With Conditions
i have a list of price list, and it is updated once a while, which means there is a change in version number. The table is a direct extraction and it has to be like that... I have tried to vlookup but only return 1 line, same as match and index... or maybe im not using the forumla correct. Attached is the excel example hope this help. as you can see there is alot of dupe reference but different version and prices I cannot concatenate the reference and version number as my lookup reference doesnt know what one is the latest version... but one thing is constant, that is the version number is always needs to be the highest.
View Replies!
View Related
Return MAXIMUM Based On Criteria
i have a spreadsheet like the following A B C Country Revenue Month 1 UK 10 Jan 2 France 20 Jan 3 US 30 Jan 4 UK 25 Feb 5 US 35 Feb 6 France 5 Jan and so on... So where country = UK, France or US I want to retrieve the MAX revenue from all months and which month it was in. Eg UK max revenue was in Feb of 25. I am not sure how to apply the max formula with criteria. Is there any way to do this?
View Replies!
View Related
MAXIMUM Function Limit: Return A Value?
What I'm trying to do is get the MAX function to return a value, but that value needs to come before the values reach zero. It's a cubic equation that basically starts, at the beginning of the data range, under 10 then hits zero and ends up near 30 at the end of the data range. The end data range max doesn't matter to me if the data range hits zero along the way. Is there any way to make the MAX function stop at a certain value, or is there another function that could accomplish what I'm trying to do?
View Replies!
View Related
Return Maximum Date Or Blank
I am currently using an array to return the MAX date value. This formula will enter 1/0/00 if the referenced cells are blank. I'd like the furmula to LEAVE THE CELL BLANK if the referenced cells are blank. {=MAX(IF(Bid_Circuits=$A45,Bid_Trim_Completed,""))}
View Replies!
View Related
Return Heading Of Column With Maximum Value
In attached example, I have 3 columns of fractions with a final row of sumtotals (taken from elsewhere). I test to see which column has the maximum value in each row and allocate the result with the column's heading. Sometimes, two or more columns have the same max value. In this scenario, I wish to select the column heading that has the largest sumtotal.
View Replies!
View Related
Return Cell Address With Maximum Value
I have two columns of numbers in column A & B. In column A I am trying to locate the maximum value and get the cell address of the number next to it in column B. I am currently using this formula to do this ..... =ADDRESS(MATCH(MAX(A1:A4),A1:A4),2,4) It works ok, but if the maximum number is the first value in the column it is returning the last cell address in column B. I am not sure what I am doing wrong.
View Replies!
View Related
Return Data Corresponding To Minimum & Maximum
Please see attached file which is data for horse races (this is a small example of the data i will be working with). I need to find the largest values from the MIN and MAX column (shaded Grey) range for each race. I want to be able to add a function that will allow me to quickly identify which horse has the largest number in both the MIN & MAX columns example on spreadsheet is highlighted RED. It would be handy if it would inform me if the criteria has been met by highlighting it or by placing some text value in an adjacent cell on my spreadsheet i have used the example "Y". It would also be beneficial if that race be deleted in its entirity if there are no horses which meet the criteria above or similary if all other selections within that race be deleted if ther is a horse which meets the criteria. If there is a selection within that race i will need to keep the row that includes the heading which is coloured blue on the attachment. I will be working with 20,000 or more selections at a time so it is important that they can be identified quickly for ease of use. I have tried the functions i know such as MAX and LARGE but this requires me to do alot of work when you consider the ammount of data i'm required to work with.
View Replies!
View Related
VBA Macro To Return Maximum Value In Text Form..
I am a novice to VBA in excel, i have a table of more then 5000 rows. I would like to find a maximum value from each row and return the column title as "GL_Weld" or "Bend" or "Header" into another worksheet cell. i.e First Row max value = 0.011510 should return "Bend" into another worksheet GL_WeldBendHeader 0.0001700.0115100.000500 0.0000000.0007800.000000 0.0002400.0110700.000480 0.0000000.0006600.000000 0.0000000.0037700.000000 0.0000000.0000100.000000 0.0002800.0108700.000480 0.0000000.0007100.000000 0.0002000.0112900.000490 0.0000000.0008400.000000 000.00002 00.000310.00001 000.00004 00.00030.00002 000.00001 00.000270.00003 000.00002 00.000260.00004
View Replies!
View Related
Return Values In Range Based Upon Relationship To Maximum Value
I am looking to select two values from a range based upon their relationship to the maximum value. In this specific case I am trying to calculate the Quality factor based upon the frequency response of a transducer. So I need to identify the Maximum impedance and its corresponding frequency. I also need to identify the 3db points either side of the maximum impedance. The 3db points are found at 2/3rds of the maximum value of the impedance (Impedance Mag in attached spreadsheet). Calculating the first 3db point isn't overly difficult as I just calculate the value for the 3db point and use the MATCH function to find the closest Impedance value and then work out the corresponding frequency from that. I am stumped as to how to calculate the second 3db point (above the Max impedance value). I have attached a spreadsheet with frequency information in column A, the other columns are used to derive the values found in columns M (Impedance Mag) and N.
View Replies!
View Related
Return Only Unique Text From Another Sheet Along With Correlating Minimum And Maximum
I have, on one sheet, a list of incumbent employees that includes the following columns: Job Title [text] and Salary [number]. I am trying to automatically populate a second sheet with columns designating: A list of each unique job title (no duplicates), the maximum salary corresponding to each unique job title, and the minimum salary corresponding to each unique job title. Lastly, I'm an attorney dealing with confidential client data, so I'll have to go through a lot of trouble to post an example... but I'll do it if necessary.
View Replies!
View Related
Displaying The Maximum Value For Each Row Of Data
I have some code and it's not quite working. For each row of data in my table (each row of data is contained in columns D:F) I want to display the maximum value in column H, of the same row. For some reason though it is putting it in 21 additional rows down. Sub Winner() Dim lngMax As Long Dim lngRowLast As Long Dim rng As Range Dim rngAll As Range Dim rngRow As Range lngRowLast = Range("D65536").End(xlUp).Row Set rngAll = Range("D2" & lngRowLast) For Each rng In rngAll Set rngRow = Range(rng, rng.Offset(0, 2)) lngMax = Application.WorksheetFunction.Max(rngRow) rng.Offset(0, 4).Value = lngMax Next rng End Sub
View Replies!
View Related
Determine Cell Above Maximum Value Of Row
[TABLE] item01/11/200702/11/200703/11/2007 a1710 b2611 c359 [/TABLE] I have the above table. I would like to determine which is the item that has Maximum value on a particular date. example on 2/11/2007, the maximum value is 7, so the result should be item a. How can I achieve this by using a formula.
View Replies!
View Related
Find The Maximum Value In One Column And Retreive The Name Of Cell In Corresponding Row
I spent couple of hours trying to figure this out, but without success. Please check the attached example. I need a formula that will find the max value (number of views in English anguage) in the column "I" and display the corresponding "Headline" value in the column "B". In the example it is "Headline 5". I can not change position of the columns, i.e. "B" must remain "B" and "I" must remain "I". I experimented with Index and vlookup but to no success. I have outlook 2003.
View Replies!
View Related
Copy/Fill Down Formula To Maximum Row Of Last Cell In Columns
In a worksheet I retrieve data from a SQL query. Now I have to add 5 different calculations per row and each calculation will be stored in a new cell (so 5 columns will be created) I want to do this with a loop macro and calculate this till the last "filled" row. The number of rows differs every month. What loop code should I use and can somebody give me an example of the VBA code. Note that some formulas contains nested If-functions.
View Replies!
View Related
Return Maximum Of Active Cell & Arbitrary Value To Cell
I am looking for VBA that will add the value of the current active cell on the sheet to the value in cell F12. The maximum value of F12 cannot exceed 1000. So if the value in F12 = 950 and 100 is the value in the active cell the maximum value in F12 should show 1000, not 1050. It should do this on the click of a button.
View Replies!
View Related
Lookup Row In Column & Heading In Row
I'm trying to enter info in a cell based on what is entered in two other cells. So I have a dropdown box for the species on another sheet as well as a dropdown box for rail sizes. Then I have to crossreference them to come up with an upcharge number. Sorry for my basic lingo. I hope it's understandable.
View Replies!
View Related
IF Or LOOKUP To Return Different Value..
Column A lists types of employees (managers, engineers, sales reps, etc.), each of which earns a seperate hourly rate. Column C lists hours worked, and Column D lists the total pay (Cx*Bx). So column B is missing. Is there a way to generate the hourly rates in column B for each employee type in collumn A, i.e. if it's an Engineer, return $29, if it's a Technician, return $18, without an infinite set of True/Fasle conditions.
View Replies!
View Related
Lookup And Return Value
I am trying to look up a value using VBA on 1 sheet and return it to a cell on another sheet.... I was hoping Evaluate sum product would work but I can't get it to. Basically I want to look up values in column C and D to locate the row then return value in column I specify.. below eg where Column C = SYD and column D = SHA, row = 6 .... value in L row 6 = 1
View Replies!
View Related
Return A Value If The Lookup Contains...
I have two files with the below data: File A Bob Jones Williams, K. File B Jones, Bob Williams, Ken The only commonality between the two files is the last name. I can easily separate the last name off File B, since it is always 'last name, first name'. I want a lookup formula to use the last name from File B (after I separate it), lookup to File A, and if it finds a cell in a specified column that contains the same last name, return data from another column within File A.
View Replies!
View Related
V Lookup And Return Value
I have this vlookup formula and as you can see when I run it works good. The only problem is that I would like to have formula that it something is not found I don't get #N/A , but rather a 0 or blank. =VLOOKUP(A6,GL!A$1:E$76,5,FALSE) LOOKUPDIVDPTCC SALES 46120 010775010775 49,028,244.58 010200010200 3,373,145.76 010700010700 113,667.00 010300010300 14,382.54 011000011000 (1,518,076.05) 010600010600 589.98 011900011900 6,280.31 010900010900#N/A 011100011100 313.08 010750010750 570.90
View Replies!
View Related
Lookup To Return No Value
My Lookup formula gives back N/A rather than an empty cell. I was unable to find the solution in frequently asked questions. Everything points to using VLookup which I feel doesn't fit my situation as I am only looking at one row of text. The length of my targeted range changes so I am wanting to use the lookup for an extra amount of rows to ensure I capture all the data at any given time. Once my lookup gets to the end of the list and finds a blank cell i get back N/A. I tried to include "" in my formula to combat this but it isn't working. I have been using IF statements elsewhere on my sheet but there are 30 arguments and I was forced to find an alternative. This is an abridge version of my formula: =LOOKUP(Data!A2,{"","0129","0133","0163","0167","0187","0197","0202","0212"},{"","0201-0129","0205-0133","0201-0163","0213-0167","0201-0187","0216-0197","0212-0202","0217-0212"}) Didn't know if I was supposed to use [code] for that. Figured better safe than deleted
View Replies!
View Related
Lookup 2 Values To Return 1 Value
Hi there, please can you help me transfer data from 1 spreadsheet to another (I have attached a file which has 2 sheets). I am trying to populate columns G to L (sheet B) with data from column H (sheet A) - the lookup is between 'Material' & '7410','7090','7680','7060','8630','7580' on sheet B & material & plant on sheet A. I have tried H&VLOOKUP & INDEX/MATCH but I keep returning a #N/A..
View Replies!
View Related
|