identify duplicates in a column then find the maximum value of adjacent column values in excel - excel

This is a constantly growing file of part names. Each time a part is revised a new test part needs to be made of the revision so we want to keep track of the highest level
Based on duplicates in column A, I am trying to show the current highest rev level (alphanumeric) from column B in column C.
Using the code command I can get a value for the Rev Level up to Z, But I need to account for revision levels beyond Z (AA or AB etc)
PN rev Max Code
1-QR-728 - C 45
4-QR-63 D D 68
2-QR-312 C D 67
1-QR-728 A C 65
28-QR-240 A K 65
2-QR-312 D D 68
6-QR-257 AA AB 65
1-QR-728 B C 66
28-QR-240 K K 75
4-QR-198 - - 45
1-QR-728 C C 67
5-QR-223 D D 68
6-QR-257 AB AB 65

Here is an example that goes in column F and uses a helper column E.
Example in F3
=IFERROR(SUBSTITUTE(ADDRESS(1,MAX(IF($A$3:$A$15=A3,$E$3:$E$15)),4),"1",""),"-")
entered as an array formula with Ctrl+ Shift + Enter and dragged down.
And in column E, example E3
=IFERROR(COLUMN(INDIRECT(B3&"1")),0)
It is based on the revisions matching up with available column names.

Related

I need get output using excel formulas

I want to get output on below table using Excel function.
I have tried Index match but it only helps to get output for first value, while I have duplicate values.
Database
Date Product Name
01-01-2016 60 A
01-01-2016 54 B
01-01-2016 40 C
01-01-2016 60 D
01-03-2016 47 A
01-03-2016 39 B
01-03-2016 46 C
01-03-2016 42 D
01-02-2016 37 A
01-02-2016 53 B
01-02-2016 25 C
01-02-2016 46 D
01-04-2016 49 A
01-04-2016 47 B
01-04-2016 46 C
01-04-2016 27 D
Need a help to fill the below table using Excel formula
Kindly find the below sample output
enter image description here
Using your posted "database" graph (the first one) as a reference and assuming that it starts in cell A1, I put your "required output" data in F1:J5. "A" starts in F2, F1 is blank and the dates are in cells G1:J1.
In G2 put this Array formula and then fill down to the last letter "D": = INDEX($B$1:$B$17,SMALL(IF($C$2:$C$17=$F2,ROW($C$2:$C$17),""),COLUMN()-6)). Then fill across. The "COLUMN()-6" in the Small function assumes that you put your "required out" data in the range F1:J5; otherwise, you will need to change it manually.

Merging only one column on matching rows

I have a spreadsheet where I have duplicate records(rows). Typically I have 2 rows per record and I need one. The rows are identical apart from one column. Is there a way to merge duplicate rows based on their ID in Column A but only merge column D
Column B for example as the same number, I don't want to merge this column as it will provide the wrong figure as column D has different words per row.
Data is currently.
Column A Column B Column C Column D Column E Column F
178924 £125 £895 Card 82 92
178924 £125 £895 Stamp 82 92
178927 £11 £85 Card 52 69
178927 £11 £85 Stamp 52 69
Perfect result would be
Column A Column B Column C Column D Column E Column F
178924 £125 £895 Card, Stamp 82 92
178927 £11 £85 Card, Stamp 52 69
You could do the following formula in Column G
=$D1 & ", " & VLOOKUP($A1, $A2:$D6, 4, FALSE)
Where your data is entered into A1.
This will return #N/A for unmatched records (you can use IFERROR to mask this with something else if you require) and a concatenation of Column D as in your expected output for matched records. You can filter the results to remove the unmatched to display your desired result.
This solution only works for the first instance of your ID (assuming only 2 instances of each ID in your question). If you want to delete unmatched rows you would have to use VBA.

If Cell Value is present in a range of Cells

I have an excel file:
A B C D E F
1000603 90 1000702 Chocolate PCS
1000965 22 1000232 Apple BOX
1008596 56 1555254 Burger PCS
1000323 95 1000702 Candy BOX
1555254 63
1000702 88
Column A and B is my Master List of Barcodes
What I want to do is:
If a value from Column C matches from the Column A, the value in Column B will be placed in Column F
Example:
C D E F
1000702 Chocolate PCS (formula that will be equal to B6) 88
What I have done so far was to play with the answer in this question, but I have not found the correct formula for my need: if a cell equals any cell in a range
Use simple =VLOOKUP function. Put following formula to F1 cell then fill down as required.
=VLOOKUP(C1,A:B,2,FALSE)

How to look up for multiple values and convert them in to a horizontal table in excel

I have a table like below in excel spread sheet
A 1
A 2
B 12
B 4
B 56
B 68
C 7
C 8
C 34
D 10
D 11
i need to convert the table as below
First entry Second entry Third entry Fourth entry
A 1 2 - -
B 12 4 56 68
C 7 8 34
D 10 11
Provided your list of letters (assumed to be in ColumnA starting in Row1) is sorted and you have a separate list of just one each of those letters (say starting in D1) then a formula may achieve the results you want:
=IF(COUNTIF($A:$A,$D1)>COLUMN()-5,OFFSET(INDEX($A:$A,MATCH($D1,$A:$A,0)),COLUMN()-5,1),"")
In F1, copied down to suit and then all formulae copied across until an entire column is blank.

Excel: Arrange data for a number of column based on unsorted column

I have 4 Column of data as below ;
A B C E F G
1 99 98 2
2 97 94 3
3 93 92 1
A,B, C is a references column. I would like to grab the X and Y value in column B and C based on sequences in data E.
(To simplify the question. i would like to re-arrange B,C data to sequence like column E)
I need to know how to do this because i need to plot a link of city coordinate based on given sequence. (unsorted).
In column F, put this:
=VLOOKUP($E2,$A$2:$C$4,2)
In column G, put this:
=VLOOKUP($E2,$A$2:$C$4,3)

Resources