ll -
May 27, 2009 at 03:08 PM - Latest reply: kittu - Apr 14, 2017 at 01:58 AM

Related:

- Excel formula to compare two columns and return a value
- Vlookup compare two columns return third column - Best answers
- Compare three columns in excel and return a value - Best answers
- Compare values in two columns and return the value from third ✓ - Forum - Excel
- Need a formula to compare two columns and return a value of 1 - Forum - Excel
- Compare two columns and return text string - Forum - Excel
- COMPARING TWO COLUMNS OF NAMES IN EXCEL ✓ - Forum - Excel
- Vlookup formula to compare two columns in different sheets - How-To - Excel

Best answer

Excelguru

- Posts
- 261
- Registration date
- Saturday April 11, 2009
- Last seen
- June 21, 2011

Hi

Use the formula (in cell D1) =VLOOKUP(A1,$B$1:$C$9,2,FALSE)

Do let me know If it helps...

Use the formula (in cell D1) =VLOOKUP(A1,$B$1:$C$9,2,FALSE)

Do let me know If it helps...

Excelguru

- Posts
- 261
- Registration date
- Saturday April 11, 2009
- Last seen
- June 21, 2011

mubashir aziz

- Posts
- 191
- Registration date
- Sunday April 12, 2009
- Last seen
- February 16, 2010

ELearner
Aug 7, 2010 at 04:59 PM

Hi,

I've been driving myself crazy on excel trying to figure out a formula to calculate the responses for a test. Here's what I need it to do:

If the value in cell A2 matches the value in cell B2, I need it to display a 1.

If the value in cell A2 does NOT match the value in cell B2 and is not blank, I need it to subtract .25 or display -.25 (whichever).

