Hi there,

I am trying to match a list of numbers from column A, with a list of numbers on column B, and the matched numbers to be in column C.

Your quick help regarding this will be greatly appreciated. Thank you!!!

Re: Matching Two Different Colums

There is a tutorial on matching here

but it's quite difficult, but you can probably do it

Posted on Dec 04, 2007

One way would be to create a colunn C and use the formula: =COUNTIF(B$2:B$200,A2) in cell C2. Then copy the formula down to C200. (assuming you have 200 entries in B...). This will put a "1" next to every number in Column A that has a match in column B. Then you could put a conditional formula in column A that will highlight the cell if the value in column C is equal to 1. Alternatively you could also simply filter for 1's in column C and then manually highlight the cells that show up in A!

Sep 16, 2014 | Microsoft Excel for PC

Ideal question for Google. You get hundreds of hits in less then a second. Take one and it saves me to type over a complete page.

Jul 11, 2014 | Microsoft SQL Server 2000 Standard Edition...

To have the contents of the cell change from something you input into something else, you would need to put in a macro using VBA. You'll need someone who knows VBA to help with that.

OR... It is a lot easier to get similar results, if you are ok with using a few more cells to do it. The item# will remain where it was entered, and the product name will have to go in a different cell. In that case, you can use a lookup formula.

To do this, lets say your item# is entered in cell 'Sheet1'!C1, and you want the product_name to display in cell 'Sheet1'!D1. On another sheet (lets say sheet2) In cells 'Sheet2'!A1:B5 input the item#'s in the first column (column A1:A5) and input the matching product-names in column B1:B5. This is your lookup data. This sheet can be hidden if you want In cell 'Sheet1'!D1, use a vlookup formula that will look at the item# and find a match in the list, and display the product name for you. =vlookup('Sheet1'!C1,'Sheet2'!$A$1:$B$5,2,false)

This will display N/A# if the number can't be found.

OR... It is a lot easier to get similar results, if you are ok with using a few more cells to do it. The item# will remain where it was entered, and the product name will have to go in a different cell. In that case, you can use a lookup formula.

To do this, lets say your item# is entered in cell 'Sheet1'!C1, and you want the product_name to display in cell 'Sheet1'!D1. On another sheet (lets say sheet2) In cells 'Sheet2'!A1:B5 input the item#'s in the first column (column A1:A5) and input the matching product-names in column B1:B5. This is your lookup data. This sheet can be hidden if you want In cell 'Sheet1'!D1, use a vlookup formula that will look at the item# and find a match in the list, and display the product name for you. =vlookup('Sheet1'!C1,'Sheet2'!$A$1:$B$5,2,false)

This will display N/A# if the number can't be found.

Feb 15, 2013 | Microsoft Excel for PC

Try this:

=LOOKUP(B4,A$1:A$31,A$1:A$31)

=LOOKUP(B4,A$1:A$31,A$1:A$31)

Sep 06, 2009 | Microsoft Office Professional 2007 Full...

Hi !!

**How to implement Hlookup function**:

Still have problems, Check this video on the you tube.

Hope this would help,

Thanks,

Anurag Shukla

- Select your data and sort it in ascending order
- Then type '=HLOOKUP(lookup_value,table_array,row_index_num,range_lookup)'.

Lookup_value is the value to be found in the first row of the table. Lookup_value can be a value, a reference, or a text string. Table_array is a table of information in which data is looked up. Use a reference to a range or a range name. The values in the first row of table_array can be text, numbers, or logical values. If range_lookup is TRUE, the values in the first row of table_array must be placed in ascending order: ...-2, -1, 0, 1, 2,... , A-Z, FALSE, TRUE; otherwise, HLOOKUP may not give the correct value.

If range_lookup is FALSE, table_array does not need to be sorted. Uppercase and lowercase text are equivalent. You can put values in ascending order, left to right, by selecting the values and then clicking Sort on the Data menu. Click Options in the sort dialog box, click Sort left to right, and then click OK. Under Sort by, click the row in the list, and then click Ascending.

Row_index_num is the row number in table_array from which the matching value will be returned. A row_index_num of 1 returns the first row value in table_array, a row_index_num of 2 returns the second row value in table_array, and so on. If row_index_num is less than 1, HLOOKUP returns the #VALUE! error value; if row_index_num is greater than the number of rows on table_array, HLOOKUP returns the #REF! error value.

Range_lookup is a logical value that specifies whether you want HLOOKUP to find an exact match or an approximate match. If TRUE or omitted, an approximate match is returned. In other words, if an exact match is not found, the next largest value that is less than lookup_value is returned. If FALSE, HLOOKUP will find an exact match. If one is not found, the error value #N/A is returned. - If HLOOKUP can't find lookup_value, and range_lookup is TRUE, it uses the largest value that is less than lookup_value.
- If lookup_value is smaller than the smallest value in the first row of table_array, HLOOKUP returns the #N/A error value.
- If range_lookup is FALSE and lookup_value is text, you can use the wildcard characters, question mark (?) and asterisk (*), in lookup_value. A question mark matches any single character; an asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) before the character.
- In the example in the Excel training video the sorted data represents the density of water at different temperatures. The left most column gives the temperature in degrees and the top column specifies the 'decimal' degrees
- We looked up the density of water at 5.4 degrees celsius using the Hlookupfunction.

Still have problems, Check this video on the you tube.

