If formula and Arrays

mahhogany

New Member
Joined
Jul 28, 2008
Messages
20
Hi

I have an array of Supplier numbers A1:A20 in a separate sheet 'Tier Suppliers'

I also have another list of Suppliers which amount to 20000 rows. (Col A). I would like to write a nested If AND formula that checks to see if the data in the 20000 rows matches the array and another column (B). If True then to write 'Tier' if False then to take the value in Col B.

Here is my the formula

=IF((AND(A2 ='TierSuppliers'!A1:20,B2="Standard PO")),"Tier", B2)

But it doesn't work. Is this the correct formula to use? I tried SumProduct but that didn't help much either. Please help!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Use Vlookup or Index Formula. Please post some example so that we could provide you accurate formula. :)
 
Upvote 0
Use Vlookup or Index Formula. Please post some example so that we could provide you accurate formula. :)
I don't think Vlookup would have worked in this instance seen as I want to define the value it returns whereas with Vlookup I would have to return a value from the array. I believe that was the same issue I had with index and match.

Thanks anyway.
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,507
Members
452,917
Latest member
MrsMSalt

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