If there is no value in cell A2 (if it's blank), I need it to display 0.

I can't find this anywhere because nothing explains how to pick between 3 inputs and then return one of 3 values.

Hope you can help.

I've been driving myself crazy on excel trying to figure out a formula to calculate the responses for a test. Here's what I need it to do:

If the value in cell A2 matches the value in cell B2, I need it to display a 1.

If the value in cell A2 does NOT match the value in cell B2 and is not blank, I need it to subtract .25 or display -.25 (whichever).

If there is no value in cell A2 (if it's blank), I need it to display 0.

I can't find this anywhere because nothing explains how to pick between 3 inputs and then return one of 3 values.

Hope you can help.

rizvisa1

- Posts
- 4481
- Registration date
- Thursday January 28, 2010
- Status
- Contributor
- Last seen
- January 6, 2016

Seems to be a totally different question. It is better if you start a new thread

Excelguru

- Posts
- 261
- Registration date
- Saturday April 11, 2009
- Last seen
- June 21, 2011

Hi,

This is my dilema , I obviously am missing something here

Old record New record

1 1

4 4

3 5

5 6

7 8

8 9

How do I get Column C to give me :

1. If the same values in A and B to show the same in C using False AND

2. If the values are not the same then #N/A in Column C

I seem to be challenged trying to use one vlookup formula to compare all the values of Column A and B to display the result in C.

Please help.

This is my dilema , I obviously am missing something here

Old record New record

1 1

4 4

3 5

5 6

7 8

8 9

How do I get Column C to give me :

1. If the same values in A and B to show the same in C using False AND

2. If the values are not the same then #N/A in Column C

I seem to be challenged trying to use one vlookup formula to compare all the values of Column A and B to display the result in C.

Please help.

mubashir aziz

- Posts
- 191
- Registration date
- Sunday April 12, 2009
- Last seen
- February 16, 2010

Suppose your data is in Row 1 then use this formula and drag it down ........ it will see A1 values in whole column of B and if find then give you the value ......

=VLOOKUP(A1,$B$1:$B$6,1,FALSE)

=VLOOKUP(A1,$B$1:$B$6,1,FALSE)

rizvisa1

- Posts
- 4481
- Registration date
- Thursday January 28, 2010
- Status
- Contributor
- Last seen
- January 6, 2016

I think you need an IF statement

=IF(condition, true action, false action)

Lets say we are working in row 2

then in D2, you can write

=IF(A2=B2, C2, "")

Which says that if a2 is same as b2, then show value of c2 else just show blank ("")

=IF(condition, true action, false action)

Lets say we are working in row 2

then in D2, you can write

=IF(A2=B2, C2, "")

Which says that if a2 is same as b2, then show value of c2 else just show blank ("")

Striker
Aug 23, 2010 at 01:42 PM

Hello all,

Assume that in A1:C5 I have the following table:

A B C

1 1 Low

2 1 Low Mod

3 1 Moderate

4 1 Mod High

5 1 High

And I have in Row 10 the following:

Row 10: A10=3 and B10=1

What sort of formula do I need to create in C10 that would look up the value from the table above (A1:C5) and would match the value of A10 to the relevant value in column A, and does the same for the value in B10 to the relevant value in column B so that the outcome is the corresponding value in column C... C3 = "Moderate"

Your assistance is highly appreciated.

Assume that in A1:C5 I have the following table:

A B C

1 1 Low

2 1 Low Mod

3 1 Moderate

4 1 Mod High

5 1 High

And I have in Row 10 the following:

Row 10: A10=3 and B10=1

What sort of formula do I need to create in C10 that would look up the value from the table above (A1:C5) and would match the value of A10 to the relevant value in column A, and does the same for the value in B10 to the relevant value in column B so that the outcome is the corresponding value in column C... C3 = "Moderate"

Your assistance is highly appreciated.

rizvisa1

- Posts
- 4481
- Registration date
- Thursday January 28, 2010
- Status
- Contributor
- Last seen
- January 6, 2016

=INDIRECT("C" & SUMPRODUCT((A1:A6=A10) * (B1:B6=B10) * ROW(B1:B6)))

Jireh
Aug 12, 2009 at 07:55 PM

Hello,

Please help me, what is the formula to get the value from column B that is not in column A?

I have compare new data I want to find out what is the new value that has been added to B that is not

in A. I know how to use vlookup basic but it's a bit complicated since it will only show 1 result as well as with

the exact formula it will only show false and I still have to dig in the values one-by one to get the value that

doesn't really have a matching value in the spreadsheet.

Please help me, what is the formula to get the value from column B that is not in column A?

I have compare new data I want to find out what is the new value that has been added to B that is not

in A. I know how to use vlookup basic but it's a bit complicated since it will only show 1 result as well as with

the exact formula it will only show false and I still have to dig in the values one-by one to get the value that

doesn't really have a matching value in the spreadsheet.

mubashir aziz

- Posts
- 191
- Registration date
- Sunday April 12, 2009
- Last seen
- February 16, 2010

Suppose you are compaing Col. B with Col A. now write this formula in C1 and drag it down ... hope it will help you ......

=IF(ISERROR(VLOOKUP(B1,$A$1:$A$8,1,FALSE)),"New Data","")

shakeel ahmed
>
mubashir aziz

- Posts
- 191
- Registration date
- Sunday April 12, 2009
- Last seen
- February 16, 2010

Dear brother

=IF(ISERROR(VLOOKUP(B1,$A$1:$A$8,1,FALSE)),"New Data","")

is a very nice formula which provide u. I use it same u ask and I find correct value which I want.

keep it up to share these types of information

May Allah Help u

Thanks & Regards

Shakee Ahmed

=IF(ISERROR(VLOOKUP(B1,$A$1:$A$8,1,FALSE)),"New Data","")

is a very nice formula which provide u. I use it same u ask and I find correct value which I want.

keep it up to share these types of information

May Allah Help u

Thanks & Regards

Shakee Ahmed

mubashir aziz

- Posts
- 191
- Registration date
- Sunday April 12, 2009
- Last seen
- February 16, 2010

Although you question is quite confusing because in your title you are asking to compare two column which means you want to compare but in your example you are talking about A & B Separately.

Anyway, Copy below formula in Cell D1 and it will give you the values of 1 to 26 from Z to A.

D1=CHAR(91-A1)

For

C1=CHAR(91-B1)

For any confusion don't hesitate to consult with me.........

Anyway, Copy below formula in Cell D1 and it will give you the values of 1 to 26 from Z to A.

D1=CHAR(91-A1)

For

C1=CHAR(91-B1)

For any confusion don't hesitate to consult with me.........

mubashir aziz

- Posts
- 191
- Registration date
- Sunday April 12, 2009
- Last seen
- February 16, 2010

mubashir aziz

- Posts
- 191
- Registration date
- Sunday April 12, 2009
- Last seen
- February 16, 2010

This is the syntax of Vlookup .... in your formula 2 is the nth column in Range .... If you will not False in the formula then it will return you closest match and will not return any error ......

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.

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.

VTECH
Aug 27, 2010 at 11:50 AM

Hi all,

Is there a way to compare the contents of a cell with a different cell using TRUE/FALSE results?

For instance,

cell A1 contains: Jr3

comparing with

cell B1 contains: Jr3

cell C1 (the result cell) will show up TRUE

now what if I want to match the content of B1 with cell A1 which contains more than one value in it?

For instance,

cell A1: Jr3, Jr4

comparing with

cell B1 containing Jr3

cell C1 should show up TRUE (since cell A1 does have Jr3 as its value separated by a comma)

Please Help

Is there a way to compare the contents of a cell with a different cell using TRUE/FALSE results?

For instance,

cell A1 contains: Jr3

comparing with

cell B1 contains: Jr3

cell C1 (the result cell) will show up TRUE

now what if I want to match the content of B1 with cell A1 which contains more than one value in it?

For instance,

cell A1: Jr3, Jr4

comparing with

cell B1 containing Jr3

cell C1 should show up TRUE (since cell A1 does have Jr3 as its value separated by a comma)

Please Help

rizvisa1

- Posts
- 4481
- Registration date
- Thursday January 28, 2010
- Status
- Contributor
- Last seen
- January 6, 2016

You can use find to do that

Thanks!

Keep up the good work