Array formula

Chimeara

New Member
Joined
Jan 6, 2005
Messages
6
I have Excel 16 on MacBook
I need to be able to search 2 columns and if there is a match to move the corresponding value in a third column to a fourth column
Example If column A6 has a value equal to column B8 then I want to move the value in column C8 to column D8
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
How about
=IF(ISNUMBER(MATCH(B1,$A$1:$A$20,0)),C1,"")
 
Upvote 0
How about
=IF(ISNUMBER(MATCH(B1,$A$1:$A$20,0)),C1,"")

Hi Fluff many thanks for your prompt reply.
I don't think I was very clear with my description maybe this will make it clearer. C2 matches A1 so move B1 to D2

AAAA Closed EEEE
BBBB Open AAAA Closed
CCCC Closed GGGG
DDDD Open CCCC Closed
 
Upvote 0
In that case try
=INDEX($B$1:$B$20,MATCH(C1,$A$1:$A$20,0))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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