Xlookup with 3 conditions one is in date range

cyberbane

New Member
Joined
Sep 12, 2008
Messages
12
Going batty here.

I have 2 table arrays on two separate sheets in the same workbook.

I am trying to add a column to my primary table to take the Pricing Point (PP Number) from the other table(table 12)

I have a date in my primary table and a start and end date in table 12
I have a Sold-To Party in both tables that I am trying to match
I have a Case EAN in both tables that I am trying to match.

I think the below formula should work but it doesn't. I just get No PP even though I know that I have entries that match and should be presented.

Edit: Dates are formatted as dates and EAN and Sold-to party are both whole numbers and formatted as such.

Excel Formula:
=XLOOKUP(1,(IF(AND(VALUE([@[Pricing Date]])>=VALUE(Table12[Pricing Start]),VALUE([@[Pricing Date]])<=VALUE(Table12[Pricing End]),[@[Sold-To Party]]=Table12[Sold-To Party],[@[EAN for CS]]=Table12[Case EAN]),1,0)),Table12[PP Number],"No PP",0,1)


Any ideas on what is wrong? or a different way to do this?

Thanks,

Andy
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,215,802
Messages
6,126,986
Members
449,351
Latest member
Sylvine

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