Hope this would help,

Thanks,

Anurag Shukla

Sep 04, 2009 | Microsoft Excel for PC

Don't do this in Excel. Buy Visual Foxpro.

And make proper application.

And make proper application.

Apr 11, 2009 | Microsoft Excel for PC

The best solution may be to re-define the named columns, or to add new names to multi-column arrays, then use the VLOOKUP function.

Note that the "indexed" named cells must be sorted by the index column.

Test (this is a 2 year old question)... Please ignore ths following. The plus symbol does not display.

Upper key plus symbol displays:

Right plus symbol on number pad displays:

[Shift] Right plus symbol on number pad displays:

[Alt] [4] [3] displays:

slash/slash/plus displays: //

slash/plus/slash displays: / /

Plus Plus Plus displays:

upper Plus Plus Plus displays:

Shift Right plus plus plus displays:

end of plus test.. thanks.

Note that the "indexed" named cells must be sorted by the index column.

Test (this is a 2 year old question)... Please ignore ths following. The plus symbol does not display.

Upper key plus symbol displays:

Right plus symbol on number pad displays:

[Shift] Right plus symbol on number pad displays:

[Alt] [4] [3] displays:

slash/slash/plus displays: //

slash/plus/slash displays: / /

Plus Plus Plus displays:

upper Plus Plus Plus displays:

Shift Right plus plus plus displays:

end of plus test.. thanks.

Dec 09, 2008 | Microsoft Excel for PC

1. Open up both workbooks.

2. Copy one worksheet from one workbook to another using.

Right click on the tab of one book and Select "Move or Copy"

3. A dialog box will appear..Next to the "To book" select the workbook you want to move it to.

4. Be sure to select the 'create a copy' box in the bottom left of the dialog box.

5. Sort each worksheet by students name. Data..Sort.

6. Copy the scores from one sheet to another.

7. You then you can manipulate the scores and compare anyway you like by using formulas in different columns.

2. Copy one worksheet from one workbook to another using.

Right click on the tab of one book and Select "Move or Copy"

3. A dialog box will appear..Next to the "To book" select the workbook you want to move it to.

4. Be sure to select the 'create a copy' box in the bottom left of the dialog box.

5. Sort each worksheet by students name. Data..Sort.

6. Copy the scores from one sheet to another.

7. You then you can manipulate the scores and compare anyway you like by using formulas in different columns.

Apr 29, 2008 | Microsoft Excel for PC

Vlookup: =VLOOKUP(A1,A1:C10,3,FALSE)
1. Lookup_value - A1 the value you want to search.
2. Table_Array - A1:C10 You will only search the lookup_value in the left column which is A1:A10 in this example.
3. Col_Index_Number - If you find a matching value give me column 3. Since A1=A1 it will give me C1. In this example 1 is A, 2 is B and 3 is C.
4. Range_lookup - I always choose false which is exact match. True will give you approximate match and its not always correct.
Vlookup is used when you have a list of values and you want additional values that exist in other fields. You will get those values only for the fields that you search for. In your example you can get the address by running vlookup at the names, it is also good way to search duplicates.
Q2 is very simple, on field D1 just type:
=A1 & " " & B1 & " " & C1
Just drag it or double click on the drag square
Let me know if you have any other questions
Daniel

Sep 24, 2007 | Microsoft Office Standard for PC

VLOOKUP is to Searches for a value in the leftmost column of a table, and then returns a value in the same row from a column you specify in the table. Use VLOOKUP instead of HLOOKUP when your comparison values are located in a column to the left of the data you want to find.
The V in VLOOKUP stands for "Vertical."
Syntax
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)
Lookup_value is the value to be found in the first column of the array. Lookup_value can be a value, a reference, or a text string.
Table_array is the table of information in which data is looked up. Use a reference to a range or a range name, such as Database or List.
If range_lookup is TRUE, the values in the first column of table_array must be placed in ascending order: ..., -2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE; otherwise VLOOKUP may not give the correct value. If range_lookup is FALSE, table_array does not need to be sorted.
You can put the values in ascending order by choosing the Sort command from the Data menu and selecting Ascending.
The values in the first column of table_array can be text, numbers, or logical values.
Uppercase and lowercase text are equivalent.
Col_index_num is the column number in table_array from which the matching value must be returned. A col_index_num of 1 returns the value in the first column in table_array; a col_index_num of 2 returns the value in the second column in table_array, and so on. If col_index_num is less than 1, VLOOKUP returns the #VALUE! error value; if col_index_num is greater than the number of columns in table_array, VLOOKUP returns the #REF! error value.
Range_lookup is a logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match. If TRUE or omitted, an approximate match is returned. In other words, if an exact match is not found, the next largest value that is less than lookup_value is returned. If FALSE, VLOOKUP will find an exact match. If one is not found, the error value #N/A is returned.
Remarks
If VLOOKUP can't find lookup_value, and range_lookup is TRUE, it uses the largest value that is less than or equal to lookup_value.
If lookup_value is smaller than the smallest value in the first column of table_array, VLOOKUP returns the #N/A error value.
If VLOOKUP can't find lookup_value, and range_lookup is FALSE, VLOOKUP returns the #N/A value.

Aug 30, 2007 | Microsoft Office Standard for PC

Apr 25, 2014 | Microsoft Office Standard for PC

30 people viewed this question

Usually answered in minutes!

×