Need help with formula

Not sure which direction to go on this, I need to look at three conditions and return a value based on the highest values in two data sets.  The first value is a geographical reference called AOR_LST, the second condition is either Lot or CRML, under each of these are three values, LTR1, LTR2, and LTR3, under CRML are three values, CRMLR1, CRMLR2,CRMLR3.  So I am trying to look up the max if the criteria is given.

I know the naming convention could have been easier but I used all the easy names in other parts of the project.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Professor JMicrosoft Excel ExpertCommented:
i used  first row of worksheet as helper row and colored it white so it becomes invisible and i did this because you had merged cells and then i put this formula in N9


please find attached.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
farrissfAuthor Commented:
It's giving me an #NA, it has something to do with the columns on the offset.
Professor JMicrosoft Excel ExpertCommented:
please use my workbook as i attached.

the reason you get N/A is becuase your lookup N4 or S4 must be empty
Professor JMicrosoft Excel ExpertCommented:
to adapt this on your own worksheet and to take care of error.

please use this formula as also embeeded in the attached workbook

=IFERROR(MAX(OFFSET($B$3,MATCH($N$4,$B$4:$B$44,0),MATCH($S$4,$C$1:$H$1,0),1,3))," N4 and S4 must be empty")

plz see the green rectangle those cells must not left empty

also plz seee the red rectangle  those are the helper cells i used and i changed the color to white so they are invisible.
farrissfAuthor Commented:
That was what I needed, thank you!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.