Compare Copy Paste

josieguida02

New Member
Joined
Mar 23, 2009
Messages
13
I am trying create and Excel Formula. To compare columns of names and then copy a number in a column next to the correct name.

More info

Column A = Actor ID
Column B = Actor
Column H, K, N, Q, T, W, Z = Actor
Column G, J, M, P, S, V, Y = Actor ID (This is the column that I want a copy of the Actor ID to be placed)

Example

In column B there is a name Hugh Grant the Actor ID Column A is 1120
In coumn H there is an Actor Hugh Grant and I want the Actor ID to go in G as 1120 next to Hugh Grant in column H.

A B G H
1120 Hugh Grant Hugh Grant

How to fill in column G With the data from column A, in this case 1120?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Dear josieguida02,

Assumed your data Actor ID is start at A1.

Use the following formula in G1 ( Next to H1 which is Hugh Grant)
=INDEX(A2:A15,MATCH(H1,B2:B15,0))


Hope it help..
 
Upvote 0
Thank you for your help. I will try and clarify a bit more. Sorry about the confusion.

Column A is the list of numbers, 1 through 2984, that are associated with the list of alphabetized actors in Column B.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
Columns H, K, N, Q, T, W, Z are lists of actor names that are random in order.<o:p></o:p>
<o:p> </o:p>
I am trying to match the random lists with the ordered list. I want to put the associated number from the alphabetized lists in columns G, J, M, P, S, V, Y. <o:p></o:p>
 
Upvote 0
Thank you very much for you help.

This is what I ended up using in the end.
=INDEX(A:A,MATCH(H1,B:B,0))

It got around the problem of the A and B numbers changing when i copied and pasted the formula through the cells. I only needed the H number to change


Most excellent.
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,548
Members
449,038
Latest member
Guest1337

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