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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Another possibility would be to only bring over numbers in column B2 that match a certain format. Only the numbers that look like this:
202-7887844-0998725.

Only numbers that equal a 3-7-7 format.

<tbody>
</tbody>
 
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,215,945
Messages
6,127,840
Members
449,411
Latest member
adunn_23

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