vlookup problem

dgavin

Active Member
Joined
Feb 16, 2005
Messages
302
=IF(AND(Dutch!$F$45="BET",S5<>"",S5>0,$U$1>Controls!B4,L2=0,VLOOKUP(F5,Dutch!C18:E42,3,FALSE)),Controls!$B$6,"")


I have added a vlookup into the formula above but its not formula is returning an error

basically if the vlookup ="A" for the formula to be true
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
AND needs True or False values.
Vlookup returns a value (either string/number/error)..

Try

=IF(AND(Dutch!$F$45="BET",S5<>"",S5>0,$U$1>Controls!B4,L2=0,VLOOKUP(F5,Dutch!C18:E42,3,FALSE)="A"),Controls!$B$6,"")


hope that helps.
 
Upvote 0
=IF(AND(Dutch!$F$45="BET",S5<>"",S5>0,$U$1>Controls!B4,L2=0,VLOOKUP(F5,Dutch!C18:E42,3,FALSE)),Controls!$B$6,"")


I have added a vlookup into the formula above but its not formula is returning an error

basically if the vlookup ="A" for the formula to be true
You haven't included the comparison value for the VLOOKUP.

Maybe this:

=IF(AND(Dutch!$F$45="BET",S5<>"",S5>0,$U$1>Controls!B4,L2=0,VLOOKUP(F5,Dutch!C18:E42,3,0)="A"),Controls!$B$6,"")
 
Upvote 0

Forum statistics

Threads
1,224,532
Messages
6,179,388
Members
452,908
Latest member
MTDelphis

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