Referencing data in the next row down that has a specific value in an adjacent cell

Innoguide

Board Regular
Joined
Sep 13, 2011
Messages
159
I have a simple 3 column worksheet as follows:

Column 1 contains either Y or N.
Column 2 contains dates
Column 3 needs to contain calculated dates as follows:

If the column 1 cell for a row = "Y", the column 3 cell in that row needs to contain the date from column 2 of that row

If the column 1 cell for a row = "N", the column 3 cell in that row needs to contain the date from column 2 of the next row down that has a "Y" in column 1.

I know how to make it conditional (=if(A2="Y",B2, ----)) but would really appreciate any help you could provide on what formula I need to use in the false argument to provide the date from the next row down that has a Y in column A.

Thanks!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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