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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,216,115
Messages
6,128,915
Members
449,478
Latest member
Davenil

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