excelsos

New Member
Joined
Feb 6, 2018
Messages
9
Latest Recv Date2017201620152014 & Prior

<tbody>
</tbody>

So I have a col G with a Date (Any date from 2012 to 2018). I need it to read such that,if the date in ColG is 2014 and prior then the value from Col Q goes into ol Y(2014 & Prior), else returns 0.

Alternatively, if date in Col G(I want tracking by year) is say 2017, I want the value to go to Col V, 2016 Value from Col Q to go into Col W etc
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
In addition - =IF($G6>=DATEVALUE("01/01/2017"),AND(IF($G6<=DATEVALUE("12/31/2017"),$Q6,0)))

I had this, but it is returning FALSE,if it does not equal, I need it to return zero
 
Upvote 0
Well at least for that formula you have the AND in the wrong place, try this:

Code:
=IF(and(($G6>=DATEVALUE("01/01/2017")),($G6<=DATEVALUE("12/31/2017"))),$Q6,0)

As for the rest I am busy with work right now maybe someone else can chime in.
 
Upvote 0
well at least for that formula you have the and in the wrong place, try this:

Code:
=if(and(($g6>=datevalue("01/01/2017")),($g6<=datevalue("12/31/2017"))),$q6,0)

as for the rest i am busy with work right now maybe someone else can chime in.


that worked!!! Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,526
Messages
6,125,328
Members
449,218
Latest member
Excel Master

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