Comparing cells and copy/paste value if true. (Formula)

OfficeUser

Well-known Member
Joined
Feb 4, 2010
Messages
542
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Ok, so I will do my best to explain. I have Sheet 1 with data in columns E and F. I also have another Sheet 2 with data in columns in E and F. I want to compare both sheets and ensure that data in E/F cells on Sheets 1 match data in E/F cells on Sheet 2. If they are the same then I want to copy the value from the column AK cell, same row (Sheet 2), and copy it to Sheet 1, column T.

Example:

Row 25 - for example, plan it to copy formula from Row 2 to Row 200.
IF Sheet 1 Cell E = 2468, Cell F = Purple AND Sheet 2 Cell E = 2468, Cell F = Purple
THEN
Sheet 1 Cell T25 equals value found in Sheet 2 Cell AK25.

I have been struggling with this for many days and have tried many formulas. Some work in the Row 2 but when copied down mess up the output, or all match value in row 2. Anyone have some suggestions on how to accomplish this? I appreciate the help, and Happy Friday!!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also what sort of values do you have in col AK?
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also what sort of values do you have in col AK?
I am using Excel 2016 and have the ability to use Office365. The values in AK are dollar values. Thanks!
 
Upvote 0
Thanks for that. How about
Excel Formula:
=IFERROR(INDEX(Sheet2!$AK$2:$AK$1000,AGGREGATE(15,6,(ROW(Sheet2!$AK$2:$AK$1000)-ROW(Sheet2!$AK$2)+1)/(Sheet2!$E$2:$E$1000=E2)/(Sheet2!$F$2:$F$1000=F2),ROWS(T$2:T2))),"")
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,573
Members
449,089
Latest member
Motoracer88

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