How to add a condition on to an existing formula?

rabbitsfeat

New Member
Joined
Jun 18, 2017
Messages
20
I've got this bit of code so far:

Code:
=IFERROR(INDEX([EbayAmazonWeeklyReport.xlsx]Sheet1!$A$2:$F$2359,MATCH(C2,[EbayAmazonWeeklyReport.xlsx]Sheet1!$C$2:$C$2359,0),2),"")

This matches up the number in column C2 on one spreadsheet, with column C2 on another spreadsheet. Then brings over the info from column B2 in the second spreadsheet.

I want to add another condition to this. The information in column E2 on the second spreadsheet must say AMZ, and only bring it over if it does. If it says anything else do not bring it over. So it has to be an exact match.

So I want the info from column B2 brought over, but only if column E2 says AMZ.

How do I go about doing this?
 

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.
Another possibility would be to only bring over numbers in column B2 that match a certain format. Only the numbers that look like this: [TABLE="width: 191"]
<tbody>[TR]
[TD="width: 191"]202-7887844-0998725.

Only numbers that equal a 3-7-7 format.[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hi,

I think it should work

=IFERROR(INDEX([EbayAmazonWeeklyReport.xlsx]Sheet1!$A$2:$F$2359,IF($E$2="AMZ",MATCH(C2,[EbayAmazonWeeklyReport.xlsx]Sheet1!$C$2:$C$2359,0)),2),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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