Array formula

Chimeara

New Member
Joined
Jan 6, 2005
Messages
5
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
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
42,903
Office Version
365
Platform
Windows
How about
=IF(ISNUMBER(MATCH(B1,$A$1:$A$20,0)),C1,"")
 

Chimeara

New Member
Joined
Jan 6, 2005
Messages
5
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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
42,903
Office Version
365
Platform
Windows
In that case try
=INDEX($B$1:$B$20,MATCH(C1,$A$1:$A$20,0))
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,220
Office Version
2007
Platform
Windows
How about

=VLOOKUP(C1,$A$1:$B$20,2,0)
 

Chimeara

New Member
Joined
Jan 6, 2005
Messages
5
Hi Fluf and DanteAmor thank you so much for your assistance, greatly appreciated
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
42,903
Office Version
365
Platform
Windows
You're welcome & thanks for the feedback
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,220
Office Version
2007
Platform
Windows
I'm glad to help you. Thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,102,778
Messages
5,488,821
Members
407,658
Latest member
Arias610

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top