Lookup 2/1 works on one line and not on others

Eurekaonide

Active Member
Joined
Feb 1, 2010
Messages
433
Hi
I have the below formula and something strange is happening. It works on one line but when I copy it down it just #N/A errors. Ive check that the cell formats are all general. they are not numbers they are a mix of text and numbers. Ive tried simple vlookups and they find the values one by one so I am baffled as to why its not working? any ideas please?

=LOOKUP(2,1/(('Forecasts'!$A$4:$A$900=$A4)*('Forecasts'!$J$4:$J$900=$J4)*('Forecasts'!$O$4:$O$900=$O4)),"OK")

or suggestions on a better way?
I am trying to check if each row in one sheet has a corresponding row in another sheet (Forecasts) as there maybe multiples of each item I need to check the 3 elements are all in the same row to be a match.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Use COUNTIFS:

=IF(COUNTIFS(Forecasts!$A$4:$A$900,$A4,Forecasts!$J$4:$J$900,$J4,Forecasts!$O$4:$O$900,$O4),"OK","")
 
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’)
 
Upvote 0
Can you try one of these and share the result?

Excel Formula:
=IF(COUNTIFS('Forecasts'!$A$4:$A$900,$A4,'Forecasts'!$J$4:$J$900,$J4,'Forecasts'!$O$4:$O$900,$O4)>0,"OK","Not Found")

Excel Formula:
=IF(SUMPRODUCT(('Forecasts'!$A$4:$A$900=$A4)*('Forecasts'!$J$4:$J$900=$J4)*('Forecasts'!$O$4:$O$900=$O4))>0,"OK","Not Found")
 
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’)
My versions change from role to role but i believe its 365 that i am on now
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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