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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
If there are multiple values that meet the criteria it will make it hard to find.
 
Upvote 0

Forum statistics

Threads
1,223,628
Messages
6,173,426
Members
452,515
Latest member
Alicedonald9

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