Lookup value

losamfr17

Board Regular
Joined
Jun 10, 2016
Messages
149
Dear Wizards,

How would you solve the following challenge I'm facing using Excel formulas (as opposed to DAX)?
I need to know the rate associated with the payer given a HCPCS and a date range. Your suggestions are truly welcome. Thank you in advance!


[TABLE="width: 737"]
<tbody>[TR]
[TD]Payer[/TD]
[TD]HCPCs[/TD]
[TD]Start Date[/TD]
[TD] End Date[/TD]
[TD] Base Rate[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0426[/TD]
[TD="align: right"]8/15/2016[/TD]
[TD="align: right"]1/1/2028[/TD]
[TD] $ 303.52[/TD]
[TD][/TD]
[TD]Payer[/TD]
[TD]HCPCs[/TD]
[TD]Service Date[/TD]
[TD]Rate[/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0427[/TD]
[TD="align: right"]8/15/2016[/TD]
[TD="align: right"]1/1/2028[/TD]
[TD] $ 480.57[/TD]
[TD][/TD]
[TD]Insurance A[/TD]
[TD]A0428[/TD]
[TD="align: right"]8/16/2016[/TD]
[TD] ?[/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0428[/TD]
[TD="align: right"]8/15/2016[/TD]
[TD="align: right"]1/1/2028[/TD]
[TD] $ 252.93[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0429[/TD]
[TD="align: right"]8/15/2016[/TD]
[TD="align: right"]1/1/2028[/TD]
[TD] $ 404.69[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0433[/TD]
[TD="align: right"]8/15/2016[/TD]
[TD="align: right"]1/1/2028[/TD]
[TD] $ 695.56[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0434[/TD]
[TD="align: right"]8/15/2016[/TD]
[TD="align: right"]1/1/2028[/TD]
[TD] $ 822.05[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0426[/TD]
[TD="align: right"]8/15/2015[/TD]
[TD="align: right"]8/14/2016[/TD]
[TD] $ 294.22[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0427[/TD]
[TD="align: right"]8/15/2015[/TD]
[TD="align: right"]8/14/2016[/TD]
[TD] $ 465.86[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0428[/TD]
[TD="align: right"]8/15/2015[/TD]
[TD="align: right"]8/14/2016[/TD]
[TD] $ 245.19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0429[/TD]
[TD="align: right"]8/15/2015[/TD]
[TD="align: right"]8/14/2016[/TD]
[TD] $ 392.30[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0433[/TD]
[TD="align: right"]8/15/2015[/TD]
[TD="align: right"]8/14/2016[/TD]
[TD] $ 674.27[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Insurance A[/TD]
[TD]A0434[/TD]
[TD="align: right"]8/15/2015[/TD]
[TD="align: right"]8/14/2016[/TD]
[TD] $ 796.87[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Re: LOOKUP VALUE CHALLENGE - Can't figure it out

ok, given that table begins in A1
Payer = Column A

=LOOKUP(2,1/((A2:A13=F3)*(B2:B13=G3)*(C2:C13<=H3)*(D2:D13>=H3)),E2:E13)

F3 = Insurance A
G3 = A0428
H3 = 8/16/2016
 
Upvote 0
Re: LOOKUP VALUE CHALLENGE - Can't figure it out

ok, given that table begins in A1
Payer = Column A

=LOOKUP(2,1/((A2:A13=F3)*(B2:B13=G3)*(C2:C13<=H3)*(D2:D13>=H3)),E2:E13)

F3 = Insurance A
G3 = A0428
H3 = 8/16/2016


Holy smokes that's awesome!!
Can you please quickly explain to me what role the number 2 and the multiplication play in this formula?
Thank you so much. I feel like I'm gonna learn a lot from you on this one. I'm gonna take the time to learn how you did this.
 
Upvote 0
Re: LOOKUP VALUE CHALLENGE - Can't figure it out

Holy smokes that's awesome!!
Can you please quickly explain to me what role the number 2 and the multiplication play in this formula?
Thank you so much. I feel like I'm gonna learn a lot from you on this one. I'm gonna take the time to learn how you did this.[/QUOTE]


Also, I tried the formula using a reference table, but it didn't work. Then I tried on a range and it worked perfectly.
 
Upvote 0

Forum statistics

Threads
1,223,153
Messages
6,170,391
Members
452,324
Latest member
stuart1980

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