Insert column3 Value if Column1 match to column2

dcmphi

New Member
Joined
Aug 28, 2022
Messages
13
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
Platform
  1. Windows
I have three column in excel with value. These are A, B and C. I want to insert value of C column in D if A col value=B col
example:
A B C D
5 5 3 3
2 2 5 5
1 1 0 0
9 9 7 7

Can any one help?
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi There

Not sure if this is what you are looking for?

Book1
ABCD
15533
22255
31100
49977
Sheet1
Cell Formulas
RangeFormula
D1:D4D1=IF(A1=B1,C1,"")
 
Upvote 0
Hi There

Not sure if this is what you are looking for?

Book1
ABCD
15533
22255
31100
49977
Sheet1
Cell Formulas
RangeFormula
D1:D4D1=IF(A1=B1,C1,"")
Thanks for reply. I dont want that. I have col A, B and C with values. Col A & B is same type of data but they are not sorting. I want if my col A cell (example: A2) value is match with B col range (B2:B10) then insert C col data which is parallel with B col. I attach a picture.
 

Attachments

  • Excel.jpg
    Excel.jpg
    77.5 KB · Views: 7
Upvote 0
My A & B column is Roll No. C column is Marks. B & C column has 1000 rows. But A column has only 5 rows. I want to know the marks against the A1 Roll No which is already exist in B & C column. Which formula i use do that?
 
Upvote 0
@dcmphi In you post #3 pic you say that Col A2 matches B10 but it matches B9? So Col D according to your pic is Col C sorted from high to low but keeping the values that match parallel to each other?

Now in post #4 Col A has only 5 rows where in previous it had more? and B and C now has 1000? Apologies but the changing of data makes it quite difficult to see exactly what you want so maybe there is someone else who might understand a bit better as to what is required?
 
Upvote 0
@dcmphi In you post #3 pic you say that Col A2 matches B10 but it matches B9? So Col D according to your pic is Col C sorted from high to low but keeping the values that match parallel to each other?

Now in post #4 Col A has only 5 rows where in previous it had more? and B and C now has 1000? Apologies but the changing of data makes it quite difficult to see exactly what you want so maybe there is someone else who might understand a bit better as to what is required?
Thank you Bro, i am looking what is in post #4.
 
Upvote 0
Like this?

BTW, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

22 08 29.xlsm
ABCD
1217101110
2415102109
3619103108
4813104107
599105105
61111106106
7138107104
8156108102
9174109101
10192110103
Match
Cell Formulas
RangeFormula
D1:D10D1=VLOOKUP(A1,B$1:C$10,2,0)
 
Upvote 0
Like this?

BTW, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

22 08 29.xlsm
ABCD
1217101110
2415102109
3619103108
4813104107
599105105
61111106106
7138107104
8156108102
9174109101
10192110103
Match
Cell Formulas
RangeFormula
D1:D10D1=VLOOKUP(A1,B$1:C$10,2,0)
Thankyou bro but not working.
 
Upvote 0
Thankyou bro but not working.
Care to give a bit more information so there would be a chance to work out why and what you really want? ;)
:confused: The results in my sheet column D are identical to column D in your image in post #3. Aren't they the results that you wanted?
 
Last edited:
Upvote 0
Care to give a bit more information so there would be a chance to work out why and what you really want? ;)
:confused: The results in my sheet column D are identical to column D in your image in post #3. Aren't they the results that you wanted?
I want to say column A and column B is like as database table and i want to query in column B from column D column where column C matches with column A then set column B value as a result in column D. For an Example: column A is student roll and column B is marks. Column C is also student roll. I want to query if column C student roll matches with column A student roll then show marks (column B) in column D as a result.
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,660
Members
449,114
Latest member
aides

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top