M
Mike The Newb
Help! I posted this two days ago and unfortunately received no response. I
did modify it slightly based on my expected lookup results - sorry if that
caused any confusion. I would like to know if what I am seeking is even
possible within Access. If it's not, please let me know.
Here's the original post (slightly modified):
I have two vlookups being done in Excel that I want to move to Access. One is
a closest match numeric and the other is a closest match alpha. For example:
The numeric:
Cell value is 3.250
Look Up Table:
1=A
2=B
4=C
8=D
I expect and receive a result of B (greater then 2 but less then 4), a cell
value of 6.75 would return a C (greater then 4 but less then 8) and so on.
Alpha:
The cell value is MH
Look Up Table:
AC=Yadda1
FG=Yadda2
NP=Yadda3
RR=Yadda4
I expect and receive Yadda2 (after FG but before NP), a cell value of OP
would result in Yadda3 (after NP but before RR) and so on.
Both are your basic True within a vlookup (closest without going over). How
can I link two tables and achieve a closest without going over match in
Access?
Thank you for your and consideration.
Regards,
Mike
did modify it slightly based on my expected lookup results - sorry if that
caused any confusion. I would like to know if what I am seeking is even
possible within Access. If it's not, please let me know.
Here's the original post (slightly modified):
I have two vlookups being done in Excel that I want to move to Access. One is
a closest match numeric and the other is a closest match alpha. For example:
The numeric:
Cell value is 3.250
Look Up Table:
1=A
2=B
4=C
8=D
I expect and receive a result of B (greater then 2 but less then 4), a cell
value of 6.75 would return a C (greater then 4 but less then 8) and so on.
Alpha:
The cell value is MH
Look Up Table:
AC=Yadda1
FG=Yadda2
NP=Yadda3
RR=Yadda4
I expect and receive Yadda2 (after FG but before NP), a cell value of OP
would result in Yadda3 (after NP but before RR) and so on.
Both are your basic True within a vlookup (closest without going over). How
can I link two tables and achieve a closest without going over match in
Access?
Thank you for your and consideration.
Regards,
Mike