Excel Copy value of different columns to one depending on substring of a column - excel-formula

I can't seem to find what I'm looking for and I just can't make it work with the partially correct Answers I find.
So I have an Excel file with empty column A. A lot of data is pasted in columns B to E
I need Excel to check if the data (text) in column be start with "C0". If it does, it needs to add this value to the field in the same row of column A. If column B does not start with "C0", Column A should get the value of column C (which is also text).
The only solutions I find are for integers or for whole strings. In this case the value in column B is a text and somehow can't fix it to look for only beginning with "C0", it always wants to check the whole value or doesn't check at all.

Try this in A2:
=IF(Left(B2,2) = "C0",B2,C2)

Related

Find out if a combination of 2 Cells values right next to each has been entered previously in 2 columns

So I have column A and B, we manually enter the values of this 2 columns to record when we change from Part A to Part B, if its in the file it means the change could be performed after some investigation. We do this manually every time a change of part number is requested.
To avoid this search with manual search or filtering, I want to know if its possible with an Excel Macro or a function to search in the whole columns if the combination of the values in, for example, A2131 & B2131 have been entered before (For example it was entered before in A1521 & B1521), and if yes, return a 1 or a yes, or anything that tells me it has been done before, and if it isn't, return something else.
I have tried to use vlook up, but I can only compare one column vs another, is there a way to compare 2 columns for example, which is what I need.
Not sure I understand exactly how you want these annotated, but you can use COUNTIFS to provide this analysis. Assuming your data begins in A2 and B2, you would put this formula in C2:
=IF(COUNTIFS(A:A,A2,B:B,B2)>1,"Duplicates","")
and then copy it down for all rows. Any row where both columns A and B match another row's column A and B will show the word "Duplicates" in column C of all matching rows.

Comparing 2 columns of a excel including duplicates

Have 2 columns A and B both contain file names. There are duplicates so there might be more records in column A as compared to column B. I want to create a third column which states there is no match for the same file name in column B Please find the attached excel. Right now I am doing this manually. Is it possible to do this using a ifcountif or a vlookup?
Use
=IFERROR(MATCH(A1,B$1:B$3,0),"No Match")
If there is a match, then the match returns the position number of the match.
Just drag down, edit the array for B as needed.

Rearrangement based on matching text in Excel?

I will try and keep this as simple as possible. I have a list of names (first, last) in one column (A), then I get a second list which is usually about a quarter of the list in column A.
I want the cells in column B (the short list) to automatically rearrange so that the names are next to the name that matches in column A.
If there is anyone nice enough to tell me, if this match happens how I would go about getting the word present to be entered in the very next column corresponding to the name on another sheet in the same workbook.
As Glitch_Doctor said, you could use vlookup, but put the vlookup in col B using column A as the reference value and the short list as the array. This would only populate when there is a match - excepting typo's ...

Excel: How to replace one of two matching columns with third

Í have two spreadsheets.
Column A has values.
Column B has the same values but in different order.
Columns C,D,F are also important and related to Column A.
I need to find the matching values from Column A and Column B.
And replace the values in Column B with the Columns C,D,F.
Thank you preliminary!
The function you are looking for is vlookup(). This function searches through a given column for the first value that matches a variable that you have set. It then steps n columns to the right and returns the value.
This function will not replace the values in column B with the desired values in C, D, & F. Rather you must create a new column and select the desired value from each column according to rules that you set.
It is unclear to me whether you wish to combine columns C, D, & F (in which case you should use the concatanate() function), or only display the values in one column based on some priority system. Concatenating the values is relatively simple, as mentioned above. Prioritizing the columns requires setting up some if / else statements to govern the condition under which each column C, D, or F will be returned.
UPDATE
Based on the image that you have appended in the comment below, I would suggest you place the following function in cell D2:
=vlookup(C2,A$2:B$8,2,0)
Then drag this equation down the length of column D, from row 2 to row 8. The references will automatically be adjusted for each row.
As a side note, I usually place the Number and Price columns into a tab of their own. If you go to the bottom left of the page you'll see that you can create a new tab (and title it whatever you like). It is important keep that information visually separate because you are using it as a lookup table. While lookup tables are important, they do not need to be visible on the main spreadsheet at all times. Plus, they almost always have a different number of rows than the data set being analyzed (in this case I'm guessing you would be analyzing Number-2 and Price-2). So it becomes awkward to display the lookup table and main data set side by side.

In excel - comparing column of items to same array

I'm working in excel.
I've got a column of numbers.
I want to compare this column to another column of numbers and find exact matches. Then show these matches in another column.
I've tried using MATCH but I cannot get one column to move through the numbers in it and the other to stay the same.
Is there anyway to do this?
If your columns are say A and B (and either both with or both without headers) please try:
=IFERROR(INDEX(B:B,MATCH(A:A,B:B,0)),"")
in the first row of data, copied down to suit. The result should be in the same order as ColumnA, so you might want to sort A.

Resources