IF stament wih date

guaya81

New Member
Joined
May 9, 2018
Messages
25
Hello

can someone please try to help me and let me know what I did wrong in this formula, what I'm trying to do is to vlookup an amount from another sheet by using an IF statement of dates

example if an invoice has a date of 05/05/2018

the formula needs to go and determine if these criteria meet the date of between 05/01/2018 -05/31/2018

if this is between the vlookup

=IF(AND(Query1[@[Invc Date]]<='Comm 3-7-18'!$A$4:$A$158,Query1[@[Invc Date]]>='Comm 3-7-18'!$B$4:$B$158),VLOOKUP(Query1[@Item],'Comm 3-7-18'!C:G,5,0),"0")

thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
If there are multiple values that meet the criteria it will make it hard to find.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

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