Combining two vlookup if statements

dcarey1

New Member
Joined
Jun 26, 2018
Messages
3
I have two lookup if statements that work perfectly in two different cells. One checks the value if the calculation is < Add_med_limit and the 2nd >=Add_med_limit. When I try to combine them in one statement either gives error statement or #value . I tried to combine by adding , after first statement no luck.




=IFERROR(IF(VLOOKUP(TEXT($E$3,"000"),TL_LOOKUP,13,FALSE)*ANNUAL_HRS+VLOOKUP(TEXT($E$3,"000"),TL_LOOKUP,14,FALSE)<ADDL_MED_LIMIT,VLOOKUP(TEXT($E$3,"000"),TL_LOOKUP,13,FALSE)*ANNUAL_HRS+VLOOKUP(TEXT($E$3,"000"),TL_LOOKUP,14,FALSE))*MEDICARE_RATE,0)


=IFERROR(IF(VLOOKUP(TEXT($E$3,"000"),TL_LOOKUP,13,FALSE)*ANNUAL_HRS+VLOOKUP(TEXT($E$3,"000"),TL_LOOKUP,14,FALSE)>=ADDL_MED_LIMIT,VLOOKUP(TEXT($E$3,"000"),TL_LOOKUP,13,FALSE)*ANNUAL_HRS+VLOOKUP(TEXT($E$3,"000"),TL_LOOKUP,14,FALSE))*(MEDICARE_RATE+ADDIT_MED_RATE),0)
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
What do you mean by "adding"? Care to provide example results from each VLOOKUP and the end result that you want?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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